Open wenkaier opened 3 weeks ago
We have not encountered this problem before.
Your compiler seems to be unable to evaluate the constexpr
for the template parameters, which is quite strange.
Do you have some unusual setup going? Are you using our provided conda environment file? Your CUDA installation also seems to have a minor version mismatch with pytorch (11.2 vs 11.7), but this should usually not be an issue.
I also encountered this problem, which is actually a very tricky problem. Fortunately, it was finally resolved. This is an issue with the CUDA version. Make sure to verify that the CUDA version on the system cannot be smaller than the version installed in the virtual environment
pip install submodules/diff-gaussian-rasterization/
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple Processing ./submodules/diff-gaussian-rasterization Preparing metadata (setup.py) ... done Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [1672 lines of output] running bdist_wheel running build running build_py running build_ext /home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/utils/cpp_extension.py:388: UserWarning: The detected CUDA version (11.2) has a minor version mismatch with the version that was used to compile PyTorch (11.7). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'diff_gaussian_rasterization._C' extension Emitting ninja build file /home/abc/StopThePop/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] /usr/local/cuda/bin/nvcc -I/home/abc/StopThePop/submodules/diff-gaussian-rasterization/third_party -I/home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/include -I/home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/include/TH -I/home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/abc/.conda/envs/gs_compare/include/python3.9 -c -c /home/abc/StopThePop/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /home/abc/StopThePop/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/abc/StopThePop/submodules/diff-gaussian-rasterization/third_party/glm/ -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_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /opt/app/compilers/linux-centos7-haswell/gcc-4.8.5/gcc-9.5.0-nhb7p7fzln4sawxac6pfgxsdx6eypdmq/bin/gcc -std=c++17 FAILED: /home/abc/StopThePop/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o /usr/local/cuda/bin/nvcc -I/home/abc/StopThePop/submodules/diff-gaussian-rasterization/third_party -I/home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/include -I/home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/include/TH -I/home/abc/.conda/envs/gs_compare/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/abc/.conda/envs/gs_compare/include/python3.9 -c -c /home/abc/StopThePop/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /home/abc/StopThePop/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/abc/StopThePop/submodules/diff-gaussian-rasterization/third_party/glm/ -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_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /opt/app/compilers/linux-centos7-haswell/gcc-4.8.5/gcc-9.5.0-nhb7p7fzln4sawxac6pfgxsdx6eypdmq/bin/gcc -std=c++17 /home/abc/StopThePop/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer.h(99): warning: missing return statement at end of non-void function "CudaRasterizer::toString"
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization