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?
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.