简体   繁体   English

如何在Mac OSX 10.9.4上为Intel Iris Pro获得OpenCL C ++绑定

[英]How do I get OpenCL C++ bindings on Mac OSX 10.9.4 for Intel Iris Pro

I want to utilize the Intel Iris Pro with OpenCL, preferably 1.2, on a mac (10.9.4) with C++ bindings. 我想在具有C ++绑定的mac(10.9.4)上使用带有OpenCL(最好为1.2)的Intel Iris Pro。

I am extremely new to Mac and I have struggled a bit with XCode in getting a simple OpenCL code compiled even after going through Apple's OpenCL documentation. 我对Mac非常陌生,即使在阅读了Apple的OpenCL文档后,我还是对XCode感到有些费力,无法获得简单的OpenCL代码。 I think I would be much more comfortable with the command line as opposed to GUI solutions. 我认为与GUI解决方案相比,我对命令行更满意。

So how do I go about getting C++ API of OpenCL 1.2 working for Iris Pro? 那么,如何使ICL Pro的OpenCL 1.2的C ++ API起作用呢? Would Intel OpenCL SDK work on OSX? 英特尔OpenCL SDK是否可以在OSX上运行? Is there any way to just add to the libraries already provided on Mac? 有什么方法可以添加到Mac上已经提供的库中吗?

Official C++ bindings from Khronos are header-only. 来自Khronos的官方C ++绑定仅是标头。 You can get cl.hpp at Khronos OpenCL registry . 您可以在Khronos OpenCL注册表中获取cl.hpp。 BTW, look at your OpenCL SDK, usually it's available out of the box. 顺便说一句,请查看您的OpenCL SDK,通常它是开箱即用的。 If not, include mentioned C++ header, and that's it. 如果不是,请包括提到的C ++标头,仅此而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM