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

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

Closed
ftn-gautam opened this issue Mar 4, 2020 · 2 comments
Closed

Comments

@ftn-gautam
Copy link

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
g++ -pthread -shared -B /home/gautam/anaconda3/compiler_compat -L/home/gautam/anaconda3/lib -Wl,-rpath=/home/gautam/anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/cpu/sampler.o -o build/lib.linux-x86_64-3.7/torch_cluster/sampler_cpu.cpython-37m-x86_64-linux-gnu.so
building 'torch_cluster.graclus_cuda' extension
creating build/temp.linux-x86_64-3.7/cuda
gcc -pthread -B /home/gautam/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/gautam/anaconda3/lib/python3.7/site-packages/torch/include -I/home/gautam/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/gautam/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/gautam/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda:/include -I/home/gautam/anaconda3/include/python3.7m -c cuda/graclus.cpp -o build/temp.linux-x86_64-3.7/cuda/graclus.o -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=graclus_cuda -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 -I/home/gautam/anaconda3/lib/python3.7/site-packages/torch/include -I/home/gautam/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/gautam/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/gautam/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda:/include -I/home/gautam/anaconda3/include/python3.7m -c cuda/graclus_kernel.cu -o build/temp.linux-x86_64-3.7/cuda/graclus_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=graclus_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -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

System Details:
Python 3.7
CUDA 10.0
NVCC working

I think it's the colon in the address that's messing my installation?

@rusty1s
Copy link
Owner

rusty1s commented Mar 4, 2020

Yes, this seems to be a bug in your $PATH variable.

@ftn-gautam
Copy link
Author

Yeah, you're right. There's an issue with my CUDA_HOME variable. Thanks!!!

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