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

document issue #4

Open
foricee opened this issue Dec 18, 2023 · 0 comments
Open

document issue #4

foricee opened this issue Dec 18, 2023 · 0 comments

Comments

@foricee
Copy link

foricee commented Dec 18, 2023

Thank you for your excellent work and detailed document!I think there's a small typo in the document. According to NVIDIA's doc, below should be above.

https://github.com/wangsiping97/FastGEMV/blob/main/method_and_result.md

The __shfl_down_sync(mask, var, delta) function is used to perform the sum reduction. It takes a mask (0xffffffff, representing all threads in a warp) which indicates the threads participating in the operation, var which is the value to be shifted, and delta which is the number of positions to shift. This function returns the value of var held by the thread delta positions below the calling thread in the warp. If the target thread is out of bounds, the calling thread's own value is returned.

https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#id36

__shfl_down_sync() calculates a source lane ID by adding delta to the caller’s lane ID.

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