NVlabs / tiny-cuda-nn

Lightning fast C++/CUDA neural network framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems encountered during installation

dahaigui opened this issue · comments

cuda 11.7
gcc/g++ 8.5.0
centos 7.9.2009
python 3.8.18
torch 2.0.0+cu117
torchaudio 2.0.1+cu117
torchvision 0.15.1+cu117

When I run python setup.py install
Building PyTorch extension for tiny-cuda-nn version 1.7
Obtained compute capability 86 from PyTorch
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_May__3_18:49:52_PDT_2022
Cuda compilation tools, release 11.7, V11.7.64
Build cuda_11.7.r11.7/compiler.31294372_0
Detected CUDA version 11.7
Targeting C++ standard 17
running install
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
building 'tinycudann_bindings._86_C' extension
Emitting ninja build file /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.11.1
g++ -pthread -shared -B /home/chenhx/miniconda3/envs/neuralangelo/compiler_compat -L/home/chenhx/miniconda3/envs/neuralangelo/lib -Wl,-rpath=/home/chenhx/miniconda3/envs/neuralangelo/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/tinycudann/bindings.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../dependencies/fmt/src/format.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../dependencies/fmt/src/os.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/cpp_api.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/common_host.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/encoding.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/object.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/network.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/cutlass_mlp.o /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/fully_fused_mlp.o -L/home/chenhx/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/torch/lib -L/home/chenhx/miniconda3/envs/neuralangelo/lib64 -lcuda -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.8/tinycudann_bindings/_86_C.cpython-38-x86_64-linux-gnu.so
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/tinycudann/bindings.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../dependencies/fmt/src/format.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../dependencies/fmt/src/os.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/cpp_api.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/common_host.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/encoding.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/object.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/network.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/cutlass_mlp.o: No such file or directory
g++: error: /home/chenhx/software/neuralangelo/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-3.8/../../src/fully_fused_mlp.o: No such file or directory
error: command 'g++' failed with exit status 1

How can I install tinycudann?

I found the solution to this problem!
#304 (comment)