Closed neworderofjamie closed 6 years ago
The extra -x is necessary with:
The extra -x is not necessary with:
C:\sussex\genn_examples\va_benchmark>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin\nvcc.exe" -gencode=arch=compute_61,code=\"sm_61,compute_61\
" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64" -x cu -Ic:\sussex\genn\lib\include -Ic:\sussex\genn\userproject\
include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -Ic:\sussex\genn\lib\include -Ic:\sussex\genn\userproject\include -I"C:\Program F
iles\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -IC:\sussex\GeNN_Robotics\common -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -
lineinfo --keep-dir obj\X64\Release -maxrregcount=0 --machine 64 --compile -cudart static -x cu -Xcompiler "/EHsc /W1 /nologo /O2 /FS /Zi /MT " -o obj
\X64\Release\runner.cc.obj "C:\sussex\genn_examples\va_benchmark\va_benchmark_CODE\runner.cc"
nvcc fatal : redefinition of argument 'x'
On Visual Studio 2017 (Community) with CUDA 9.1, the extra -x inserted in the additional build settings of the MSbuild script causes the build to fail as the CUDA plugin already adds one.