opencl
siqi_fighting
这个作者很懒,什么都没留下…
展开
-
openCL: deprecated API
For example:The clCreateCommandQueue function was deprecated as of OpenCL 2.0, and replaced with clCreateCommandQueueWithProperties. If you are only targeting devices that support OpenCL 2.0 (原创 2016-10-13 13:39:08 · 535 阅读 · 0 评论 -
opencl支持double双精度浮点数
先查看设备是否支持cl_khr_fp64, 若无cl_khr_fp64则设备不支持双精度浮点数。 如果有cl_khr_fp64的相关信息,在kernel文件中添加:#pragma OPENCL EXTENSION cl_khr_fp64 : enable即可。具体方法如下:假设已获取某设备cl_device_id deviceId, 首先获取设备信息如下:cl_int e原创 2016-12-06 16:07:14 · 3191 阅读 · 1 评论