Function is not callable from this CUDA execution space
Reports a call that the CUDA execution space of the caller does not allow. A function may only be called from the spaces its execution space specifiers make it callable from: a '__host__' function from host code, a '__device__' function from SIMT code, a '__tile__' function from tile code, a '__global__' kernel from host code and, with dynamic parallelism, from SIMT code, and a '__tile_global__' kernel from host code only. A function that carries several specifiers is compiled for several spaces and may only call what all of them may call, which is why '__host__ __device__' code reaches a '__device__' function only under '#if defined(__CUDA_ARCH__)'
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
CppCudaFunctionIsNotCallableFromExecutionSpace- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: | CLion 2026.3, JetBrains Rider 2026.3, Qodana for .NET 2026.3, |