… | |
… | |
226 | |
226 | |
227 | =item * Object lifetime managament is automatic - there is no need |
227 | =item * Object lifetime managament is automatic - there is no need |
228 | to free objects explicitly (C<clReleaseXXX>), the release function |
228 | to free objects explicitly (C<clReleaseXXX>), the release function |
229 | is called automatically once all Perl references to it go away. |
229 | is called automatically once all Perl references to it go away. |
230 | |
230 | |
231 | =item * OpenCL uses CamelCase for function names (C<clGetPlatformInfo>), |
231 | =item * OpenCL uses CamelCase for function names (e.g. C<clGetPlatformIDs>, C<clGetPlatformInfo>), |
232 | while this module uses underscores as word separator and often leaves out |
232 | while this module uses underscores as word separator and often leaves out |
233 | prefixes (C<< $platform->info >>). |
233 | prefixes (C<OpenCL::platforms>, C<< $platform->info >>). |
234 | |
234 | |
235 | =item * OpenCL often specifies fixed vector function arguments as short |
235 | =item * OpenCL often specifies fixed vector function arguments as short |
236 | arrays (C<$origin[3]>), while this module explicitly expects the |
236 | arrays (C<size_t origin[3]>), while this module explicitly expects the |
237 | components as separate arguments- |
237 | components as separate arguments (C<$orig_x, $orig_y, $orig_z>) in |
|
|
238 | function calls. |
238 | |
239 | |
239 | =item * Structures are often specified with their components, and returned |
240 | =item * Structures are often specified by flattening out their components |
240 | as arrayrefs. |
241 | as with short vectors, and returned as arrayrefs. |
241 | |
|
|
242 | =item * Where possible, one of the pitch values is calculated from the |
|
|
243 | perl scalar length and need not be specified. |
|
|
244 | |
242 | |
245 | =item * When enqueuing commands, the wait list is specified by adding |
243 | =item * When enqueuing commands, the wait list is specified by adding |
246 | extra arguments to the function - anywhere a C<$wait_events...> argument |
244 | extra arguments to the function - anywhere a C<$wait_events...> argument |
247 | is documented this can be any number of event objects. |
245 | is documented this can be any number of event objects. |
248 | |
246 | |