simple_kernel.clc 308 B

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