-
Notifications
You must be signed in to change notification settings - Fork 206
Support coo_matrix
in coo_symmetrize
and coo_remove_scalar
#2662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: branch-25.08
Are you sure you want to change the base?
Conversation
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
*/ | ||
template <int TPB_X, typename T, typename idx_t, typename nnz_t> | ||
void coo_remove_scalar_mytest(raft::device_coo_matrix_view<T, idx_t, idx_t, nnz_t> in, | ||
raft::device_coo_matrix<T, idx_t, idx_t, nnz_t>& out, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to make this a device_coo_matrix_view
? Problem is that I can't call out.initialize_sparsity(out_nnz)
if its a view.
*/ | ||
template <int TPB_X = 128, typename T, typename IdxT, typename nnz_t, typename Lambda> | ||
void coo_symmetrize_mytest(raft::device_coo_matrix_view<T, IdxT, IdxT, nnz_t> in, | ||
raft::device_coo_matrix_view<T, IdxT, IdxT, nnz_t> out, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably change this to a ref and lazily allocate out inside this function with out.initialize_sparsity(out_nnz)
* @param stream: cuda stream to use | ||
*/ | ||
template <int TPB_X = 128, typename T, typename IdxT, typename nnz_t, typename Lambda> | ||
void coo_symmetrize_mytest(raft::device_coo_matrix_view<T, IdxT, IdxT, nnz_t> in, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo: add the public function in non detail file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo: rename function name from mytest
Resolves #2656, Resolves #2659