Skip to content

Commit

Permalink
add missing include for rocthrust
Browse files Browse the repository at this point in the history
  • Loading branch information
Masahiro Masuda committed Feb 17, 2021
1 parent 684ecc3 commit 3a11204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/ROCM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if(USE_ROCM)
find_package(rocprim REQUIRED)
find_package(rocthrust REQUIRED)
set_source_files_properties(src/runtime/contrib/thrust/thrust.cu PROPERTIES LANGUAGE CXX)
file(GLOB CONTRIB_THRUST_SRC src/runtime/contrib/thrust/thrust.cu)
file(GLOB CONTRIB_THRUST_SRC src/runtime/contrib/thrust/*.cu)
list(APPEND RUNTIME_SRCS ${CONTRIB_THRUST_SRC})
list(APPEND TVM_RUNTIME_LINKER_LIBS roc::rocthrust)
endif(USE_THRUST)
Expand Down
1 change: 1 addition & 0 deletions src/runtime/contrib/thrust/thrust.cu
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <thrust/sort.h>
#include <thrust/gather.h>
#include <thrust/scan.h>
#include <thrust/sequence.h>

#include <tvm/runtime/registry.h>
#include <dlpack/dlpack.h>
Expand Down

0 comments on commit 3a11204

Please sign in to comment.