eyalroz / cuda-kat

CUDA kernel author's tools
BSD 3-Clause "New" or "Revised" License
106 stars 8 forks source link

Add rotate_left and rotate_right as non-builtins #67

Open eyalroz opened 4 years ago

eyalroz commented 4 years ago

Would you believe PTX doesn't have rotate left and rotate right? It's true... and neither do we.

Let's add them as non-builtins.

Note that one can use funnel_shift to neatly implement rotation for 32-bit integers.