CUDA 错误标识符“__stcs”未定义

CUDA error identifier "__stcs" is undefined

我想在 GPU Pascal、CUDA 10.0 上使用 带缓存提示的存储函数 __stcs

CUDA C++ Programming Guide 中没有提及数据类型 unsigned long long 的任何 header,但编译器 return 出现错误 identifier "__stcs" is undefined.

如何修复这个编译错误?

这些内部函数需要 CUDA 11.0,它们是 CUDA 11.0 的新增功能。

如果您查看 CUDA 10.0 programming guide you will see they are not mentioned. You can also see that they are mentioned in the "changes from Version 10.2" section of the 11.0 programming guide

您还需要针对 3.5 或更高的计算能力进行编译。