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

cuda runtime error #1

Open
gmt710 opened this issue Aug 1, 2018 · 5 comments
Open

cuda runtime error #1

gmt710 opened this issue Aug 1, 2018 · 5 comments

Comments

@gmt710
Copy link

gmt710 commented Aug 1, 2018

RuntimeError: cuda runtime error (48) : no kernel image is available for execution on the device at d:\pytorch\pytorch\torch\lib\thcunn\generic/Threshold.cu:34

I want to know,do you have met this problem?

@cmhcbb
Copy link
Collaborator

cmhcbb commented Aug 1, 2018

We haven't met the problem. It looks like your cuda haven't been configured correctly.

@gmt710
Copy link
Author

gmt710 commented Aug 2, 2018

I just ran your code on Linux, and your code works.

the problem appears on Windows.
“It looks like your cuda haven't been configured correctly.”
Probably not,the problem only appear in the Pytorch. the version of cuda or Pytorch is all right.I've tried several versions of the Pytorch,and the problem is always there.

@cmhcbb
Copy link
Collaborator

cmhcbb commented Aug 2, 2018

I just found something closely related. See pytorch/pytorch#10113

@gmt710
Copy link
Author

gmt710 commented Aug 3, 2018

I found the error analysis on official website,Is your cuda version 8.0?I installed the version 8.0 of cuda,but there are still mistakes.

the error analysis on official website:
cudaErrorNoKernelImageForDevice | 48 | This indicates that there is no kernel image available that is suitable for the device. This can occur when a user specifies code generation options for a particular CUDA source file that do not include the corresponding device configuration.

@cmhcbb
Copy link
Collaborator

cmhcbb commented Aug 3, 2018

pytorch 0.3.1 py36_cuda8.0.61_cudnn7.1.2_3 pytorch
It is our pytorch version and cuda version.

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