From aaae5a681a9c6c326dc0e262d93fcd7fe3f769e5 Mon Sep 17 00:00:00 2001 From: Ramakrishna Prabhu Date: Fri, 28 Aug 2026 17:26:05 -0500 Subject: [PATCH] Remove unused cusolver/curand deps from libcuopt Neither is referenced anywhere in cpp/src, and no RAFT header cuOpt includes (raft/core, raft/linalg's cublas-based ops, raft/random's custom PCG generator, raft/sparse) touches either library. Verified with a full local build: nm -D --undefined-only on the resulting libcuopt.so shows zero cusolver/curand symbols among its 762 undefined dynamic symbols, confirming the compiled binary has no runtime dependency on either. cusolver-dev/libcurand-dev removed from dependencies.yaml (conda environments regenerated via rapids-dependency-file-generator). libcurand-dev and its ignore_run_exports entry removed from conda/recipes/libcuopt/recipe.yaml; cusolver was never explicitly declared there, only inherited transitively via libraft-headers. Out of scope: the cuda_wheels pip/wheel install path (untested by this conda-based validation), and switching libraft-headers to libraft-headers-only (bigger change, needs its own conda-build validation). Signed-off-by: Ramakrishna Prabhu --- conda/environments/all_cuda-129_arch-aarch64.yaml | 2 -- conda/environments/all_cuda-129_arch-x86_64.yaml | 2 -- conda/environments/all_cuda-133_arch-aarch64.yaml | 2 -- conda/environments/all_cuda-133_arch-x86_64.yaml | 2 -- conda/recipes/libcuopt/recipe.yaml | 3 --- cpp/CMakeLists.txt | 2 -- dependencies.yaml | 2 -- 7 files changed, 15 deletions(-) diff --git a/conda/environments/all_cuda-129_arch-aarch64.yaml b/conda/environments/all_cuda-129_arch-aarch64.yaml index e72b2b2671..a4b40f535a 100644 --- a/conda/environments/all_cuda-129_arch-aarch64.yaml +++ b/conda/environments/all_cuda-129_arch-aarch64.yaml @@ -31,8 +31,6 @@ dependencies: - libabseil - libboost-devel - libcudss-dev >=0.7,<0.8 -- libcurand-dev -- libcusolver-dev - libcusparse-dev - libgrpc >=1.78.0,<1.80.0a0 - libnvjitlink-dev diff --git a/conda/environments/all_cuda-129_arch-x86_64.yaml b/conda/environments/all_cuda-129_arch-x86_64.yaml index d78584c155..34c24bb356 100644 --- a/conda/environments/all_cuda-129_arch-x86_64.yaml +++ b/conda/environments/all_cuda-129_arch-x86_64.yaml @@ -31,8 +31,6 @@ dependencies: - libabseil - libboost-devel - libcudss-dev >=0.7,<0.8 -- libcurand-dev -- libcusolver-dev - libcusparse-dev - libgrpc >=1.78.0,<1.80.0a0 - libnvjitlink-dev diff --git a/conda/environments/all_cuda-133_arch-aarch64.yaml b/conda/environments/all_cuda-133_arch-aarch64.yaml index 6d83b9508c..f53eb0fbd6 100644 --- a/conda/environments/all_cuda-133_arch-aarch64.yaml +++ b/conda/environments/all_cuda-133_arch-aarch64.yaml @@ -31,8 +31,6 @@ dependencies: - libabseil - libboost-devel - libcudss-dev >=0.7,<0.8 -- libcurand-dev -- libcusolver-dev - libcusparse-dev - libgrpc >=1.78.0,<1.80.0a0 - libnvjitlink-dev diff --git a/conda/environments/all_cuda-133_arch-x86_64.yaml b/conda/environments/all_cuda-133_arch-x86_64.yaml index ee871ecabd..1349d8f920 100644 --- a/conda/environments/all_cuda-133_arch-x86_64.yaml +++ b/conda/environments/all_cuda-133_arch-x86_64.yaml @@ -31,8 +31,6 @@ dependencies: - libabseil - libboost-devel - libcudss-dev >=0.7,<0.8 -- libcurand-dev -- libcusolver-dev - libcusparse-dev - libgrpc >=1.78.0,<1.80.0a0 - libnvjitlink-dev diff --git a/conda/recipes/libcuopt/recipe.yaml b/conda/recipes/libcuopt/recipe.yaml index b6172827d1..18a26c172f 100644 --- a/conda/recipes/libcuopt/recipe.yaml +++ b/conda/recipes/libcuopt/recipe.yaml @@ -85,7 +85,6 @@ cache: - rapids-logger =0.3 - cuda-nvtx-dev - libcudss-dev >=0.7,<0.8 - - libcurand-dev - libcusparse-dev - libnvjitlink-dev - libboost-devel @@ -158,7 +157,6 @@ outputs: - cuda-nvtx - cuda-version - libcudss - - libcurand - libcusparse - librmm - libboost @@ -206,7 +204,6 @@ outputs: by_name: - cuda-nvtx - cuda-version - - libcurand - libcusparse - libcudss - librmm diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index b375cc4c56..f7e89952c2 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -720,8 +720,6 @@ endif () # - link libraries -------------------------------------------------------------------------------- set(CUOPT_PRIVATE_CUDA_LIBS - CUDA::curand - CUDA::cusolver TBB::tbb OpenMP::OpenMP_CXX) diff --git a/dependencies.yaml b/dependencies.yaml index c484aa2180..db63d8e896 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -749,8 +749,6 @@ dependencies: - output_types: [conda] packages: - libcudss-dev >=0.7,<0.8 - - libcurand-dev - - libcusolver-dev - libcusparse-dev - cuda-nvtx-dev - libnvjitlink-dev