diff --git a/conda/environments/all_cuda-129_arch-aarch64.yaml b/conda/environments/all_cuda-129_arch-aarch64.yaml index 48bdb46bb48..02b6ba3c826 100644 --- a/conda/environments/all_cuda-129_arch-aarch64.yaml +++ b/conda/environments/all_cuda-129_arch-aarch64.yaml @@ -11,6 +11,7 @@ dependencies: - certifi - cmake>=3.30.4 - cuda-nvcc +- cuda-nvrtc-dev - cuda-nvtx-dev - cuda-profiler-api - cuda-python>=12.9.2,<13.0 diff --git a/conda/environments/all_cuda-129_arch-x86_64.yaml b/conda/environments/all_cuda-129_arch-x86_64.yaml index 318f625f522..8259a6b0922 100644 --- a/conda/environments/all_cuda-129_arch-x86_64.yaml +++ b/conda/environments/all_cuda-129_arch-x86_64.yaml @@ -11,6 +11,7 @@ dependencies: - certifi - cmake>=3.30.4 - cuda-nvcc +- cuda-nvrtc-dev - cuda-nvtx-dev - cuda-profiler-api - cuda-python>=12.9.2,<13.0 diff --git a/conda/environments/all_cuda-131_arch-aarch64.yaml b/conda/environments/all_cuda-131_arch-aarch64.yaml index 8b35674a6a3..8fdc36ae59e 100644 --- a/conda/environments/all_cuda-131_arch-aarch64.yaml +++ b/conda/environments/all_cuda-131_arch-aarch64.yaml @@ -11,6 +11,7 @@ dependencies: - certifi - cmake>=3.30.4 - cuda-nvcc +- cuda-nvrtc-dev - cuda-nvtx-dev - cuda-profiler-api - cuda-python>=13.0.1,<14.0 diff --git a/conda/environments/all_cuda-131_arch-x86_64.yaml b/conda/environments/all_cuda-131_arch-x86_64.yaml index 3a3c9b626a4..e453bf42040 100644 --- a/conda/environments/all_cuda-131_arch-x86_64.yaml +++ b/conda/environments/all_cuda-131_arch-x86_64.yaml @@ -11,6 +11,7 @@ dependencies: - certifi - cmake>=3.30.4 - cuda-nvcc +- cuda-nvrtc-dev - cuda-nvtx-dev - cuda-profiler-api - cuda-python>=13.0.1,<14.0 diff --git a/conda/recipes/libcugraph/recipe.yaml b/conda/recipes/libcugraph/recipe.yaml index 279a01d2924..f7dc450334c 100644 --- a/conda/recipes/libcugraph/recipe.yaml +++ b/conda/recipes/libcugraph/recipe.yaml @@ -79,6 +79,8 @@ cache: - nccl ${{ nccl_version }} - openmpi <5.0.3 # Required for building cpp-mgtests (multi-GPU tests) - rapids-build-backend >=0.4.0,<0.5.0 + - cuda-cudart-dev + - cuda-nvrtc-dev - cuda-nvtx-dev - cuda-profiler-api - libcublas-dev @@ -111,6 +113,8 @@ outputs: - cuda-version =${{ cuda_version }} - librmm =${{ minor_version }} - rapids-logger =0.2 + - cuda-cudart-dev + - cuda-nvrtc-dev - libcublas-dev - libcurand-dev - libcusolver-dev @@ -120,6 +124,8 @@ outputs: - libraft =${{ minor_version }} - librmm =${{ minor_version }} - nccl ${{ nccl_version }} + - cuda-cudart + - cuda-nvrtc - cuda-profiler-api - libcublas - libcurand @@ -127,6 +133,8 @@ outputs: - libcusparse ignore_run_exports: by_name: + - cuda-cudart + - cuda-nvrtc - cuda-nvtx - cuda-version - libcublas @@ -166,13 +174,19 @@ outputs: - cuda-version =${{ cuda_version }} - libcudf =${{ minor_version }} - librmm =${{ minor_version }} + - cuda-cudart-dev + - cuda-nvrtc-dev run: - ${{ pin_compatible("cuda-version", upper_bound="x", lower_bound="x") }} - ${{ pin_subpackage("libcugraph", exact=True) }} - libcudf =${{ minor_version }} - librmm =${{ minor_version }} + - cuda-cudart + - cuda-nvrtc ignore_run_exports: by_name: + - cuda-cudart + - cuda-nvrtc - cuda-nvtx - cuda-version - libcublas @@ -209,6 +223,8 @@ outputs: host: - ${{ pin_subpackage("libcugraph", exact=True) }} - cuda-version =${{ cuda_version }} + - cuda-cudart-dev + - cuda-nvrtc-dev - nccl ${{ nccl_version }} - openmpi <5.0.3 # Required for building cpp-mgtests (multi-GPU tests) - rapids-logger =0.2 @@ -216,8 +232,12 @@ outputs: - ${{ pin_compatible("cuda-version", upper_bound="x", lower_bound="x") }} - ${{ pin_subpackage("libcugraph", exact=True) }} - ${{ pin_subpackage("libcugraph_etl", exact=True) }} + - cuda-cudart + - cuda-nvrtc ignore_run_exports: by_name: + - cuda-cudart + - cuda-nvrtc - cuda-nvtx - cuda-version - libcublas diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 6836f47fa4a..d5801bff537 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -471,6 +471,9 @@ SECTIONS } ]=]) +set_property(TARGET cugraph PROPERTY NO_CUDART_DEP ON) +set_property(TARGET cugraph_mg PROPERTY NO_CUDART_DEP ON) + set(cugraph_suffixes "" "_mg") foreach(suffix IN LISTS cugraph_suffixes) set_target_properties(cugraph${suffix} @@ -511,13 +514,14 @@ foreach(suffix IN LISTS cugraph_suffixes) # - link libraries ------------------------------------------------------------- target_link_libraries(cugraph${suffix} PUBLIC - rmm::rmm raft::raft $ PRIVATE ${COMPILED_RAFT_LIB} $,cuvs::cuvs_static,cuvs::cuvs> # cuco::cuco + rmm::rmm + INTERFACE $ ) ################################################################################ diff --git a/cpp/tests/CMakeLists.txt b/cpp/tests/CMakeLists.txt index 6e9ec49f3e7..333a212ba0b 100644 --- a/cpp/tests/CMakeLists.txt +++ b/cpp/tests/CMakeLists.txt @@ -47,6 +47,7 @@ target_compile_options(cugraphtestutil ) set_property(TARGET cugraphtestutil PROPERTY POSITION_INDEPENDENT_CODE ON) +set_property(TARGET cugraphtestutil PROPERTY NO_CUDART_DEP ON) target_include_directories(cugraphtestutil PUBLIC @@ -83,6 +84,7 @@ target_include_directories(cugraph_c_testutil ) set_property(TARGET cugraph_c_testutil PROPERTY POSITION_INDEPENDENT_CODE ON) +set_property(TARGET cugraph_c_testutil PROPERTY NO_CUDART_DEP ON) target_link_libraries(cugraph_c_testutil PUBLIC @@ -114,6 +116,7 @@ if(BUILD_CUGRAPH_MG_TESTS) ) set_property(TARGET cugraphmgtestutil PROPERTY POSITION_INDEPENDENT_CODE ON) + set_property(TARGET cugraphmgtestutil PROPERTY NO_CUDART_DEP ON) target_compile_options(cugraphmgtestutil PUBLIC "$<$:${CUGRAPH_CXX_FLAGS}>" diff --git a/dependencies.yaml b/dependencies.yaml index 8b3aeba94a3..5091ea09a53 100755 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -299,6 +299,7 @@ dependencies: common: - output_types: [conda] packages: + - cuda-nvrtc-dev - cuda-nvtx-dev - cuda-profiler-api - libcublas-dev @@ -328,13 +329,13 @@ dependencies: cuda: "12.9" use_cuda_wheels: "true" packages: - - cuda-toolkit[cublas,curand,cusolver,cusparse]==12.* + - cuda-toolkit[cublas,curand,cusolver,cusparse,nvrtc]==12.* - nvidia-nvjitlink-cu12>=12.9,<13 - matrix: cuda: "13.*" use_cuda_wheels: "true" packages: - - &ctk_cu13 cuda-toolkit[cublas,curand,cusolver,cusparse]==13.* + - &ctk_cu13 cuda-toolkit[cublas,curand,cusolver,cusparse,nvrtc]==13.* - &nvjitlink_cu13 nvidia-nvjitlink>=13.0,<14 # if no matching matrix selectors passed, list the CUDA 13 requirement # (just as a source of documentation, as this populates pyproject.toml in source control) diff --git a/python/libcugraph/pyproject.toml b/python/libcugraph/pyproject.toml index 902621d1afe..0a978b37b3e 100644 --- a/python/libcugraph/pyproject.toml +++ b/python/libcugraph/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ "Environment :: GPU :: NVIDIA CUDA", ] dependencies = [ - "cuda-toolkit[cublas,curand,cusolver,cusparse]==13.*", + "cuda-toolkit[cublas,curand,cusolver,cusparse,nvrtc]==13.*", "libraft==26.6.*,>=0.0.0a0", "librmm==26.6.*,>=0.0.0a0", "nvidia-nvjitlink>=13.0,<14",