为 OpenCL 设置 VisualStudio 2010 的正确方法
设置 VisualStuio 2010 处理 *.cl 文件的正确方法是什么?我在工具/文本编辑器/文件扩展名下添加了 *.cl,并将 usertype.dat 复制到 common7/ide 文件夹中,但 VS 为 float4 或 cross 等关键字加了下划线。
是否有必要在注册表中添加一些密钥或者有人可以提出教程吗?
提前致谢。
聚苯乙烯 我已经问过类似的问题老问题,但现在我正在寻找 vs2010 的明确解决方案。这还不错,但确实让我紧张并分散了我对编程任务的注意力。
what is the right way to setup VisualStuio 2010 for working with *.cl files? I have added *.cl under Tool/Text editor/File extensions and copied usertype.dat into the common7/ide folder, but VS underlines keywords like float4 or cross.
Is it necessary to add some key in registry or can somebody propose a tutorial?
Thanks in advance.
PS
i have already asked similar question old one question, but now i am looking explicit for a solution with vs2010. It is not bad, but really nerves and deflects me from programming tasks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
语法颜色的提示,如 本文,usertype.dat 应放置在与 devenv.exe 相同的目录中(默认安装为 c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE)。就我而言,VS2010 安装在 D 驱动器上,并将其与 devenv.exe 一起放置就可以了。
但我的 .cl 文件中仍然有 opencl 关键字的错误标记,例如 __kernel (编译没问题)
A hint for syntax color, as pointed in this article, the usertype.dat should be placed in the same directory that devenv.exe (c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE for default intall.). In my case, VS2010 was installed on D drive and placing it with devenv.exe do the trick.
But i still have error marks in my .cl files for opencl keywords like __kernel (compiling is OK)