Setting maxrregcount in MVS


I am not very familiar with Microsoft Visual Studio or how nvcc interacts with it, and I was wondering if there is a way to set the maximum register count (i.e. pass the compiler option -maxregcount) from within Microsoft Visual Studio; that is, set it up so that calling the MVS compiler will impose a register limit. Is this possible?
I am using MVS v8.



Yes, you should look in Project Properties or file properties (right click on the .cu file listed in the Solution Explorer -> Properties) for the command line. Search under “Custom build step”.

Ah, I see: the nvcc command is at the file level (I’d been searching the build configuration properties at the project level). Thanks for the help.