Hi, when I trying to run a project with CUDA ,it keeps telling errors:
nvcc fatal : redefinition of argument ‘compiler-bindir’ (任务 ID: 52)
2>19:27:15.355 1>
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations\CUDA 9.0.targets(883,9): error MSB3721: 命令““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin” -x cu -I"C:\Users\ustc\Desktop\vectorized_stress_majorization-master\src\VectorizedStressMajorization\Eigen" -I"C:\Users\ustc\Desktop\vectorized_stress_majorization-master\src\VectorizedStressMajorization" -I"C:\Users\ustc\Desktop\vectorized_stress_majorization-master\src\VectorizedStressMajorization\Eigen" -I"C:\Users\ustc\Desktop\vectorized_stress_majorization-master\src\VectorizedStressMajorization" -I"C:\Users\ustc\Desktop\vectorized_stress_majorization-master\src\VectorizedStressMajorization\CUDA_SDK_ROOT_DIR-NOTFOUND\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" --keep-dir Release -maxrregcount=0 --machine 32 --compile “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin/nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin” -c -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/O2,/Zi,/MT -I"" -o Release/.obj -std=c++11 -Xcompiler=“/EHsc -Ob2” -D_WINDOWS -DVERBOSE -D_FORCE_INLINES -D_MWAITXINTRIN_H_INCLUDED -DNDEBUG -D"CMAKE_INTDIR="Release"" -DWIN32 -D_WINDOWS -DNDEBUG -D"CMAKE_INTDIR="Release"" -D_MBCS -Xcompiler “/EHsc /W3 /nologo /O2 /FS /Zi /MD /GR” -o Release\cuSolver.cu.objRelease/.obj “C:\Users\ustc\Desktop\vectorized_stress_majorization-master-1\src\VectorizedStressMajorization\cuSolver.cu” -clean”已退出,返回代码为 1。
I guess maybe I didn’t compile CUDA_SDK_ROOT_DIR, but I can’t find it, and I have no idea how to compile it.