Skip to content

Commit

Permalink
vstrt/{trtexec}/CMakeLists.txt: linking cublas
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Oct 22, 2023
1 parent a4ae49e commit 0fe13e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vstrt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ if (USE_NVINFER_PLUGIN)
target_link_libraries(vstrt PRIVATE ${CUDNN_LIB} CUDA::cublas)

if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_link_options(vstrt PRIVATE "/DELAYLOAD:cublas64_11.dll" "/DELAYLOAD:cudnn64_8.dll")
target_link_options(vstrt PRIVATE "/DELAYLOAD:cublas64_12.dll" "/DELAYLOAD:cudnn64_8.dll")
endif()
else()
target_link_libraries(vstrt PRIVATE nvinfer_plugin)
target_link_libraries(vstrt PRIVATE nvinfer_plugin CUDA::cublas)

if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_link_options(vstrt PRIVATE "/DELAYLOAD:nvinfer_plugin.dll")
target_link_options(vstrt PRIVATE "/DELAYLOAD:nvinfer_plugin.dll" "/DELAYLOAD:cublas64_12.dll")
endif()
endif()
endif()
Expand Down
1 change: 1 addition & 0 deletions vstrt/trtexec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ target_link_libraries(trtexec PRIVATE
nvinfer_plugin
nvparsers
nvonnxparser
CUDA::cublas
)

install(TARGETS trtexec RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

0 comments on commit 0fe13e7

Please sign in to comment.