Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __kernel void vector_add(__global const float *dx,__global float *a, __global float *calka) {
- // Get the index of the current element to be processed
- int i = get_global_id(0);
- calka[0] = calka[0] + ((a[0] + (i * dx[0])) * (a[0] + (i * dx[0])));
- }
Add Comment
Please, Sign In to add comment