-
-
Save balidani/bd6f7d4dd8a0b7fbd32e to your computer and use it in GitHub Desktop.
This file contains 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
#define Q \ | |
x += in[gid]; \ | |
x *= salt[gid]; | |
__kernel void sample( | |
__global uint *in, | |
__global uint *salt, | |
__global uint *out | |
) | |
{ | |
int gid = get_global_id(0); | |
int x = 0; | |
Q Q Q Q | |
out[gid] = x + 666; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment