Skip to content

Commit 3a11204

Browse files
author
Masahiro Masuda
committed
add missing include for rocthrust
1 parent 684ecc3 commit 3a11204

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmake/modules/ROCM.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if(USE_ROCM)
6161
find_package(rocprim REQUIRED)
6262
find_package(rocthrust REQUIRED)
6363
set_source_files_properties(src/runtime/contrib/thrust/thrust.cu PROPERTIES LANGUAGE CXX)
64-
file(GLOB CONTRIB_THRUST_SRC src/runtime/contrib/thrust/thrust.cu)
64+
file(GLOB CONTRIB_THRUST_SRC src/runtime/contrib/thrust/*.cu)
6565
list(APPEND RUNTIME_SRCS ${CONTRIB_THRUST_SRC})
6666
list(APPEND TVM_RUNTIME_LINKER_LIBS roc::rocthrust)
6767
endif(USE_THRUST)

src/runtime/contrib/thrust/thrust.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <thrust/sort.h>
2727
#include <thrust/gather.h>
2828
#include <thrust/scan.h>
29+
#include <thrust/sequence.h>
2930

3031
#include <tvm/runtime/registry.h>
3132
#include <dlpack/dlpack.h>

0 commit comments

Comments
 (0)