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

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

Open
FCInter opened this issue Mar 15, 2024 · 2 comments

Comments

@FCInter
Copy link

FCInter commented Mar 15, 2024

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
Copy link

koyy001 commented Apr 15, 2024

same issue.

@NoctemNana
Copy link

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

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

3 participants