Closed murmurelo111 closed 2 months ago
I see the fatal error comes from fatal error: glm/glm.hpp: No such file or directory
. The diff-gaussian-rasterization
is the official version. These installations will be fine if glm is installed in the system... Let me add glm in to the extensions to account for the case when glm is not installed.
Should be fine now. Feel free to ask if current version still doesn't work for you.
Thank you for your excellent work. I have encountered some issues and would like to seek your help.
My package versions are:
Python: 3.11.5 PyTorch: 2.3.0 PyTorch-CUDA: 12.1
I encountered the following issues when installing the submodules (diff-gaussian-rasterization, diff-gaussian-rasterization-appr-surface), but there were no issues when installing diff-gaussian-rasterization through the 3DGS official repository. Could you please let me know if there is an official source for diff-gaussian-rasterization-appr-surface and how to resolve the following issues? Thank you very much! `Looking in indexes: https://mirrors.aliyun.com/pypi/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
~~~~ compilation terminated. [2/5] /usr/local/cuda-12.2/bin/nvcc --generate-dependencies-with-compile --dependency-output /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpyorward.o.d -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/torch/csrc/api/da3/envs/dust3r/lib/python3.11/site-packages/torch/include/TH -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/THC -I/usr/local/cuda-12.2/include -I/homr/include/python3.11 -c -c /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu -o /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linurasterizer/forward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compile' -I/data/fyj/COGS/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYB11"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 FAILED: /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-311/cuda_rasterizer/forward.o /usr/local/cuda-12.2/bin/nvcc --generate-dependencies-with-compile --dependency-output /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-3.o.d -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/torch/csrc/api/includvs/dust3r/lib/python3.11/site-packages/torch/include/TH -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/THC -I/usr/local/cuda-12.2/include -I/home/gpu/ude/python3.11 -c -c /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu -o /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_izer/forward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-optiata/fyj/COGS/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 In file included from /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu:12: /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.h:19:10: fatal error: glm/glm.hpp: No such file or directory 19~~~~ compilation terminated. [3/5] /usr/local/cuda-12.2/bin/nvcc --generate-dependencies-with-compile --dependency-output /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpyasterizer_impl.o.d -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/torch/cu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/TH -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/THC -I/usr/local/cuda-12.2/includvs/dust3r/include/python3.11 -c -c /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /data/fyj/COGS/submodules/diff-gaussian-rasterizationpython-311/cuda_rasterizer/rasterizer_impl.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-reloptions ''"'"'-fPIC'"'"'' -I/data/fyj/COGS/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDD11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 FAILED: /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-311/cuda_rasterizer/rasterizer_impl.o /usr/local/cuda-12.2/bin/nvcc --generate-dependencies-with-compile --dependency-output /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-3zer_impl.o.d -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/torch/csrc/aponda3/envs/dust3r/lib/python3.11/site-packages/torch/include/TH -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/THC -I/usr/local/cuda-12.2/include -I/ht3r/include/python3.11 -c -c /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /data/fyj/COGS/submodules/diff-gaussian-rasterization/build-311/cuda_rasterizer/rasterizer_impl.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-cs ''"'"'-fPIC'"'"'' -I/data/fyj/COGS/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_ILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu:23:10: fatal error: glm/glm.hpp: No such file or directory 23~~~~ compilation terminated. [4/5] c++ -MMD -MF /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-311/ext.o.d -pthread -B /home/gpu/anaconda3/envs/dust3r/compiler_compall -fPIC -O2 -isystem /home/gpu/anaconda3/envs/dust3r/include -fPIC -O2 -isystem /home/gpu/anaconda3/envs/dust3r/include -fPIC -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/sitI/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/TH -dust3r/lib/python3.11/site-packages/torch/include/THC -I/usr/local/cuda-12.2/include -I/home/gpu/anaconda3/envs/dust3r/include/python3.11 -c -c /data/fyj/COGS/submodules/diff-gauss-o /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-311/ext.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDD11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 [5/5] /usr/local/cuda-12.2/bin/nvcc --generate-dependencies-with-compile --dependency-output /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpyo.d -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/torch/csrc/api/includes/dust3r/lib/python3.11/site-packages/torch/include/TH -I/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/THC -I/usr/local/cuda-12.2/include -I/home/gpu/ade/python3.11 -c -c /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpyth-DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPICbmodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxN_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu: In function ‘std::tuple<int, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor> RasterizeGsor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, float, const at::Tensor&, const at::Tensor&, const at::Tensor&, float, float, i, int, const at::Tensor&, bool, bool)’: /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:134: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.datanote: 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 ERROR: Could not build wheels for diff_gaussian_rasterization, which is required to install pyproject.toml-based projects `