Skip to content

Commit

Permalink
added cuda libraries to cmake link_libraries of TensorRT, required fo…
Browse files Browse the repository at this point in the history
…r TensorRT 7.2 on linux
  • Loading branch information
smistad committed Dec 1, 2020
1 parent 4a6f5f0 commit b8a12fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(FAST_MODULE_TensorRT)

add_library(InferenceEngineTensorRT SHARED TensorRTEngine.hpp TensorRTEngine.cpp)
target_include_directories(InferenceEngineTensorRT PRIVATE ${FAST_INCLUDE_DIRS} ${TensorRT_INCLUDE_DIRS} ${CUDA_INCLUDE_DIRS})
target_link_libraries(InferenceEngineTensorRT FAST ${TensorRT_LIBRARIES})
target_link_libraries(InferenceEngineTensorRT FAST ${TensorRT_LIBRARIES} ${CUDA_LIBRARIES})
generate_export_header(InferenceEngineTensorRT EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/TensorRTExport.hpp)

fast_add_inference_engine(TensorRT)
Expand Down

0 comments on commit b8a12fc

Please sign in to comment.