Remove deprecated headers#2939
Conversation
Prepares for rapidsai/raft#2939. This PR updates the following headers: | old | new | |-----|-----| | `#include <raft/core/cudart_utils.hpp>` | `#include <raft/util/cudart_utils.hpp>` | | `#include <raft/common/nvtx.hpp>` | `#include <raft/core/nvtx.hpp>` | | `#include <raft/sparse/linalg/masked_matmul.hpp>` | `#include <raft/sparse/linalg/masked_matmul.cuh>` | | `#include <raft/linalg/gemm.hpp>` | `#include <raft/linalg/gemm.cuh>` | | `#include <raft/sparse/mst/mst.cuh>` | `#include <raft/sparse/solver/mst.cuh>` | Authors: - Anupam (https://github.com/aamijar) Approvers: - Jinsol Park (https://github.com/jinsolp) - Corey J. Nolet (https://github.com/cjnolet) URL: #1763
Prepares for rapidsai/raft#2939. This PR updates the following headers: | old | new | |-----|-----| | `#include <raft/core/cudart_utils.hpp>` | `#include <raft/util/cudart_utils.hpp>` | | `#include <raft/common/nvtx.hpp>` | `#include <raft/core/nvtx.hpp>` | | `#include <raft/sparse/linalg/masked_matmul.hpp>` | `#include <raft/sparse/linalg/masked_matmul.cuh>` | | `#include <raft/linalg/gemm.hpp>` | `#include <raft/linalg/gemm.cuh>` | | `#include <raft/sparse/mst/mst.cuh>` | `#include <raft/sparse/solver/mst.cuh>` | Authors: - Anupam (https://github.com/aamijar) Approvers: - Jinsol Park (https://github.com/jinsolp) - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#1763
|
I know this change might seem harmless but let's make sure we test downstream libraries before we merge it. |
| #include <raft/matrix/diagonal.cuh> | ||
| #include <raft/matrix/gather.cuh> | ||
| #include <raft/matrix/matrix.cuh> | ||
| // include <raft/matrix/matrix.cuh> |
There was a problem hiding this comment.
Need to remove the commented include?
| void ratio(raft::resources const& handle, | ||
| raft::device_vector_view<const math_t, idx_t> src, | ||
| raft::device_vector_view<math_t, idx_t> dest) |
Testing CI on all downstream repos now |
|
Glad I tested CI for cugraph and cuopt too, since those are breaking with this change! (cugraph) https://github.com/rapidsai/cugraph/actions/runs/21995874700/job/63555618060?pr=5429#step:9:4440 |
Testing with rapidsai/raft#2939 and adding fixes. ## Summary by CodeRabbit * **Chores** * Unified include paths for RAFT NVTX and cuSPARSE headers across the codebase. * Bumped header copyright years to 2026. * **Tests** * Updated test files to use the new RAFT header paths. Authors: - Anupam (https://github.com/aamijar) Approvers: - Hugo Linsenmaier (https://github.com/hlinsen) URL: #865
Testing with rapidsai/raft#2939 and adding fixes. Authors: - Anupam (https://github.com/aamijar) Approvers: - Chuck Hastings (https://github.com/ChuckHastings) - Seunghwa Kang (https://github.com/seunghwak) URL: #5429
|
@dantegd, could you resolve your request for changes if everything has been resolved. |
|
/merge |
Merges Remove deprecated headers (rapidsai#2939). Conflict resolutions: - rsvd.cuh: Use new mdspan-based raft::matrix::sqrt and reciprocal APIs (they have internal dry-run guards); kept cudaMemsetAsync guard - svd.cuh: Use raft::matrix::weighted_sqrt (has internal dry-run guard) - matrix.cuh: Accept deletion (deprecated, removed in main) Co-authored-by: Cursor <cursoragent@cursor.com>
Depends on rapidsai/cuvs#1763. Resolves #2937
This PR does the following:
raft/util/cudart_utils.cuhinstead ofraft/core/cudart_utils.cuhraft/linalg/matrix_vector.cuhinstead ofraft/matrix/math.cuh. This requires using the newer mdspan based apis.gemm.cuhandgemm.hppinto justgemm.cuhUpdate:
There were a couple of fixes included in this PR that I have decoupled. Instead those fixes should be merged in #2940.
This will allow us to unravel the merging sequence better to avoid breaking changes altogether. Still marking this PR as breaking for awareness purposes.
After merging #2940, the cuml side and cuvs side can be updated to use the non-deprecated apis. Then we can merge this raft PR to remove the deprecated and unused headers.
Update:
There are a couple of breaking changes that affect cugraph and cuopt, so we will need to merge fixes for those first.
Merging sequence:
#2940 -> rapidsai/cuvs#1763 -> rapidsai/cuml#7752 -> rapidsai/cuml#7797 -> rapidsai/cugraph#5429 -> NVIDIA/cuopt#865 -> #2939
Downstream libraries CI status:
cuvs: 🟢
cuml: 🟢
cugraph: 🟢
cuopt: 🟢