--- OpenCL/OpenCL.pm 2011/11/17 03:56:07 1.17 +++ OpenCL/OpenCL.pm 2011/11/17 06:22:29 1.18 @@ -54,15 +54,19 @@ http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/ +If you are into UML class diagrams, the following diagram might help - if +not, it will be mildly cobfusing: + + http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/classDiagram.html + Here's a tutorial from AMD (very AMD-centric, too), not sure how useful it is, but at least it's free of charge: http://developer.amd.com/zones/OpenCLZone/courses/Documents/Introduction_to_OpenCL_Programming%20Training_Guide%20%28201005%29.pdf -If you are into UML class diagrams, the following diagram might help - if -not, it will be mildly cofusing: +And here's NVIDIA's OpenCL Best Practises Guide: - http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/classDiagram.html + http://developer.download.nvidia.com/compute/cuda/3_2/toolkit/docs/OpenCL_Best_Practices_Guide.pdf =head1 BASIC WORKFLOW @@ -386,13 +390,13 @@ Creates a new OpenCL::Buffer object and initialise it with the given data values. -=item $img = $ctx->image2d ($flags, $channel_order, $channel_type, $width, $height, $data) +=item $img = $ctx->image2d ($flags, $channel_order, $channel_type, $width, $height, $row_pitch = 0, $data = undef) Creates a new OpenCL::Image2D object and optionally initialises it with the given data values. L -=item $img = $ctx->image3d ($flags, $channel_order, $channel_type, $width, $height, $depth, $slice_pitch, $data) +=item $img = $ctx->image3d ($flags, $channel_order, $channel_type, $width, $height, $depth, $row_pitch = 0, $slice_pitch = 0, $data = undef) Creates a new OpenCL::Image3D object and optionally initialises it with the given data values. @@ -658,7 +662,7 @@ use common::sense; BEGIN { - our $VERSION = '0.14'; + our $VERSION = '0.15'; require XSLoader; XSLoader::load (__PACKAGE__, $VERSION);