Skip to content

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

Draft
wants to merge 3 commits into
base: branch-25.08
Choose a base branch
from

Conversation

aamijar
Copy link
Member

@aamijar aamijar commented May 13, 2025

Resolves #2656, Resolves #2659

Copy link

copy-pr-bot bot commented May 13, 2025

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.

@github-actions github-actions bot added the cpp label May 13, 2025
@aamijar aamijar self-assigned this May 13, 2025
@aamijar aamijar added non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels May 13, 2025
*/
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,
Copy link
Member Author

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,
Copy link
Member Author

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,
Copy link
Member Author

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

Copy link
Member Author

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

@aamijar aamijar changed the base branch from branch-25.06 to branch-25.08 May 29, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
Development

Successfully merging this pull request may close these issues.

Support new coo_matrix types in coo_remove_scalar Support new coo_matrix types in coo_symmetrize
2 participants