View Full Version : Parameters index inside a kernel

05-25-2010, 01:53 AM
Hello, my question is if it is possible to know the index number of a kernel parameter inside this kernel. For example:

__kernel void Func( a, b,c, )

Here I would want to know the index of a b or c, which is 0, 1 and 2 respectively



05-25-2010, 06:21 AM
There is no builtin function or macro that will do what you are asking for. You have to do it by hand.