Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: unable to execute '/usr/local/cuda/bin/nvcc': No such file or directory #48

Open
wwq66 opened this issue Jul 19, 2019 · 4 comments

Comments

@wwq66
Copy link

wwq66 commented Jul 19, 2019

How to solve this problem?

@Tramac
Copy link
Owner

Tramac commented Jul 19, 2019

Is there a detailed log?

@wwq66
Copy link
Author

wwq66 commented Jul 19, 2019

running build
running build_ext
building '._C' extension
gcc -pthread -B /nfs2/changqinwei/anaconda3/envs/train_test/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/TH -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/nfs2/changqinwei/anaconda3/envs/train_test/include/python3.6m -c /nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/vision.cpp -o build/temp.linux-x86_64-3.6/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /nfs2/changqinwei/anaconda3/envs/train_test/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/TH -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/nfs2/changqinwei/anaconda3/envs/train_test/include/python3.6m -c /nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/cpu/syncbn_cpu.cpp -o build/temp.linux-x86_64-3.6/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/cpu/syncbn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /nfs2/changqinwei/anaconda3/envs/train_test/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/TH -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/nfs2/changqinwei/anaconda3/envs/train_test/include/python3.6m -c /nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/cpu/ca_cpu.cpp -o build/temp.linux-x86_64-3.6/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/cpu/ca_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /nfs2/changqinwei/anaconda3/envs/train_test/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/TH -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/nfs2/changqinwei/anaconda3/envs/train_test/include/python3.6m -c /nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/cpu/psa_cpu.cpp -o build/temp.linux-x86_64-3.6/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/cpu/psa_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/usr/local/cuda/bin/nvcc -DWITH_CUDA -I/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/TH -I/nfs2/changqinwei/anaconda3/envs/train_test/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/nfs2/changqinwei/anaconda3/envs/train_test/include/python3.6m -c /nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/cuda/psa_cuda.cu -o build/temp.linux-x86_64-3.6/nfs2/changqinwei/code/awesome-semantic-segmentation-pytorch-master/core/nn/csrc/cuda/psa_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
unable to execute '/usr/local/cuda/bin/nvcc': No such file or directory
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

@Tramac
Copy link
Owner

Tramac commented Jul 19, 2019

Please check your cuda_path in ~/.bashrc.

@wwq66
Copy link
Author

wwq66 commented Jul 19, 2019

I have checked my cuda_path in ~/.bashrc, but the problem still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants