自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 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

原创 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

原创 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

原创 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

原创 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

原创 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阅读笔记(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

原创 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

原创 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

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除