How to pass a list of strings to an opencl kernel using pyopencl?
How to pass list of strings to an opencl kernel the right way? I tried this way using buffers (see following code), but I failed. OpenCL (struct.cl): typedef struct{ uchar uc[40]; } my_struct9; inline void try_this7_now(__global const uchar * IN_DATA , const uint IN_len_DATA , __global uchar * OUT_DATA){ for (unsigned int i=0; i<IN_len_DATA ; i++) OUT_DATA[i] = IN_DATA[i]; } __kernel void try_this7(__global const my_struct9 * pS_IN_DATA , const uint IN_len , __global my_struct9 * pS_OUT){ uint idx = get_global_id(0); for (unsigned int i=0; i<idx; i++) try_this7_now(pS_IN_DATA[i].uc, IN_len, pS