代码检查:类型别名上不允许使用内存空间说明符
此检查会报告 typedef 声明上的 CUDA 内存空间说明符。 类型别名不声明变量,因此没有可放入内存空间的内容。 将说明符放在使用该别名的变量上。
示例
__device__ typedef int DeviceInt;
typedef int DeviceInt;
__device__ DeviceInt value;
2026年 11月 6日