CUDA错误标识符"__stcs"未定义 [英] CUDA error identifier "__stcs" is undefined

查看:73
本文介绍了CUDA错误标识符"__stcs"未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在GPU Pascal,CUDA 10.0上使用带有缓存提示的 store函数 __ stcs .

I want to use store function with cache hint __stcs on GPU Pascal, CUDA 10.0.

《 CUDA C ++编程指南》 没有提及数据类型为 unsigned long long 的任何标头,但是编译器返回错误 identifier"__stcs".是未定义的.

In CUDA C++ Programming Guide there is no mention of any header for data type unsigned long long, but the compiler return an error identifier "__stcs" is undefined.

如何解决此编译错误?

推荐答案

这些内在函数要求CUDA 11.0,它们是CUDA 11.0的新功能.

These intrinsics require CUDA 11.0, they are new for CUDA 11.0.

如果您查看 CUDA 10.0编程指南,您会发现它们没有被提及.您还可以看到在从版本10.2进行的更改"中提到了它们. 11.0编程指南.

If you look at the 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或更高版本的计算能力进行编译.

You also need to compile for compute capability 3.5 or higher.

这篇关于CUDA错误标识符"__stcs"未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆