为 OpenCL 设置 VisualStudio 2010 的正确方法

发布于 2024-09-05 23:31:40 字数 368 浏览 1 评论 0原文

设置 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终难愈 2024-09-12 23:31:40

语法颜色的提示,如 本文,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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文