2019年12月22日

opencl(六)----图像对象

摘要: 图像对象同样使用cl_mem数据结构 创建图像对象 // 创建2D的图像对象cl_mem clCreateImage2D ( cl_context context, //上下文 cl_mem_flags flags, // 对象性质标签 const cl_image_format *image_fo 阅读全文

posted @ 2019-12-22 23:18 feihu_h 阅读(1044) 评论(0) 推荐(0)

opencl(五)----缓存对象

摘要: 创建缓存对象 参考:https://www.khronos.org/registry/OpenCL/sdk/1.0/docs/man/xhtml/clCreateBuffer.html // 创建缓存对象 cl_mem clCreateBuffer ( cl_context context, //上 阅读全文

posted @ 2019-12-22 23:01 feihu_h 阅读(576) 评论(0) 推荐(0)

opencl(四)----创建命令队列

摘要: 创建命令队列 参考:https://www.khronos.org/registry/OpenCL/sdk/1.0/docs/man/xhtml/clCreateCommandQueue.html //创建命令队列 cl_command_queue clCreateCommandQueue( cl_ 阅读全文

posted @ 2019-12-22 22:15 feihu_h 阅读(765) 评论(0) 推荐(0)

opencl(三)----创建、编译程序(cl_program)、创建内核

摘要: 1、创建程序 // 从文本中创建程序 cl_program clCreateProgramWithSource ( cl_context context, // 上下文 cl_uint count, //文本个数 const char **strings, // 程序文本 const size_t 阅读全文

posted @ 2019-12-22 22:00 feihu_h 阅读(1903) 评论(0) 推荐(0)

opencl(二)----平台、设备、上下文的获取

摘要: 1、获取平台 参考:https://www.khronos.org/registry/OpenCL/sdk/1.0/docs/man/xhtml/clGetPlatformInfo.html cl_int clGetPlatformIDs( cl_uint num_entries, //想要获取的平 阅读全文

posted @ 2019-12-22 20:50 feihu_h 阅读(1357) 评论(0) 推荐(0)

导航