Add binary_mult and const fixes for ratio and sqrt apis#2940
Merged
Conversation
viclafargue
reviewed
Feb 4, 2026
viclafargue
left a comment
Contributor
There was a problem hiding this comment.
LGTM! But, could you add some tests in matrix_vector_op.cu?
Contributor
Author
Thanks for the review @viclafargue! I've added the new gtests for |
viclafargue
approved these changes
Feb 11, 2026
viclafargue
left a comment
Contributor
There was a problem hiding this comment.
Thanks, looks great!
divyegala
approved these changes
Feb 11, 2026
Contributor
|
/merge |
rapids-bot Bot
pushed a commit
to rapidsai/cuml
that referenced
this pull request
Feb 13, 2026
Depends on NVIDIA/raft#2940. Resolves #7750. This PR does the following: 1. Decompose usage of `#include <raft/matrix/math.cuh>` into necessary required headers such as: ```cpp #include <raft/linalg/matrix_vector.cuh> #include <raft/linalg/power.cuh> #include <raft/linalg/sqrt.cuh> #include <raft/matrix/threshold.cuh> #include <raft/matrix/ratio.cuh> #include <raft/matrix/copy.cuh> ``` 2. Use the new mdspan apis. 3. Use a new handle per stream where necessary. This is because the mdspan apis accept handle and not stream. Authors: - Anupam (https://github.com/aamijar) Approvers: - Victor Lafargue (https://github.com/viclafargue) URL: #7752
dantegd
added a commit
to dantegd/cuml
that referenced
this pull request
Feb 17, 2026
Depends on NVIDIA/raft#2940. Resolves rapidsai#7750. This PR does the following: 1. Decompose usage of `#include <raft/matrix/math.cuh>` into necessary required headers such as: ```cpp #include <raft/linalg/matrix_vector.cuh> #include <raft/linalg/power.cuh> #include <raft/linalg/sqrt.cuh> #include <raft/matrix/threshold.cuh> #include <raft/matrix/ratio.cuh> #include <raft/matrix/copy.cuh> ``` 2. Use the new mdspan apis. 3. Use a new handle per stream where necessary. This is because the mdspan apis accept handle and not stream. Authors: - Anupam (https://github.com/aamijar) Approvers: - Victor Lafargue (https://github.com/viclafargue) URL: rapidsai#7752
rapids-bot Bot
pushed a commit
that referenced
this pull request
Feb 23, 2026
Depends on NVIDIA/cuvs#1763. Resolves #2937 This PR does the following: 1. Removes files with the following message ```cpp #ifndef RAFT_HIDE_DEPRECATION_WARNINGS #pragma message(__FILE__ \ " is deprecated and will be removed in a future release." \ " Please use the raft/sparse/solver version instead.") #endif ``` 2. Removes files with the following message ```cpp /** * This file is deprecated and will be removed in a future release. */ ``` 3. Pulls from correct non-deprecated headers like using`raft/util/cudart_utils.cuh` instead of `raft/core/cudart_utils.cuh` 4. Pulls correct functionality from non-deprecated headers like using `raft/linalg/matrix_vector.cuh` instead of `raft/matrix/math.cuh`. This requires using the newer mdspan based apis. 5. Consolidates `gemm.cuh` and `gemm.hpp` into just `gemm.cuh` **Update:** 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 -> NVIDIA/cuvs#1763 -> rapidsai/cuml#7752 -> rapidsai/cuml#7797 -> rapidsai/cugraph#5429 -> NVIDIA/cuopt#865 -> #2939 **Downstream libraries CI status:** cuvs: 🟢 cuml: 🟢 cugraph: 🟢 cuopt: 🟢 Authors: - Anupam (https://github.com/aamijar) Approvers: - Bradley Dice (https://github.com/bdice) - Divye Gala (https://github.com/divyegala) - Dante Gama Dessavre (https://github.com/dantegd) URL: #2939
Kaweees
pushed a commit
to Kaweees/cuml
that referenced
this pull request
May 8, 2026
Depends on NVIDIA/raft#2940. Resolves rapidsai#7750. This PR does the following: 1. Decompose usage of `#include <raft/matrix/math.cuh>` into necessary required headers such as: ```cpp #include <raft/linalg/matrix_vector.cuh> #include <raft/linalg/power.cuh> #include <raft/linalg/sqrt.cuh> #include <raft/matrix/threshold.cuh> #include <raft/matrix/ratio.cuh> #include <raft/matrix/copy.cuh> ``` 2. Use the new mdspan apis. 3. Use a new handle per stream where necessary. This is because the mdspan apis accept handle and not stream. Authors: - Anupam (https://github.com/aamijar) Approvers: - Victor Lafargue (https://github.com/viclafargue) URL: rapidsai#7752
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR does the following:
binary_multformatrixVectorBinaryMultand corresponding gtests.seqRootapi does not have a const qualifier for the input (the wrapper mdspan apisqrthas aconstinput which causes the bug)ratioapi does not have a const qualifier for the input (the wrapper mdspan apiratiohas aconstinput which causes the bug)sqrt.cuhandratio.cuh.#include <raft/matrix/detail/math.cuh>instead of#include <raft/matrix/detail/matrix.cuh>