Closed gxu-tz closed 3 years ago
It says nvcc not found. Intall cuda on your device first.
But I have installed CUDA10.2
nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Wed_Oct_23_19:24:38_PDT_2019 Cuda compilation tools, release 10.2, V10.2.89
/bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found
Please make sure that nvcc is located at /usr/local/cuda/bin/nvcc
or specify CUDA_HOME=/usr/local/cuda-10.2/
I specify CUDA_HOME=/usr/local/cuda-10.2/ and NVCC=/usr/local/cuda-10.2/bin/nvcc.
But I still get the error"/bin/sh: 1: :/usr/local/cuda:/usr/local/cuda-10.2/bin/nvcc: not found"
I can see you messed up the cuda home env.
:/usr/local/cuda:/usr/local/cuda-10.2/bin/nvcc: not found"
Can you see what went wrong?
Or simply make a symlink from /usr/local/cuda to cuda-10.2
I add the following path to the ~ /. Bashrc file in my home directory: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.2/lib64 export PATH=$PATH:/usr/local/cuda-10.2/bin export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-10.2
and I get the error"/bin/sh: 1: :/usr/local/cuda-10.2/bin/nvcc: not found"
export CUDA_HOME=/usr/local/cuda-10.2; python setup.py install
When I run the command:
python setup.py install --blas_include_dirs=${CONDA_PREFIX}/include --blas=openblas
I got the error “ RuntimeError: Error compiling objects for extension”.
Configuration details as follows: Ubuntu 18.04 GCC 7.5 PyTorch 1.7.1 CUDA 10.2 Anaconda Python 3.7.10 environment
The compilation log:
WARNING: Skipping MinkowskiEngine as it is not installed.
| CUDA compilation set |
Using BLAS=openblas Using g++-7 for c++ compilation running install running bdist_egg running egg_info writing MinkowskiEngine.egg-info/PKG-INFO writing dependency_links to MinkowskiEngine.egg-info/dependency_links.txt writing requirements to MinkowskiEngine.egg-info/requires.txt writing top-level names to MinkowskiEngine.egg-info/top_level.txt reading manifest file 'MinkowskiEngine.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'MinkowskiEngine.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiNonlinearity.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiSparseTensor.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiFunctional.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiCoordinateManager.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiKernelGenerator.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiBroadcast.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiPooling.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiConvolution.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiOps.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/diagnostics.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/init.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiTensorField.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/sparse_matrix_functions.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiPruning.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiUnion.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiNetwork.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiInterpolation.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiNormalization.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiTensor.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiChannelwiseConvolution.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine copying ./MinkowskiEngine/MinkowskiCommon.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine creating build/lib.linux-x86_64-3.7/MinkowskiEngine/utils copying ./MinkowskiEngine/utils/summary.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/utils copying ./MinkowskiEngine/utils/init.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/utils copying ./MinkowskiEngine/utils/gradcheck.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/utils copying ./MinkowskiEngine/utils/quantization.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/utils copying ./MinkowskiEngine/utils/coords.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/utils copying ./MinkowskiEngine/utils/init.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/utils copying ./MinkowskiEngine/utils/collation.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/utils creating build/lib.linux-x86_64-3.7/MinkowskiEngine/modules copying ./MinkowskiEngine/modules/init.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/modules copying ./MinkowskiEngine/modules/resnet_block.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/modules copying ./MinkowskiEngine/modules/senet_block.py -> build/lib.linux-x86_64-3.7/MinkowskiEngine/modules running build_ext building 'MinkowskiEngineBackend._C' extension creating /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7 creating /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home creating /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username creating /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine creating /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src creating /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/pybind Emitting ninja build file /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/21] :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/math_functions_gpu.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/math_functions_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 FAILED: /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/math_functions_gpu.o :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/math_functions_gpu.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/math_functions_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [2/21] :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/coordinate_map_manager.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/coordinate_map_manager.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 FAILED: /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/coordinate_map_manager.o :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/coordinate_map_manager.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/coordinate_map_manager.o -D__CUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [3/21] :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/coordinate_map_gpu.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/coordinate_map_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 FAILED: /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/coordinate_map_gpu.o :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/coordinate_map_gpu.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/coordinate_map_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [4/21] :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/convolution_kernel.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 FAILED: /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_kernel.o :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/convolution_kernel.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [5/21] :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/convolution_transpose_gpu.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_transpose_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 FAILED: /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_transpose_gpu.o :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/convolution_transpose_gpu.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_transpose_gpu.o -D__CUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [6/21] :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/convolution_gpu.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 FAILED: /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_gpu.o :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/convolution_gpu.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/convolution_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [7/21] :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/pooling_avg_kernel.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/pooling_avg_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 FAILED: /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/pooling_avg_kernel.o :/usr/local/cuda/bin/nvcc -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/pooling_avg_kernel.cu -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/pooling_avg_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++-7 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [8/21] g++-7 -MMD -MF /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/math_functions_cpu.o.d -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/TH -I/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/username/MinkowskiEngine/src -I/home/username/MinkowskiEngine/src/3rdparty -I/home/username/anaconda3/envs/py37/include -I/home/username/anaconda3/envs/py37/include/python3.7m -c -c /home/username/MinkowskiEngine/src/math_functions_cpu.cpp -o /home/username/MinkowskiEngine/build/temp.linux-x86_64-3.7/home/username/MinkowskiEngine/src/math_functions_cpu.o -fopenmp -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1539, in _run_ninja_build env=env) File "/home/username/anaconda3/envs/py37/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "setup.py", line 360, in
python_requires=">=3.6",
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/setuptools/init.py", line 163, in setup
return distutils.core.setup(**attrs)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 175, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 161, in call_command
self.run_command(cmdname)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
build_ext.build_extensions(self)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 208, in build_extension
_build_ext.build_extension(self, ext)
File "/home/username/anaconda3/envs/py37/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 500, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1255, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/username/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
Thanks in advance.