Skip to content

Commit

Permalink
Force using Thrust 1.17.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Jun 16, 2022
1 parent 8863887 commit 0ba6551
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ rapids_cpm_init()
# lags behind.
###

# Putting this before everything else to override other Thrust versions
include(cmake/thirdparty/get_thrust.cmake)

# Putting this before raft to override RAFT from pulling them in.
include(cmake/thirdparty/get_libcudacxx.cmake)
include(cmake/thirdparty/get_cuco.cmake)
Expand Down
26 changes: 26 additions & 0 deletions cpp/cmake/thirdparty/get_thrust.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# =============================================================================
# Copyright (c) 2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

# Use CPM to find or clone thrust
function(find_and_configure_thrust)

include(${rapids-cmake-dir}/cpm/thrust.cmake)
rapids_cpm_thrust(
NAMESPACE cugraph
BUILD_EXPORT_SET cugraph-exports
INSTALL_EXPORT_SET cugraph-exports)

endfunction()

find_and_configure_thrust()

0 comments on commit 0ba6551

Please sign in to comment.