hzxie/GRNet

chamfer.o No such file or directory

Closed this issue · 5 comments

hello, when I run the chamfer_dist, I met the problem "GRNet/extensions/chamfer_dist/build/temp.linux-x86_64-3.7/chamfer.o: no such file or directory" , how can I solve this problem?

hzxie commented

I can't reproduce this error.
Please provide the full logs and your system environment (including OS, Python Version, PyTorch Version).

@hzxie
ubuntu 18.04 python3.7 pytorch 1.5.0

python setup.py install --user

Compiling objects...

FAILED: /home/muxinyue/code/GRNet/extensions/chamfer_dist/build/temp.linux-x86_64-3.7/chamfer.o
:/usr/local/cuda-10.1/bin/nvcc -I/home/muxinyue/anaconda3/envs/GRNet/lib/python3.7/site-packages/torch/include -I/home/muxinyue/anaconda3/envs/GRNet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/muxinyue/anaconda3/envs/GRNet/lib/python3.7/site-packages/torch/include/TH -I/home/muxinyue/anaconda3/envs/GRNet/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda-10.1/include -I/home/muxinyue/anaconda3/envs/GRNet/include/python3.7m -c -c /home/muxinyue/code/GRNet/extensions/chamfer_dist/chamfer.cu -o /home/muxinyue/code/GRNet/extensions/chamfer_dist/build/temp.linux-x86_64-3.7/chamfer.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=chamfer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14
/bin/sh: 1: :/usr/local/cuda-10.1/bin/nvcc: not found
ninja: build stopped: subcommand failed.

Traceback (most recent call last):
File "/home/muxinyue/anaconda3/envs/GRNet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1400, in _run_ninja_build
check=True)
File "/home/muxinyue/anaconda3/envs/GRNet/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

if I fix the '['ninja', '-v']' with '['ninja', '--version']' there was appeared another error: GRNet/extensions/chamfer_dist/build/temp.linux-x86_64-3.7/chamfer.o: 没有那个文件或目录

can you tell me how to solve it? I confirm that the nvcc path has all ready been added into the path.

hzxie commented

The log said "/bin/sh: 1: :/usr/local/cuda-10.1/bin/nvcc: not found"

@hzxie
but I find nvcc in this folder, and I also add the path, what's wrong? Thanks.

hzxie commented

Please double check the PATH variable.