The right way to setup VisualStudio 2010 for OpenCL

夙愿已清 提交于 2019-12-04 09:41:27

问题


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.


回答1:


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)



来源:https://stackoverflow.com/questions/3076485/the-right-way-to-setup-visualstudio-2010-for-opencl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!