ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/OpenCL/OpenCL.pm
(Generate patch)

Comparing OpenCL/OpenCL.pm (file contents):
Revision 1.11 by root, Thu Nov 17 02:54:14 2011 UTC vs.
Revision 1.14 by root, Thu Nov 17 03:02:25 2011 UTC

201 201
202=head1 DOCUMENTATION 202=head1 DOCUMENTATION
203 203
204=head2 BASIC CONVENTIONS 204=head2 BASIC CONVENTIONS
205 205
206This is not a 1:1 C-style translation of OpenCL to Perl - instead I 206This is not a one-to-one C-style translation of OpenCL to Perl - instead
207attempted to make the interface as type-safe as possible and introducing 207I attempted to make the interface as type-safe as possible by introducing
208object syntax where it makes sense. There are a number of important 208object syntax where it makes sense. There are a number of important
209differences between the OpenCL C API and this module: 209differences between the OpenCL C API and this module:
210 210
211=over 4 211=over 4
212 212
219prefixes (C<< $platform->info >>). 219prefixes (C<< $platform->info >>).
220 220
221=item * OpenCL often specifies fixed vector function arguments as short 221=item * OpenCL often specifies fixed vector function arguments as short
222arrays (C<size_t origin[3]>), while this module explicitly expects the 222arrays (C<size_t origin[3]>), while this module explicitly expects the
223components as separate arguments- 223components as separate arguments-
224
225=item * Structures are often specified with their components, and returned
226as arrayrefs.
224 227
225=item * Where possible, one of the pitch values is calculated from the 228=item * Where possible, one of the pitch values is calculated from the
226perl scalar length and need not be specified. 229perl scalar length and need not be specified.
227 230
228=item * When enqueuing commands, the wait list is specified by adding 231=item * When enqueuing commands, the wait list is specified by adding
643package OpenCL; 646package OpenCL;
644 647
645use common::sense; 648use common::sense;
646 649
647BEGIN { 650BEGIN {
648 our $VERSION = '0.03'; 651 our $VERSION = '0.14';
649 652
650 require XSLoader; 653 require XSLoader;
651 XSLoader::load (__PACKAGE__, $VERSION); 654 XSLoader::load (__PACKAGE__, $VERSION);
652 655
653 @OpenCL::Buffer::ISA = 656 @OpenCL::Buffer::ISA =

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines