What is the performance penalty of using threadIdx.x and other similar system keywords/values. Consider a scenario where I am using this threadIdx.x for a considerable number of times. What is the better option -
- Declare a variable and copy the value of the threadIdx.x and use this variable everywhere. OR
- Use threadIdx.x as it is everywhere.
I am not sure if somebody has already posted such query already apologies if so.
– Mandar Gurav