Skip to content
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

Add select and gather cuda kernels. #359

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

nkoppel
Copy link
Contributor

@nkoppel nkoppel commented Jan 13, 2023

Adds cuda kernels for the SelectTo and GatherTo operations. Note that striding logic is not used to compute out_i in the gather kernel because the output tensor is never broadcasted, and because cudarc does not support calling functions with more than 12 arguments. Resolves #338.

Copy link
Owner

@coreylowman coreylowman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!!

@coreylowman coreylowman merged commit 348219f into coreylowman:main Jan 14, 2023
@nkoppel nkoppel deleted the select_gather branch January 14, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement select_to/gather_to cuda kernels
2 participants