Code inspection: A memory space variable is not allowed in a host function
This inspection reports a local variable with a CUDA memory space specifier in host-only code. Host-only code cannot allocate local variables in device memory. Remove the specifier or move the variable to device code.
Example
void host()
{
__shared__ int value;
}
void host()
{
int value;
}
If you need the variable in shared memory, declare it in a __device__ or __global__ function.
27 October 2026