Skip to content

Commit

Permalink
fix: missing path to cub headers in tensorrt-oss build for jetson nano
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz authored and mergify[bot] committed Jun 8, 2022
1 parent d3e722e commit 00df9fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,7 @@ if (USE_TENSORRT)
${TRT_PATCHES_PATH}/0003-c++14.patch
${TRT_PATCHES_PATH}/0009-fix_compil_order.patch
${TRT_PATCHES_PATH}/0010-fix_plugin_detect.patch
${TRT_PATCHES_PATH}/0011-fix_plugin_makefile_cub.patch
)

# Tensorrt uses its own protobuf version (3.0.0) and this cannot be overrided
Expand Down
13 changes: 13 additions & 0 deletions patches/trt/0011-fix_plugin_makefile_cub.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt
index 562681f..656cf9e 100644
--- a/plugin/CMakeLists.txt
+++ b/plugin/CMakeLists.txt
@@ -77,7 +77,7 @@ if(BERT_GENCODES)
include_directories(bertQKVToContextPlugin/fused_multihead_attention/include bertQKVToContextPlugin/fused_multihead_attention_v2/include)
endif()

-include_directories(common common/kernels ${CMAKE_SOURCE_DIR}/third_party)
+include_directories(common common/kernels ${CMAKE_SOURCE_DIR}/third_party ${CMAKE_SOURCE_DIR}/third_party/cub)

foreach(PLUGIN_ITER ${PLUGIN_LISTS})
include_directories(${PLUGIN_ITER})

0 comments on commit 00df9fd

Please sign in to comment.