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

RuntimeError: CUDA error: no kernel image is available for execution on the device #1

Open
tanshy17 opened this issue Dec 14, 2021 · 6 comments

Comments

@tanshy17
Copy link

非常感谢您分享关于DTI预测的代码。在复现测试的过程遇到问题RuntimeError: CUDA error: no kernel image is available for execution on the device。好像是cuda和pytorch版本不对应的报错
下面是我的运行环境配置:
cudatoolkit 10.2.89
dgl 0.4.3post2
dgl-cuda10.2 0.4.3post2
dgllife 0.2.6
python 3.7.11
pytorch 1.7.0

您提供的google网盘的dgl下载国内下载到一半总是报错。可否能提供百度网盘或其他下载方式?非常感谢

@tanshy17
Copy link
Author

您使用的dgl版本是否是0.4.3?cuda==11.0?期待您的回复

@zjujdj
Copy link
Owner

zjujdj commented Dec 14, 2021

dgl-cu90==0.4.3.post2 这是我用的版本

@zjujdj
Copy link
Owner

zjujdj commented Dec 14, 2021

@tanshy17

link:https://pan.baidu.com/s/1mSHNtiiqtM495Wk1w-PaWw
code:z41f
hello, this is the shared packaged file using baidu cloud. I guess you can produce the conda environment i used using this file.

@tanshy17
Copy link
Author

第一次尝试用的是您提供的conda_package.txt文件,也是用的dgl-cu90==0.4.3,但是也报RuntimeError: CUDA error: no kernel image is available for execution on the device的错误,所以后面尝试用的dgl-cuda10.2,也会报同样的错误。
非常感谢您提供的文件,我试试

@zjujdj
Copy link
Owner

zjujdj commented Dec 14, 2021

@tanshy17
我觉得很有可能是你的GPU配置出问题了

@tanshy17
Copy link
Author

特别感谢,问题解决了~在3090和3080上都会报no kernel image is available for execution on the device的错误。1660ti上可以正常运行,不会报错

@github-staff github-staff deleted a comment from BattlePuppy Sep 1, 2024
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

2 participants