Error 1 error msb3721: command “C:\program files\NVIDIA GPU computing toolkit\CUDA\v9.0\bin\nvcc. Exe” – gencode = arch = compute_ 20,code=“sm_ 20,compute_20” -gencode=arch=compute_ 30,code=“sm_30,compute_30” -gencode=arch=compute_50,code=“sm_50,compute_50” –use-local-env -ccbin “C:\Program Files
(cuda9.0targets 707)
Windows10 + cuda9.0 + cudnn + visual stdio2015 (originally, visual stdio2017 was used. Some blogs said no and changed it. If you downloaded 2017, you can directly change it at the change place. A single component will be OK under 2015. Some blogs talked about it and you can search it)
My computer graphics card version is gtx1050
After query, I changed compute and SM to compute_30,sm_30; compute_61,sm_ But it seems useless, but some bloggers say it’s useful, mainly because of different mistakes. You can try it.
I set the CUDA toolkit custom dir to C: \program files\NVIDIA GPU computing toolkit\CUDA at the beginning. When I opened the file, I found an error. It needs to be set to C: \program files\NVIDIA GPU computing toolkit\CUDA\v9.0
Then it’s solved. It’s been busy for two days. I’ve read a lot of blogs. I hope it can inspire you!!!
Read More:
- How to Solve error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe‘ failed
- [Solved] CUDA fails to compile in visual studio and throws error msb3721 and nvcc fatal
- QT Error: ‘C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe‘ failed
- [Solved] Unity Package Error: Failed running D:\Program Files\Unity2018.4.1\Editor\Data\il2cpp/build/il2cpp.exe
- [Solved] NVIDIA driver error: NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver…
- [Solved] NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA drive
- [Solved] CUDA error:-UserWarning: CUDA initialization: CUDA unknown error
- Bazel error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/flashroute/flashroute-2.p
- [Solved] NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL ,unhandled cuda error, NCCLversion 2.7.8
- Opencv Can not Find opencv2/gpu/gpu.hpp [How to Solve]
- [Solved] error: failed to run custom build command for `librocksdb-sys v6.17.3`
- [Solved] UserWarning: CUDA initialization: CUDA unknown error
- TensorRT model quantization error: Error Code 1: Cuda Runtime (an illegal memory access was encountered)
- Cuda Runtime error (38) : no CUDA-capable device is detected
- PyCharm Error: RuntimeError: CUDA out of memory [How to Solve]
- Pytorch failed to specify GPU resolution
- How to Solve quantum espressoproblems computing cholesky Error
- TensorFlow-gpu Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
- [Solved] fatal error C1083: Cannot open included files: “stdafx.h”: No such file or directory
- [Solved] Pytorch loading model specified GPU card number error or failed to specify