Skip to content

Commit

Permalink
Add _10 suffix to NVINFER_LIBRARY and NVINFER_PLUGIN_LIBRARY for TRT 10
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccorm4 committed Jun 14, 2024
1 parent 630cc5e commit 6ffe928
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ FOREACH(p ${TRITON_TENSORRT_LIB_PATHS})
set(TRITON_TENSORRT_LDFLAGS ${TRITON_TENSORRT_LDFLAGS} "-L${p}")
ENDFOREACH(p)

find_library(NVINFER_LIBRARY NAMES nvinfer)
find_library(NVINFER_PLUGIN_LIBRARY NAMES nvinfer_plugin)
# FIXME: TRT 10 appears to have differently named libraries with "_10" suffix
find_library(NVINFER_LIBRARY NAMES nvinfer nvinfer_10)
find_library(NVINFER_PLUGIN_LIBRARY NAMES nvinfer_plugin nvinfer_plugin_10)
target_link_libraries(
triton-tensorrt-backend
PRIVATE
Expand Down

0 comments on commit 6ffe928

Please sign in to comment.