Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __kernel void Add(__global int* pA, __global int* pB, __global int* pC)
- {
- const int x = get_global_id(0);
- const int y = get_global_id(1);
- const int width = get_global_size(0);
- const int id = y * width + x;
- pC[id] = pA[id] + pB[id];
- printf(pC[id]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement