5 lines
161 B
Common Lisp
5 lines
161 B
Common Lisp
|
__kernel void vec_add(__global float *A, __global float *B, __global float *C, int N) {
|
||
|
int i = get_global_id(0);
|
||
|
if (i >= N) return;
|
||
|
C[i] = A[i] + B[i];
|
||
|
}
|