Skip to content

Instantly share code, notes, and snippets.

@balidani

balidani/test.cl Secret

Created August 24, 2013 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balidani/bd6f7d4dd8a0b7fbd32e to your computer and use it in GitHub Desktop.
Save balidani/bd6f7d4dd8a0b7fbd32e to your computer and use it in GitHub Desktop.
#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