Skip to content

cudErrorNoKernelImageForDevice: no kernel image is available for execution on the device #18

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

Open
nicetaker opened this issue Jan 29, 2024 · 2 comments

Comments

@nicetaker
Copy link

Hello, I'm having the following problem:
when I run ./cukd_sample and other testing code,it will have some problem:

terminate called after throwing an instance of thrust: system:: system_error'
what(): parallel_for failed: cudErrorNoKernelImageForDevice: no kernel image is available for execution on the device.

The full output is below:
•/cukd_sample

generating 1000000 uniform random points
allocated memory for the world space bounding box ... calling builder...
terminate called after throwing an instance of thrust: system:: system_error'
what(): parallel_for failed: cudErrorNoKernelImageForDevice: no kernel image is available for execution on the device

My code environment is as follows:
wls2,ubuntu20.04,
cuda11.4,cudnn8.6.0,
4090

I compiled the code as with cmake as follows commod:
mkdir build
cd build
cmake ..
make

plz advise me on how ti fix this;
thankx!

@ingowald
Copy link
Owner

It means that you've compiled the code for a different GPU architecture than the one you're actually using. Ie., you're probably compiling for arch 70 (volta), but using something newer like a 4080 (arch=86) that doesn't support "70".

First, look up what GPU you are using, and what the CUDA arch for that GPU is; then in the cmake dialog set the "CMAKE_CUDA_ARCHITECTURE" to this value.

I'll also soon push a change where it lets cmake autodetect (newer versions can do that), but for now that should work.

@nicetaker
Copy link
Author

Thank you very much!

I see your latest update.
It can work now.
it really helps me.
thank you again

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