Created
May 29, 2019 01:46
-
-
Save t-ubukata/ccc6b77f73c619df753621de90bc2db5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CUDA: grid stride looping | |
#define CUDA_KERNEL_LOOP(i, n) \ | |
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < (n); \ | |
i += blockDim.x * gridDim.x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment