Nenhuma descrição

12345678
  1. __kernel void vector_add(__global const int *A, __global const int *B, __global int *C) {
  2. // Get the index of the current element to be processed
  3. int i = get_global_id(0);
  4. // Do the operation
  5. C[i] = A[i] + B[i];
  6. }