i am trying to determine the number of registers used per thread in each kernel to use the occupancy calculator.
To compile my code i am using nvmex.
but the --ptxas-options=-v or the -cubin option somehow dont seem to work for nvmex.
Are there other compileroption i should use?
I only added the --ptxas-options=-v or the -cubin option to the compflags of the nvmexopts.bat
Does anyone know what to do?
You’ve already done that with -c option. The problem here is that NVCC cannot locate cl.exe (MS compiler/linker). You need to add C:\Program Files\Microsoft Visual Studio 9.0\VC\bin into your PATH. Note that NVCC is just a wrapper of cl.exe, so cl.exe is always required in all cases. Probably running ‘mex -setup’ then choosing the MS compiler is enough.
This is not an issue when you use NVMEX, probably NVMEX is a wrapper of another compiler (e.g. LCC).