Search code examples
cudanvcc

convert shared memory into register with Cuda


Is there a way to convert the shared memory that I'm not using into register memory? What command should I use when I compile with nvcc?


Solution

  • No, the HW resource that provides the shared memory is distinct from the HW resource that provides the register space, and the shared memory HW cannot substitute for registers.