Code inspection: A memory space specifier is not allowed on a data member
This inspection reports a CUDA memory space specifier on a data member. A data member is stored in the same memory as the object that contains it, so it cannot have its own memory space. Remove the specifier from the member.
Example
struct Buffer
{
__device__ int size;
};
struct Buffer
{
int size;
};
27 October 2026