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

SpMVCSR.h: CUDA replacement of __shfl functions #20

Open
surajchandran1 opened this issue Mar 11, 2024 · 0 comments
Open

SpMVCSR.h: CUDA replacement of __shfl functions #20

surajchandran1 opened this issue Mar 11, 2024 · 0 comments

Comments

@surajchandran1
Copy link

surajchandran1 commented Mar 11, 2024

As per the CUDA programming guide:

Removal Notice: When targeting devices with compute capability 7.x or higher, __shfl, __shfl_up, __shfl_down, and __shfl_xor are no longer available and their sync variants (i.e. __shfl_sync, __shfl_up_sync, __shfl_down_sync, and __shfl_xor_sync) should be used instead.

SpMVCSR.h makes some calls to the warp primitives that need to be replaced when targeting newer GPU hardware. The sync variants take an extra first positional argument which is a mask on the GPU threads; the non-sync functionality can be obtained by passing -1 here (e.g. replace __shfl(row, 0) in line 75 with __shfl_sync(-1, row, 0)). Making this change in the codebase could, however, affect backwards compatibility.

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

No branches or pull requests

1 participant