I have a CUDA project in Visual Studio 2010. The .exe that gets generated has binary executable code for both the GPU and CPU. But it also has ASCII text with the full pathname of the CUDA file, and the constants, shared memory, and texture variable names defined in the CUDA .h file. In the Visual Studio properties for the project, and for the CUDA file specifically, I have disabled all debugging generation options for the CPU host and GPU device. I don’t want any ASCII names in the executable. Is there a way to remove them all?
Here’s the CUDA C/C++ Compiler Command Line:
set CUDAFE_FLAGS=–sdk_dir "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A"
“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin\nvcc.exe” --use-local-env --cl-version 2010 -ccbin “c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64” --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static -o x64\Release%(Filename)%(Extension).obj “%(FullPath)”
set CUDAFE_FLAGS=–sdk_dir "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A"
“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin\nvcc.exe” --use-local-env --cl-version 2010 -ccbin “c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64” --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static -use_fast_math -Xcompiler "/EHsc /nologo /O2 /Zi " -o x64\Release%(Filename)%(Extension).obj “%(FullPath)”
And here is the CUDA Linker Command Line:
“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin\nvcc.exe” -dlink -o x64\Release\Program.device-link.obj -Xcompiler "/EHsc /nologo /O2 /Zi "