a scalar dummy argument declared with the VALUE attribute in a kernel subroutine doesn’t resides in local thread memory.
It is correct?

Alberto Riccardo Martinelli

Maybe it does. It depends. The compiler would prefer to keep it in a register, but it depends on how registers are needed for other things.

Sorry, “how many”.

Then, there is no race condition if more than one thread reads and writes this variable. It is right?

By value, no. Every thread has its own registers, and its own copy of the value.

ok, thank you :)