With CDP 2.0 (i.e. modern CDP - CUDA Dynamic Parallelism - the act of calling a kernel from device code) that is basically not possible. But there are workarounds. You will find various threads discussing this notion, here are a few: 1 2 3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Calling kernels from a c-File Linking problem | 15 | 9221 | October 5, 2009 | |
| Dynamic parallelism linking error | 0 | 527 | May 31, 2023 | |
| cudaMalloc() return "cudaErrorLaunchFailure" | 19 | 14695 | December 11, 2008 | |
| how to call kernal in .cpp file | 4 | 2766 | September 7, 2009 | |
| Cuda Wrapper for Wine Partially completed just having compiling errors | 2 | 4279 | May 31, 2010 | |
| Compiling / linking CUDA apps? | 8 | 4941 | September 21, 2009 | |
| Invalid device function | 10 | 6984 | February 25, 2015 | |
| Silent kernel failure | 25 | 8698 | May 18, 2020 | |
| Seperate compilation of cuda fortran code concerning dynamic library | 2 | 778 | August 23, 2022 | |
| Compiling Dynamic parallelism error | 1 | 2644 | November 2, 2013 |