My kernel declare an float array of size 3. But the compiler puts into local memory rather than registers. Are there any way to force the compiler to put it into registers? Thank you.
Do you index the array with a variable? The compiler can only put arrays into registers if all offsets are known at compile time.