Skip to content

Commit

Permalink
vstrt/{trtexec}/CMakeLists.txt: linking cuDNN
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Oct 22, 2023
1 parent 14c2622 commit 019443f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vstrt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ endif()

if (USE_NVINFER_PLUGIN)
add_definitions(-DUSE_NVINFER_PLUGIN)
find_library(CUDNN_LIB cudnn HINTS ${CUDNN_ROOT_DIR} PATH_SUFFIXES lib)
find_library(CUDNN_LIB cudnn HINTS ${CUDNN_ROOT_DIR} PATH_SUFFIXES lib/x64)
if (USE_NVINFER_PLUGIN_STATIC)
target_link_libraries(vstrt PRIVATE nvinfer_plugin_static ${CUDNN_LIB} CUDA::cublas)

Expand Down
2 changes: 1 addition & 1 deletion vstrt/trtexec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ target_link_directories(trtexec PRIVATE
${TENSORRT_HOME}/lib
)

find_library(CUDNN_LIB cudnn HINTS ${CUDNN_ROOT_DIR} PATH_SUFFIXES lib)
find_library(CUDNN_LIB cudnn HINTS ${CUDNN_ROOT_DIR} PATH_SUFFIXES lib/x64)

target_link_libraries(trtexec PRIVATE
CUDA::cudart_static
Expand Down

0 comments on commit 019443f

Please sign in to comment.