![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GPGPU
文章平均质量分 63
medvolvis
这个作者很懒,什么都没留下…
展开
-
OpenCL 1.0 Specification阅读笔记(1)
http://www.khronos.org/registry/cl/4. The OpenCL Platform Layerimplement platform-specific features:(1) Querying Platform InfoclGetPlatformIDs: define cl_platform_id platforms[num_entries]clGetPlatformInfo: CL_PLATFORM_EXTENSIONS will return more than 128原创 2010-10-31 22:45:00 · 1834 阅读 · 0 评论 -
OpenCL 1.0 Specification阅读笔记(2)
5. The OpenCL RuntimeOpenCL objects: memory objects, program objects, kernel objects, command-queues, others?5.1 Command Queuesuse context to create memory, program, kernel objects, and operations on these objects are performed using a *command-queue*.One原创 2010-11-01 21:22:00 · 1099 阅读 · 0 评论 -
OpenCL 1.0 Specification阅读笔记(3)
<br />5. The OpenCL Runtime<br /> <br />5.2 Memory Objects<br /> <br />(1) buffer objects: 1-dim: scalar, vector, user-defined structure<br />(2) image objects: 2-dims or 3-dims texture, frame buffer and image: image format<br /> <br />memory object的元素至少为1原创 2010-11-02 22:39:00 · 864 阅读 · 0 评论 -
OpenCL 1.0 Specification阅读笔记(4)
<br />clGetSupportedImageFormats();<br /> <br />clEnqueueReadImage()<br />clEnqueueWriteImage()<br />clEnqueueCopyImage()<br /> <br />clEnqueueCopyImageToBuffer(): enqueue a command to copy an image object to a buffer object<br />clEnqueueCopyBufferToImage原创 2010-11-03 20:51:00 · 1339 阅读 · 1 评论 -
OpenCL 1.0 Specification阅读笔记(5)
<br />Sampler Objects (s#)<br /> <br />built-in functions to read from an image in akernel take a sampler as an argument<br /> <br />(1) create using OpenCL functions and passed as argument values to the kernel<br />(2) declare the samplers inside a kernel原创 2010-11-04 22:35:00 · 746 阅读 · 0 评论 -
OpenCL 1.0 Specification阅读笔记(6)
<br />1. Creating Program Objects<br /> <br />cl_program clCreateProgramWithSource( cl_context context, cl_uint count, const char **string, const size_t *lengths, cl_int *errcode_ret ); cl_program clCreatePr原创 2010-11-05 21:17:00 · 541 阅读 · 0 评论 -
OpenCL 1.0 Specification阅读笔记(7)
<br />Executing Kernels<br /> <br />// enqueue a command to execute a kernel on a device cl_int clEnqueueNDRangeKernel( cl_command_queue command_queue, cl_kernel kernel, cl_uint work_dim, const size_t *global_wor原创 2010-11-06 22:57:00 · 1054 阅读 · 0 评论 -
OpenCL 1.0 Specification阅读笔记(8)
<br />6. OpenCL Programming Language<br /> <br />1. Explicit Type Convertion<br /> <br />convert_<dest type name>(scr_type);<br /> <br />转换向量中的元素个数必须相同<br />可以加入modifier,convert_<dest type name><_sat><_rounding_mode>(src_type);<br /> <br />2. Reintepreting原创 2010-11-09 22:32:00 · 458 阅读 · 0 评论 -
OpenCL 1.0 Specification阅读笔记(9)
<br />1. 对于指针使用的约束<br />(1) __kernel函数的参数为指针时,要用__global, __constant, __local修饰<br />(2) __global, __constant, __local修饰的指针只能赋值给相同修饰符的指针<br />(3) 指针函数不允许<br />(4) __kernel函数的参数不能是指针的指针<br /> <br />2. image2d_t和image3d_t的约束<br /> <br />不能直接访问,不能有指针,只能为__ker原创 2010-11-10 21:50:00 · 437 阅读 · 0 评论