cuda表面内存错误 [英] cuda surface memory error
本文介绍了cuda表面内存错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的cuda代码工作正常。但是当我在代码的顶部包含以下内容时会给出一些错误。
My cuda code works fine. but when I include the following on top of my code it gives some errors.
surface<void,2> sImg;
fatal : Parsing error near '.surf': syntax error
我可以解决这个问题吗?
How can I solve this?
当我在main方法中声明sImg时,它编译..
When I declare "sImg" inside the main method it compiles..
以下没有工作..
surface<void,2> sImg;
int main()
{
return 0;
}
推荐答案
属性 - > CUDA Runtime API - > GPU - > GPR Architecture1 to sm_20
现在它编译..
I changed Properties-->CUDA Runtime API-->GPU-->GPR Architecture1 to sm_20 Now it compiles..
这篇关于cuda表面内存错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文