import dgl.sparse
Traceback (most recent call last):
File “/private/yh/anaconda3/envs/torch-1.13/lib/python3.8/site-packages/dgl/sparse/init.py”, line 38, in load_dgl_sparse
torch.classes.load_library(path)
File “/private/yh/anaconda3/envs/torch-1.13/lib/python3.8/site-packages/torch/_classes.py”, line 51, in load_library
torch.ops.load_library(path)
File “/private/yh/anaconda3/envs/torch-1.13/lib/python3.8/site-packages/torch/_ops.py”, line 573, in load_library
ctypes.CDLL(path)
File “/private/yh/anaconda3/envs/torch-1.13/lib/python3.8/ctypes/init.py”, line 373, in init
self._handle = _dlopen(self._name, mode)
OSError: libnvrtc.so.11.2: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/private/yh/anaconda3/envs/torch-1.13/lib/python3.8/site-packages/dgl/sparse/init.py”, line 43, in
load_dgl_sparse()
File “/private/yh/anaconda3/envs/torch-1.13/lib/python3.8/site-packages/dgl/sparse/init.py”, line 40, in load_dgl_sparse
raise ImportError(“Cannot load DGL C++ sparse library”)
ImportError: Cannot load DGL C++ sparse library
Environment:
dgl version:1.1.2+cu117
torch version:1.13.0+cu117
cuda version:11.7
I want to use dglsp.bsddmm to calculation matrix,but when I run the code ,an issue above occured,can anyone tell me how to solve it?
Supplementary instructions 2024-2-29
I reconfigured my environment and the previous problem didn’t occur
Environment:
dgl version:1.1.0+cu118
torch version:2.0.0+cu118
cuda version:11.8