For Fermi (and possibly earlier architectures), the following conditions must be met to store an array in a register file:
- The array is indexed only by constants
- Registers available
- Hopefully the compiler will also do some analysis to determine the effect on overall performance.
(1) , SASS. .
, (2), :
- SASS 6 , , 64. 63, -.
- SM , , .
- , .
(1) . , ( #pragma unroll ) , , SASS.
NVIDIA: . , .