nerfstudio icon indicating copy to clipboard operation
nerfstudio copied to clipboard

tiny-cuda-nn- installation fails

Open dheera opened this issue 2 months ago • 1 comments

Might want to add this to the readme.

$ pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
...                                                                           
      In file included from /home/dheera/miniconda3/envs/nerfstudio/include/cuda_runtime.h:83,
                       from <command-line>:
      /home/dheera/miniconda3/envs/nerfstudio/include/crt/host_config.h:132:2: error: #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
        132 | #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
            |  ^~~~~
      error: command '/home/dheera/miniconda3/envs/nerfstudio/bin/nvcc' 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 tinycudann
  Running setup.py clean for tinycudann
Failed to build tinycudann
ERROR: Could not build wheels for tinycudann, which is required to install pyproject.toml-based projects

Workaround:

$ sudo apt install gcc-11 g++-11
$ export CC=/usr/bin/gcc-11
$ export CXX=/usr/bin/g++-11
$ pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch

dheera avatar Jun 03 '24 19:06 dheera