How to calculate register, shared, constant and local memory

Hi Mat,

Please could you explain how PCI compiler calculates the number of register, shared, constant and local memory usage in a program. And why there is a difference while compiling with different compute capability. For examle cc13 and cc20.

I will highly appriciate it if you can give one example program and explain.

Thanks
Jessica

Hi Jessica,

The PGI compilers do not calculate these. These messages are generated from the NVIDIA assemble ptxas and are there for informational use when calculating occupancy.

And why there is a difference while compiling with different compute capability. For examle cc13 and cc20.

The code generation and available resources are different for each target.

  • Mat