diff --git a/ci/build_python.sh b/ci/build_python.sh index 90a40c539ff..31982648884 100755 --- a/ci/build_python.sh +++ b/ci/build_python.sh @@ -19,7 +19,7 @@ echo "${version}" > VERSION rapids-logger "Begin py build" package_dir="python" -for package_name in pylibcugraph cugraph nx-cugraph cugraph-pyg cugraph-dgl; do +for package_name in pylibcugraph cugraph nx-cugraph cugraph-pyg cugraph-dgl; do underscore_package_name=$(echo "${package_name}" | tr "-" "_") sed -i "/^__git_commit__/ s/= .*/= \"${git_commit}\"/g" "${package_dir}/${package_name}/${underscore_package_name}/_version.py" done diff --git a/ci/test_cpp.sh b/ci/test_cpp.sh index 95bc55c212a..b204c1dc59b 100755 --- a/ci/test_cpp.sh +++ b/ci/test_cpp.sh @@ -19,6 +19,7 @@ conda activate test set -u CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) + RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}/ mkdir -p "${RAPIDS_TESTS_DIR}" diff --git a/ci/test_python.sh b/ci/test_python.sh index d6e92e8d1a5..f62caca92a6 100755 --- a/ci/test_python.sh +++ b/ci/test_python.sh @@ -208,7 +208,7 @@ if [[ "${RAPIDS_CUDA_VERSION}" == "11.8.0" ]]; then "cugraph-pyg" \ "pytorch>=2.0,<2.1" \ "pytorch-cuda=11.8" - + # Install pyg dependencies (which requires pip) pip install \ pyg_lib \ diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index a772651625d..d8f359b5bcb 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -142,8 +142,8 @@ rapids_cpm_init() ### # Linking to the `raft::raft` target implicitly links cugraph targets to the # following public header-only raft dependencies: +# * CCCL # * RMM -# * Thrust # * GTest/GMock # # The CMakeLists.txt for each of these projects are properly configured @@ -153,16 +153,14 @@ rapids_cpm_init() # lags behind. ### -# Need to make sure rmm is found before cuco so that rmm patches the libcudacxx -# directory to be found by cuco. +# Need CCCL, then rmm, then cuCollections, then RAFT. +# This ensures that libraries can be overridden for testing. +include(cmake/thirdparty/get_cccl.cmake) include(${rapids-cmake-dir}/cpm/rmm.cmake) rapids_cpm_rmm(BUILD_EXPORT_SET cugraph-exports - INSTALL_EXPORT_SET cugraph-exports) -# Putting this before raft to override RAFT from pulling them in. -include(cmake/thirdparty/get_libcudacxx.cmake) + INSTALL_EXPORT_SET cugraph-exports) include(${rapids-cmake-dir}/cpm/cuco.cmake) rapids_cpm_cuco(BUILD_EXPORT_SET cugraph-exports INSTALL_EXPORT_SET cugraph-exports) - include(cmake/thirdparty/get_raft.cmake) if(USE_CUGRAPH_OPS) diff --git a/cpp/cmake/thirdparty/get_libcudacxx.cmake b/cpp/cmake/thirdparty/get_cccl.cmake similarity index 68% rename from cpp/cmake/thirdparty/get_libcudacxx.cmake rename to cpp/cmake/thirdparty/get_cccl.cmake index 1c51c5a84a9..72b53d4c833 100644 --- a/cpp/cmake/thirdparty/get_libcudacxx.cmake +++ b/cpp/cmake/thirdparty/get_cccl.cmake @@ -1,5 +1,5 @@ # ============================================================================= -# Copyright (c) 2020-2022, NVIDIA CORPORATION. +# Copyright (c) 2020-2023, 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 @@ -12,12 +12,10 @@ # the License. # ============================================================================= -# This function finds libcudacxx and sets any additional necessary environment variables. -function(find_and_configure_libcudacxx) - include(${rapids-cmake-dir}/cpm/libcudacxx.cmake) - - rapids_cpm_libcudacxx(BUILD_EXPORT_SET cugraph-exports) - +# This function finds CCCL and sets any additional necessary environment variables. +function(find_and_configure_cccl) + include(${rapids-cmake-dir}/cpm/cccl.cmake) + rapids_cpm_cccl(BUILD_EXPORT_SET cugraph-exports INSTALL_EXPORT_SET cugraph-exports) endfunction() -find_and_configure_libcudacxx() +find_and_configure_cccl()