PDA

View Full Version : Parameters index inside a kernel



buci
05-25-2010, 12: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

}

Thanks

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