dgl._ffi.base.DGLError:/dgl-0.5/src/array/cuda/array_op_impl.cu:252: Check failed: e == cudaSuccess || e == cudaErrorCudartUnloading: CUDA kernel launch error: no kernel image is available for execution on the device

I am new to dgl and trying to run a temporal knowledge graph embedding model.

I am executing the TiRGN Knowledge Graph Embedding model, TiRGN Github. The required dgl version is dgl-cu102==0.5.2, which I installed by running pip install -r requirement.txt.

But when I am trying to run the model, it’s giving dgl._ffi.base.DGLError. I am attaching the screenshot of the error.

Could anyone please help me to resolve this issue? If any further details I am ready to provide them.

result of conda list:

Name Version Build Channel

blas 1.0 mkl
bzip2 1.0.8 he774522_0
ca-certificates 2023.05.30 haa95532_0
certifi 2022.12.7 py37haa95532_0
charset-normalizer 3.2.0 pypi_0 pypi
colorama 0.4.6 pypi_0 pypi
cudatoolkit 10.2.89 h74a9793_1
dgl-cu102 0.5.2 pypi_0 pypi
freetype 2.12.1 ha860e81_0
giflib 5.2.1 h8cc25b3_3
idna 3.4 pypi_0 pypi
importlib-metadata 4.13.0 pypi_0 pypi
intel-openmp 2021.4.0 haa95532_3556
isodate 0.6.1 pypi_0 pypi
jpeg 9e h2bbff1b_1
lerc 3.0 hd77b12b_0
libdeflate 1.17 h2bbff1b_0
libpng 1.6.39 h8cc25b3_0
libtiff 4.5.1 hd77b12b_0
libuv 1.44.2 h2bbff1b_0
libwebp 1.2.4 hbc33d0d_1
libwebp-base 1.2.4 h2bbff1b_1
lz4-c 1.9.4 h2bbff1b_0
networkx 2.6.3 pypi_0 pypi
ninja 1.10.2 haa95532_5
ninja-base 1.10.2 h6d14046_5
numpy 1.21.5 py37h7a0a035_3
numpy-base 1.21.5 py37hca35cd5_3
openssl 1.1.1v h2bbff1b_0
pandas 1.3.5 pypi_0 pypi
pillow 9.4.0 py37hd77b12b_0
pip 22.3.1 py37haa95532_0
pyparsing 3.1.1 pypi_0 pypi
python 3.7.16 h6244533_0
python-dateutil 2.8.2 pypi_0 pypi
pytorch 1.6.0 py3.7_cuda102_cudnn7_0 pytorch
pytz 2023.3 pypi_0 pypi
rdflib 6.3.2 pypi_0 pypi
requests 2.31.0 pypi_0 pypi
scipy 1.7.3 pypi_0 pypi
setuptools 65.6.3 py37haa95532_0
six 1.16.0 pyhd3eb1b0_1
sqlite 3.41.2 h2bbff1b_0
tk 8.6.12 h2bbff1b_0
torchvision 0.7.0 py37_cu102 pytorch
tqdm 4.66.1 pypi_0 pypi
typing-extensions 4.7.1 pypi_0 pypi
urllib3 2.0.4 pypi_0 pypi
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
wheel 0.38.4 py37haa95532_0
wincertstore 0.2 py37haa95532_2
xz 5.4.2 h8cc25b3_0
zipp 3.15.0 pypi_0 pypi
zlib 1.2.13 h8cc25b3_0
zstd 1.5.5 hd43e919_0

Hi, could you also provide the following environment information?

  • DGL Version (e.g., 1.0):
  • Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3):
  • OS (e.g., Linux):
  • How you installed DGL (conda, pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version (if applicable):
  • GPU models and configuration (e.g. V100):
  • Any other relevant information:

Plus, it would be better if you could consider using our latest version of DGL, as dgl-0.5 has become somewhat outdated and is no longer supported. Thanks!