Newbie: NVCC --maxregscount

I’m using Visual Studio and would like to specify the --ptxas-options="–maxrregcount 20" option but when I add it to my custom build command

"$(CUDA_BIN_PATH)\nvcc.exe" -ccbin --ptxas-options="--maxrregcount 20" "$(VCInstallDir)bin" -c -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/O2,/Zi,/MT -I"$(CUDA_INC_PATH)" -I./ -I../../common/inc -o $(ConfigurationName)\$(InputName).obj $(InputFileName)

I get the following error:

nvcc fatal : A single input file is required for a non-link phase when an output file is specified

Not really sure what that means or how to fix it? :mad:

Any help appreciated… :huh:

Fixed it! :biggrin: