simple_kernel.clc 265 B

1234567
  1. __kernel void krSimpleKernel(__global float* pA,
  2. __global float* pB,
  3. __private long unsigned int size) {
  4. long unsigned int idx=get_global_id(0);
  5. if(idx<size) pB[idx]=pA[idx]*pA[idx];
  6. return;
  7. }