Bug#1098962: python3-torch-cuda undefined symbol: nvtxRangePop
Package: python3-torch-cuda
Version: 2.6.0+dfsg-3
Severity: serious
In [1]: import torch
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import torch
File /usr/lib/python3/dist-packages/torch/__init__.py:405
403 if USE_GLOBAL_DEPS:
404 _load_global_deps()
--> 405 from torch._C import * # noqa: F403
408 class SymInt:
409 """
410 Like an int (including magic methods), but redirects all operations on the
411 wrapped node. This is used in particular to symbolically record operations
412 in the symbolic shape workflow.
413 """
ImportError: /lib/x86_64-linux-gnu/libtorch_cuda.so.2.6: undefined symbol: nvtxRangePop
In [2]:
The temporary workaround is to preload the shared object
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libnvToolsExt.so.1
Then it works normally. Maybe we missed this shared object during linking.
Reply to: