As programming guide mentioned, to declare a variable as shared memory can speed up the execution efficiency. My colleague and I wonder that will it be better to declare as register? If so, how to accomplish it? Programming guide said that register and shared memory can achieve almost the same speed that much faster than local memory, but I can’t find how to force the variable to be put in register rather than local memory?
Thanks for the reply in advance!!