JetBrains Rider 2026.3 Help

Code inspection: A memory space specifier is not allowed on a type alias

This inspection reports a CUDA memory space specifier on a typedef declaration. A type alias does not declare a variable, so there is nothing to place in the memory space. Put the specifier on the variable that uses the alias.

Example

__device__ typedef int DeviceInt;
typedef int DeviceInt; __device__ DeviceInt value;
27 October 2026