Skip to content

Commit

Permalink
fix: in tensorrt builds, remove forced cuda version and unused lib ou…
Browse files Browse the repository at this point in the history
…tput + force-select tensorrt when tensorrt_oss is selected
  • Loading branch information
beniz authored and sileht committed Oct 2, 2020
1 parent 4c93ace commit 9430fb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if (USE_CAFFE)
add_definitions(-DUSE_CAFFE)
endif()

if (USE_TENSORRT_OSS)
set(USE_TENSORRT ON)
endif()

if (USE_TF AND USE_CAFFE2)
message(FATAL_ERROR "Building with tensorflow AND caffe2 causes conflict
(The two libraries have their own protobuf embed)")
Expand Down Expand Up @@ -906,8 +910,6 @@ if (USE_TENSORRT)


list(APPEND TRT_FLAGS
-DTRT_LIB_DIR=${TENSORRT_DIR}/lib
-DCUDA_VERSION=10.0
-DTRT_OUT_DIR=${CMAKE_BINARY_DIR}/tensorrt-oss/bin
-DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc
)
Expand Down

0 comments on commit 9430fb4

Please sign in to comment.