Created
August 15, 2025 09:24
-
-
Save alecco/58206ecd6af36c627609e1f464b4b376 to your computer and use it in GitHub Desktop.
Example of using static shared memory with array arithmetic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are probably either miscalculating
warp_id
orWARPS_EACH_BLK
is ill defined. I'd start by printing those.Also, once you master static shared memory, you probably want to eventually switch to use dynamic shared memory instead of static. It's a bit harder to use and reason but it's the normal CUDA way.