coordz

How to map kernel argument name to kernel argument indices???

Discussion created by coordz on May 14, 2010
Latest reply on May 18, 2010 by nou
When setting kernel arguments I must use the argument index - first argument is index 0, second arg is index 1, etc. But how can I abstract these indices to the actual argument names? What I would like to do is pass a string and be told the argument index to use in clSetKernelArg.

Using clGetKernelInfo I can get the number of args to a kernel but I can't see how to get info about these args - name, type, etc. This would be really useful TIA.

Outcomes