NVlabs / tiny-cuda-nn

Lightning fast C++/CUDA neural network framework
Other
3.54k stars 437 forks source link

tinycudann ImportError: tinycudann_bindings/_80_C.cpython-38-x86_64-linux-gnu.so: undefined symbol: #421

Open FCInter opened 3 months ago

FCInter commented 3 months ago

I finished these steps:

$ git clone --recursive https://github.com/nvlabs/tiny-cuda-nn
$ cd tiny-cuda-nn
tiny-cuda-nn$ cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
tiny-cuda-nn$ cmake --build build --config RelWithDebInfo -j
tiny-cuda-nn$ cd bindings/torch
tiny-cuda-nn/bindings/torch$ python setup.py install

The final message printed is

Processing tinycudann-1.7-py3.8-linux-x86_64.egg
removing '/home/mypath/.conda/envs/nerfbusters/lib/python3.8/site-packages/tinycudann-1.7-py3.8-linux-x86_64.egg' (and everything under it)
creating /home/mypath/.conda/envs/nerfbusters/lib/python3.8/site-packages/tinycudann-1.7-py3.8-linux-x86_64.egg
Extracting tinycudann-1.7-py3.8-linux-x86_64.egg to /home/mypath/.conda/envs/nerfbusters/lib/python3.8/site-packages
Adding tinycudann 1.7 to easy-install.pth file

Installed /home/mypath/.conda/envs/nerfbusters/lib/python3.8/site-packages/tinycudann-1.7-py3.8-linux-x86_64.egg
Processing dependencies for tinycudann==1.7
Finished processing dependencies for tinycudann==1.7

No bug. Then I failed to import the tinycudann. My command is:

import tinycudann as tcnn

And the error is:

>>> import tinycudann as tcnn

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mypath/projects/tiny-cuda-nn/bindings/torch/tinycudann/__init__.py", line 9, in <module>
    from tinycudann.modules import free_temporary_memory, NetworkWithInputEncoding, Network, Encoding
  File "/home/mypath/projects/tiny-cuda-nn/bindings/torch/tinycudann/modules.py", line 51, in <module>
    _C = importlib.import_module(f"tinycudann_bindings._{cc}_C")
  File "/home/mypath/.conda/envs/nerfbusters/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /home/mypath/.conda/envs/nerfbusters/lib/python3.8/site-packages/tinycudann_bindings/_80_C.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda20CUDACachingAllocator12recordStreamERKNS_7DataPtrENS0_10CUDAStreamE
>>>

What's wrong?

koyy001 commented 2 months ago

same issue.

NoctemNana commented 2 months ago

@FCInter i encountered the same error and can't solve it whatsoever. Did you find any solution?