Skip to content

Commit

Permalink
Fix cub (open-mmlab#312)
Browse files Browse the repository at this point in the history
* fix cub path

* use cmake source dir instead
  • Loading branch information
AllentDan committed Dec 20, 2021
1 parent d9b23bf commit 547a160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/backend_ops/tensorrt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set_targets(${PROJECT_NAME} BACKEND_OPS_OBJ BACKEND_OPS_STATIC BACKEND_OPS_MODUL
# cub
if (NOT DEFINED CUB_ROOT_DIR)
if (CUDA_VERSION VERSION_LESS 11.0)
set(CUB_ROOT_DIR "${PROJECT_SOURCE_DIR}/third_party/cub")
set(CUB_ROOT_DIR "${CMAKE_SOURCE_DIR}/third_party/cub")
endif()
endif ()

Expand Down

0 comments on commit 547a160

Please sign in to comment.