error: command '/usr/bin/nvcc' failed with exit status 1
Hello,
When running apex command python setup.py install --cuda_ext --cpp_ext I get the following error error: command '/usr/bin/nvcc' failed with exit status 1
Here's my system details:
cudatoolkit: 10.0.130
Pytorch: 1.4.0
Python: 3.6.9
GCC: 7.3.0
$which gcc
/usr/bin/gcc
$which nvcc
/usr/bin/nvcc
$nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
$which g++
/usr/bin/g++
$which make
/usr/bin/make
vendor : NVIDIA Corporation
model : GP107M [GeForce GTX 1050 Mobile]
driver : nvidia-driver-450
$nvidia-smi
NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0
I also should mention that I was having this error raised when I was trying to install apex:
"Cuda extensions are being compiled with a version of Cuda that does " +
"not match the version used to compile Pytorch binaries. " +
"Pytorch binaries were compiled with Cuda {}.\n".format(torch.version.cuda) +
"In some cases, a minor-version mismatch will not cause later errors: " +
"https://github.com/NVIDIA/apex/pull/323#discussion_r287021798. "
"You can try commenting out this check (at your own risk)."
So I just commented the check to avoid this.
if (bare_metal_major != torch_binary_major) or (bare_metal_minor != torch_binary_minor):
I see that maybe there are some conflicts somewhere: nvidia-smi shows cuda version of 11.0, nvcc -V gives 9.1 and I am using 10.0. Maybe I got the wrong driver ?
Also I see that the path of nvcc is /usr/bin/nvcc instead of /usr/cuda/bin/nvcc
Any ideas on the source of this error error: command '/usr/bin/nvcc' failed with exit status 1 ?
Thank you
I have the same problem, did you solve it?
I have the same problem and the config of mine is the same as yours, did you solve it?
I have the same problem, did you solve it?
Excuse me, did you solve this issue?