Hi,

Should I cache get_global_id(0) to a private integer like that:

Code :
size_t idx = get_global_id(0)

or should I call get_global_id(0) several times?

I want to reduce the number of registers if it does mean high penalty on some (popular) platforms.