File tree 1 file changed +14
-2
lines changed 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,18 @@ endif()
52
52
set (TRITON_TENSORRT_BACKEND_LIBNAME triton_tensorrt)
53
53
set (TRITON_TENSORRT_BACKEND_INSTALLDIR ${CMAKE_INSTALL_PREFIX} /backends/tensorrt)
54
54
55
+
56
+ if (LINUX)
57
+ file (STRINGS "/etc/os-release" DISTRO_ID_LIKE REGEX "ID_LIKE" )
58
+ if (${DISTRO_ID_LIKE} MATCHES "rhel|centos" )
59
+ if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64" )
60
+ set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "/usr/local/cuda/targets/sbsa-linux/lib" )
61
+ else ()
62
+ set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "/usr/local/cuda/targets/x86_64-linux/lib" )
63
+ endif ()
64
+ endif (${DISTRO_ID_LIKE} MATCHES "rhel|centos" )
65
+ endif (LINUX)
66
+
55
67
#
56
68
# Dependencies
57
69
#
@@ -247,8 +259,8 @@ ENDFOREACH(p)
247
259
248
260
# NOTE: TRT 10 for Windows added the version suffix to the library names. See the release notes:
249
261
# https://docs.nvidia.com/deeplearning/tensorrt/release-notes/index.html#tensorrt-10
250
- find_library (NVINFER_LIBRARY NAMES nvinfer nvinfer_10 PATHS "/usr/local/cuda/targets/x86_64-linux/lib" )
251
- find_library (NVINFER_PLUGIN_LIBRARY NAMES nvinfer_plugin nvinfer_plugin_10 PATHS "/usr/local/cuda/targets/x86_64-linux/lib" )
262
+ find_library (NVINFER_LIBRARY NAMES nvinfer nvinfer_10)
263
+ find_library (NVINFER_PLUGIN_LIBRARY NAMES nvinfer_plugin nvinfer_plugin_10)
252
264
target_link_libraries (
253
265
triton-tensorrt-backend
254
266
PRIVATE
You can’t perform that action at this time.
0 commit comments