Created
July 8, 2019 21:32
-
-
Save r7vme/a37a4f9f34639313134b1ed78b9746aa 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
__global__ void rsqrtKernel( | |
const int n, | |
const float* x, | |
float* y) | |
{ | |
for (int i = blockIdx.x * blockDim.x + threadIdx.x; | |
i < n; i += gridDim.x * blockDim.x) | |
{ | |
y[i] = rsqrtf(x[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment