NVlabs/tiny-cuda-nn

install issue

Opened this issue · 8 comments

i've been tried to pip install but failed.
then i clone it and python setup.py install
there are still something wrong and after i have been set CUDA_HOME and update cmake version to 3.29
it stuck here
_running bdist_egg
running egg_info
writing tinycudann.egg-info/PKG-INFO
writing dependency_links to tinycudann.egg-info/dependency_links.txt
writing top-level names to tinycudann.egg-info/top_level.txt
reading manifest file 'tinycudann.egg-info/SOURCES.txt'
writing manifest file 'tinycudann.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
/mnt/mfs/liqinkai/miniconda/envs/sy311/lib/python3.11/site-packages/torch/utils/cpp_extension.py:424: 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 'tinycudann_bindings._80_C' extension
Emitting ninja build file /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/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.8.2
g++ -pthread -B /mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat -shared -Wl,-rpath,/mnt/mfs/liqinkai/miniconda/envs/sy311/lib -Wl,-rpath-link,/mnt/mfs/liqinkai/miniconda/envs/sy311/lib -L/mnt/mfs/liqinkai/miniconda/envs/sy311/lib -Wl,-rpath,/mnt/mfs/liqinkai/miniconda/envs/sy311/lib -Wl,-rpath-link,/mnt/mfs/liqinkai/miniconda/envs/sy311/lib -L/mnt/mfs/liqinkai/miniconda/envs/sy311/lib /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../dependencies/fmt/src/format.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../dependencies/fmt/src/os.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/common_host.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/cpp_api.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/cutlass_mlp.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/encoding.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/fully_fused_mlp.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/network.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/object.o /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/tinycudann/bindings.o -L/mnt/mfs/liqinkai/miniconda/envs/sy311/lib/python3.11/site-packages/torch/lib -L/cm/shared/apps/cuda11.8/toolkit/11.8.0/lib64 -lcuda -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-cpython-311/tinycudann_bindings/_80_C.cpython-311-x86_64-linux-gnu.so
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../dependencies/fmt/src/format.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../dependencies/fmt/src/os.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/common_host.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/cpp_api.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/cutlass_mlp.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/encoding.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/fully_fused_mlp.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/network.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/../../src/object.o: No such file or directory
/mnt/mfs/liqinkai/miniconda/envs/sy311/compiler_compat/ld: cannot find /mnt/mfs/liqinkai/prog/SyncDreamer-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-311/tinycudann/bindings.o: No such file or directory
collect2: error: ld returned 1 exit status
error: command '/cm/local/apps/gcc/11.2.0/bin/g++' failed with exit code 1

here is some info of my device:
torch 2.1.2+CU118
gcc 11.2.0
cmake 3.29.0-rc1
python 3.9/3.11( for both version, they will get same result)

Could you plz tell me how to solve it?

same problem

Same problem, if you solved it, can you go back to how?

Same problem, if you solved it, can you go back to how please?

same problem

Same problem, if you solved it, can you go back to how?

Same problem, if you solved it, can you go back to how please?
I solve it just now ! It is gcc version is too high and incompatible with cuda. Check the gcc version of the local device.
gcc -v
Install gcc and g++ for version 10:
sudo apt-get install gcc-10 sudo apt-get install g++-10
To specify a specific version of gcc for the nvcc compiler:
sudo ln -s /usr/bin/gcc-10 /usr/local/cuda/bin/gcc
I hope it can help you!

not solved any way.

the same problem