OpenCL的简单使用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Callon_H/article/details/82557999

详情可见:https://github.com/CallonHuang/OpenCL_examples/tree/master/test_hello

该例子源于Apple的hello程序,源例子使用clCreateProgramWithSource,后自己增加了clCreateProgramWithBinary的使用放在里面,并使用build.sh和宏进行封装,可以帮助大家简单了解OpenCL的编译及程序组成,尤其是在Macbook上OpenCL的上手会很有帮助。

猜你喜欢

转载自blog.csdn.net/Callon_H/article/details/82557999