940MX is a compute capability 5.0 GPU. You need to compile for a architecture that matches your GPU. CUDA 11.x and 12.x compile by default for cc5.2. See here.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Developer tools Error | 4 | 419 | July 26, 2023 | |
| addKernel launch failed: no kernel image is available | 3 | 3669 | October 12, 2021 | |
| Nothing with CUDA works on this 1 device | 4 | 1076 | March 8, 2023 | |
| addKernel launch failed: no kernel image is available | 0 | 379 | June 30, 2021 | |
| no kernel image is available for the execution on this device | 3 | 5042 | October 3, 2018 | |
| Can I add a certain kernel image (compute capability) to a certain toolkit (that is not in by default)? [VS] | 0 | 373 | October 27, 2020 | |
| Very simple kernel launch failure | 2 | 2386 | January 7, 2015 | |
| Cuda Hello world Program executed but getting this error (cudaErrorNoKernelImageForDevice 209) | 3 | 1364 | January 9, 2020 | |
| Need Help to get CUDA running with c++ | 1 | 530 | June 25, 2019 | |
| Error: no kernel image is available for execution on the device | 1 | 3588 | October 16, 2019 |