Skip to content

Commit

Permalink
Merge pull request #6155 from rongou/no-fetch-cub
Browse files Browse the repository at this point in the history
[REVIEW] use the CUB submodule in Thrust instead of fetching it
  • Loading branch information
harrism authored Sep 8, 2020
2 parents d283a8d + 59adc06 commit f4735c7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- PR #6015 Upgrade CUB/Thrust to the latest commit
- PR #5971 Add cuStreamz README for basic installation and use
- PR #6024 Expose selecting multiple ORC stripes to read from Python
- PR #6155 Use the CUB submodule in Thrust instead of fetching CUB separately
- PR #6002 Add Java bindings for md5
- PR #6067 Added compute codes for aarch64 devices
- PR #6083 Small cleanup
Expand Down
3 changes: 1 addition & 2 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@ message(STATUS "BENCHMARK_LIST set to: ${BENCHMARK_LIST}")
###################################################################################################
# - include paths ---------------------------------------------------------------------------------

include_directories("${CUB_INCLUDE_DIR}"
"${THRUST_INCLUDE_DIR}"
include_directories("${THRUST_INCLUDE_DIR}"
"${JITIFY_INCLUDE_DIR}"
"${LIBCUDACXX_INCLUDE_DIR}")

Expand Down
3 changes: 1 addition & 2 deletions cpp/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ endfunction(ConfigureBench)
###################################################################################################
# - include paths ---------------------------------------------------------------------------------

include_directories("${CUB_INCLUDE_DIR}"
"${THRUST_INCLUDE_DIR}"
include_directories("${THRUST_INCLUDE_DIR}"
"${JITIFY_INCLUDE_DIR}"
"${LIBCUDACXX_INCLUDE_DIR}")

Expand Down
3 changes: 1 addition & 2 deletions cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ endfunction(ConfigureTest)
###################################################################################################
# - include paths ---------------------------------------------------------------------------------

include_directories("${CUB_INCLUDE_DIR}"
"${THRUST_INCLUDE_DIR}"
include_directories("${THRUST_INCLUDE_DIR}"
"${JITIFY_INCLUDE_DIR}"
"${LIBCUDACXX_INCLUDE_DIR}")

Expand Down
21 changes: 1 addition & 20 deletions thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
include(FetchContent)

###################################################################################################
# - cub -------------------------------------------------------------------------------------------

message("Fetching CUB")

FetchContent_Declare(
cub
GIT_REPOSITORY https://github.com/thrust/cub.git
# August 28, 2020
GIT_TAG 2442f44532ffcc53298c7e3a298feb5134563860
)

FetchContent_GetProperties(cub)
if(NOT cub_POPULATED)
FetchContent_Populate(cub)
# We are not using the cub CMake targets, so no need to call `add_subdirectory()`.
endif()
set(CUB_INCLUDE_DIR "${cub_SOURCE_DIR}" PARENT_SCOPE)

###################################################################################################
# - thrust ----------------------------------------------------------------------------------------
# - thrust/cub ------------------------------------------------------------------------------------

message("Fetching Thrust")

Expand Down

0 comments on commit f4735c7

Please sign in to comment.