Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I've aligned torch.version.cuda with nvcc and still can't install diff-gaussian-rasterization. Any help? #1071

Open
zzh-tech opened this issue Nov 18, 2024 · 1 comment

Comments

@zzh-tech
Copy link

zzh-tech commented Nov 18, 2024

I've aligned torch.version.cuda with nvcc and still can't install diff-gaussian-rasterization. Any help?

torch.version.cuda

'11.8'

nvcc --version

Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

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
  ╰─> [21 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-39/diff_gaussian_rasterization
      copying diff_gaussian_rasterization/__init__.py -> build/lib.linux-x86_64-cpython-39/diff_gaussian_rasterization
      running build_ext
      /home/zhihang/.conda/envs/frosting/lib/python3.9/site-packages/torch/utils/cpp_extension.py:398: UserWarning: There are no g++ version bounds defined for CUDA version 11.8
        warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
      building 'diff_gaussian_rasterization._C' extension
      creating /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer
      Emitting ninja build file /badminton/zhihang/Projects/4DRE/gaussian-splatting/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.10.1
      g++ -pthread -B /home/zhihang/.conda/envs/frosting/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/zhihang/.conda/envs/frosting/include -I/home/zhihang/.conda/envs/frosting/include -fPIC -O2 -isystem /home/zhihang/.conda/envs/frosting/include -pthread -B /home/zhihang/.conda/envs/frosting/compiler_compat -shared /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/ext.o /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o -L/home/zhihang/.conda/envs/frosting/lib/python3.9/site-packages/torch/lib -L/usr/local/cuda-11.8/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-cpython-39/diff_gaussian_rasterization/_C.cpython-39-x86_64-linux-gnu.so
      g++: error: /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o: No such file or directory
      g++: error: /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o: No such file or directory
      g++: error: /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o: No such file or directory
      g++: error: /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/ext.o: No such file or directory
      g++: error: /badminton/zhihang/Projects/4DRE/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o: No such file or directory
      error: command '/bin/g++' failed with exit code 1
      [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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (diff_gaussian_rasterization)
@674123
Copy link

674123 commented Nov 21, 2024

I also encountered the same problem. Have you solved it? Can you guide me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants