RaymondJiangkw / COGS

[SIGGRAPH'24] A Construct-Optimize Approach to Sparse View Synthesis without Camera Pose
https://raymondjiangkw.github.io/cogs.github.io/
Other
59 stars 6 forks source link

ERROR: Could not build wheels for diff_gaussian_rasterization, which is required to install pyproject.toml-based projects #3

Closed murmurelo111 closed 2 months ago

murmurelo111 commented 2 months ago

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

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [313 lines of output] running bdist_wheel running build running build_py creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/diff_gaussian_rasterization copying diff_gaussian_rasterization/init.py -> build/lib.linux-x86_64-cpython-311/diff_gaussian_rasterization running build_ext /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/utils/cpp_extension.py:418: UserWarning: The detected CUDA version (12.2) has a minor version mismatch with to compile PyTorch (12.1). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/utils/cpp_extension.py:428: UserWarning: There are no g++ version bounds defined for CUDA version 12.2 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') building 'diff_gaussian_rasterization._C' extension creating /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-311 creating /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-311/cuda_rasterizer /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/utils/cpp_extension.py:1967: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST']. warnings.warn( Emitting ninja build file /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-311/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/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-cpyackward.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/apinda3/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/ho3r/include/python3.11 -c -c /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.lia_rasterizer/backward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --comp'"'' -I/data/fyj/COGS/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-Di1011"' -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/backward.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-3d.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/inclunvs/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/gpulude/python3.11 -c -c /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /data/fyj/COGS/submodules/diff-gaussian-rasterization/build/temp.linux-x8erizer/backward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-oI/data/fyj/COGS/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND' -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/backward.cu:12: /data/fyj/COGS/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.h:19:10: fatal error: glm/glm.hpp: No such file or directory 19 #include <glm/glm.hpp> ^~~~~ 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 #include <glm/glm.hpp> ^~~~~ 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 #include <glm/glm.hpp> ^~~~~ 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.data() is dor.data_ptr() instead. [-Wdeprecated-declarations] 89 rendered = CudaRasterizer::Rasterizer::forward( ^ /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 T * data() const { ^ ~~ /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:180: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is dor.data_ptr() instead. [-Wdeprecated-declarations] 89 rendered = CudaRasterizer::Rasterizer::forward(
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:258: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
     89 |    rendered = CudaRasterizer::Rasterizer::forward(
        |                                                                                                                                                                                                                                        ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:298: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
     89 |    rendered = CudaRasterizer::Rasterizer::forward(
        |                                                                                                                                                                                                                                                                                ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:449: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
     89 |    rendered = CudaRasterizer::Rasterizer::forward(
        |                                                                                                                                                                                                                                                                                                                                                                                                             ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:492: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
     89 |    rendered = CudaRasterizer::Rasterizer::forward(
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:535: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
     89 |    rendered = CudaRasterizer::Rasterizer::forward(
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:574: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
     89 |    rendered = CudaRasterizer::Rasterizer::forward(
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:649: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
     89 |    rendered = CudaRasterizer::Rasterizer::forward(
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:89:685: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data<T>() is dep.data_ptr<T>() instead. [-Wdeprecated-declarations]
     89 |    rendered = CudaRasterizer::Rasterizer::forward(
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu: In function ‘std::tuple<at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at:rizeGaussiansBackwardCUDA(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, float, const at::Tensor&, const at::Tensoat, float, const at::Tensor&, const at::Tensor&, int, const at::Tensor&, const at::Tensor&, int, const at::Tensor&, const at::Tensor&, bool)’:
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:95: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                               ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:141: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                             ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:176: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:215: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                             ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:336: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                      ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:379: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                       
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:422: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                  ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:461: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                         ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:517: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data<T>() is der.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:762: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:806: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:848: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:892: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:935: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:979: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:1021: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() isnsor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:1060: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() isnsor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:1103: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() isnsor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:163:1149: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() isnsor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    163 |    CudaRasterizer::Rasterizer::backward(P, degree, M, R,
        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu: In function ‘at::Tensor markVisible(at::Tensor&, at::Tensor&, at::Tensor&)’:
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:209:81: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    209 |  CudaRasterizer::Rasterizer::markVisible(P,
        |                                                                                 ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:209:124: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    209 |  CudaRasterizer::Rasterizer::markVisible(P,
        |                                                                                                                            ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:209:167: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is sor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    209 |  CudaRasterizer::Rasterizer::markVisible(P,
        |
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  /data/fyj/COGS/submodules/diff-gaussian-rasterization/rasterize_points.cu:209:206: warning: ‘T* at::Tensor::data() const [with T = bool]’ is deprecated: Tensor.data<T>() is dor.data_ptr<T>() instead. [-Wdeprecated-declarations]
    209 |  CudaRasterizer::Rasterizer::markVisible(P,
        |                                                                                                                                                                                    ^
  /home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
    247 |   T * data() const {
        | ^ ~~
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2107, in _run_ninja_build
      subprocess.run(
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/subprocess.py", line 571, in run
      raise CalledProcessError(retcode, process.args,
  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 "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/data/fyj/COGS/submodules/diff-gaussian-rasterization/setup.py", line 17, in <module>
      setup(
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/__init__.py", line 104, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 184, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
      dist.run_commands()
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 368, in run
      self.run_command("build")
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 132, in run
      self.run_command(cmd_name)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 91, in run
      _build_ext.run(self)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
      self.build_extensions()
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 870, in build_extensions
      build_ext.build_extensions(self)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
      self._build_extensions_serial()
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
      self.build_extension(ext)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 252, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 560, in build_extension
      objects = self.compiler.compile(
                ^^^^^^^^^^^^^^^^^^^^^^
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 683, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1783, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/home/gpu/anaconda3/envs/dust3r/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2123, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

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 ERROR: Could not build wheels for diff_gaussian_rasterization, which is required to install pyproject.toml-based projects `

RaymondJiangkw commented 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.

RaymondJiangkw commented 2 months ago

Should be fine now. Feel free to ask if current version still doesn't work for you.