Skip to content

Commit 6e2c0f4

Browse files
authored
use cccl (#6694)
1 parent 7cf75dd commit 6e2c0f4

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.gitmodules

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
[submodule "third_party/tensorpipe"]
2323
path = third_party/tensorpipe
2424
url = https://github.com/pytorch/tensorpipe
25-
[submodule "third_party/thrust"]
26-
path = third_party/thrust
27-
url = https://github.com/NVIDIA/thrust.git
2825
[submodule "third_party/pcg"]
2926
path = third_party/pcg
3027
url = https://github.com/imneme/pcg-cpp.git
28+
[submodule "third_party/cccl"]
29+
path = third_party/cccl
30+
url = https://github.com/NVIDIA/cccl.git

CMakeLists.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ if(USE_CUDA)
125125
# see https://github.com/NVIDIA/thrust/issues/1401
126126
add_definitions(-DTHRUST_CUB_WRAPPED_NAMESPACE=dgl)
127127
include(cmake/modules/CUDA.cmake)
128-
message(STATUS "Use external CUB/Thrust library for a consistent API and performance.")
129-
cuda_include_directories(BEFORE "${CMAKE_SOURCE_DIR}/third_party/thrust")
130-
cuda_include_directories(BEFORE "${CMAKE_SOURCE_DIR}/third_party/thrust/dependencies/cub")
128+
message(STATUS "Use external CCCL library for a consistent API and performance.")
129+
cuda_include_directories(BEFORE "${CMAKE_SOURCE_DIR}/third_party/cccl/thrust")
130+
cuda_include_directories(BEFORE "${CMAKE_SOURCE_DIR}/third_party/cccl/cub")
131+
cuda_include_directories(BEFORE "${CMAKE_SOURCE_DIR}/third_party/cccl/libcudacxx/include")
131132
endif(USE_CUDA)
132133

133134
# initial variables

third_party/cccl

Submodule cccl added at 4d5c181

third_party/thrust

-1
This file was deleted.

0 commit comments

Comments
 (0)