Cekirdekler icon indicating copy to clipboard operation
Cekirdekler copied to clipboard

ClArray.name to bind an array to a kernel parameter with exact spelling

Open tugrul512bit opened this issue 7 years ago • 1 comments

this way, binding only necessary arrays to a kernel will be possible, instead of all arrays

tugrul512bit avatar May 29 '17 16:05 tugrul512bit

__kernel void test(__global float * parameter1, __constant int * parameter2){} __kernel void test2(__global float * parameter1){}

ClArray a=new float[1024]; a.name="parameter1"; ClArray b=new float[1024]; b.name="parameter2"; a.nextParam(b).compute(...," test test2 ",...);

then test2 will be able to use only parameter1 instead of both

tugrul512bit avatar May 29 '17 16:05 tugrul512bit