cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

coordz
Adept II

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

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.
0 Likes
2 Replies
omkaranathan
Adept I

Originally posted by: coordz 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.


This is not possible. 

0 Likes

you can try make suggestion here. http://www.khronos.org/message_boards/viewforum.php?f=41

0 Likes