-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5315 from rongou/fetch-thrust
[REVIEW] fetch thrust/cub from github
- Loading branch information
Showing
13 changed files
with
64 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
include(FetchContent) | ||
|
||
################################################################################################### | ||
# - cub ------------------------------------------------------------------------------------------- | ||
|
||
FetchContent_Declare( | ||
cub | ||
GIT_REPOSITORY https://github.com/thrust/cub.git | ||
GIT_TAG 1.9.10 | ||
GIT_SHALLOW true | ||
# TODO(rongou): remove this after upgrading to new CUB release. | ||
PATCH_COMMAND | ||
COMMAND sed -i "494 a histogram_sweep_config.template Init<typename Policy110::HistogramSweepPolicy>()$<SEMICOLON>" cub/device/dispatch/dispatch_histogram.cuh | ||
) | ||
|
||
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 ---------------------------------------------------------------------------------------- | ||
|
||
FetchContent_Declare( | ||
thrust | ||
GIT_REPOSITORY https://github.com/thrust/thrust.git | ||
GIT_TAG 1.9.10 | ||
GIT_SHALLOW true | ||
) | ||
|
||
FetchContent_GetProperties(thrust) | ||
if(NOT thrust_POPULATED) | ||
FetchContent_Populate(thrust) | ||
# We are not using the thrust CMake targets, so no need to call `add_subdirectory()`. | ||
endif() | ||
set(THRUST_INCLUDE_DIR "${thrust_SOURCE_DIR}" PARENT_SCOPE) |
Submodule cub
deleted from
b165e1