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

Comparing OpenCL/OpenCL.pm (file contents):
Revision 1.78 by root, Sat May 5 13:07:19 2012 UTC vs.
Revision 1.79 by root, Sat May 5 13:30:07 2012 UTC

419 419
420=item * When enqueuing commands, if the enqueue method is called in void 420=item * When enqueuing commands, if the enqueue method is called in void
421context, no event is created. In all other contexts an event is returned 421context, no event is created. In all other contexts an event is returned
422by the method. 422by the method.
423 423
424=item * This module expects all functions to return C<CL_SUCCESS>. If any 424=item * This module expects all functions to return C<OpenCL::SUCCESS>. If any
425other status is returned the function will throw an exception, so you 425other status is returned the function will throw an exception, so you
426don't normally have to to any error checking. 426don't normally have to to any error checking.
427 427
428=back 428=back
429 429
752L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> 752L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html>
753 753
754=item $ctx = $platform->context ($properties, \@devices, $callback->($err, $pvt) = $print_stderr) 754=item $ctx = $platform->context ($properties, \@devices, $callback->($err, $pvt) = $print_stderr)
755 755
756Create a new OpenCL::Context object using the given device object(s)- a 756Create a new OpenCL::Context object using the given device object(s)- a
757CL_CONTEXT_PLATFORM property is supplied automatically. 757OpenCL::CONTEXT_PLATFORM property is supplied automatically.
758 758
759L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> 759L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html>
760 760
761=item $packed_value = $platform->info ($name) 761=item $packed_value = $platform->info ($name)
762 762
1701=over 4 1701=over 4
1702 1702
1703=item $subbuf = $buf_obj->sub_buffer_region ($flags, $origin, $size) 1703=item $subbuf = $buf_obj->sub_buffer_region ($flags, $origin, $size)
1704 1704
1705Creates an OpenCL::Buffer objects from this buffer and returns it. The 1705Creates an OpenCL::Buffer objects from this buffer and returns it. The
1706C<buffer_create_type> is assumed to be C<CL_BUFFER_CREATE_TYPE_REGION>. 1706C<buffer_create_type> is assumed to be C<OpenCL::BUFFER_CREATE_TYPE_REGION>.
1707 1707
1708L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateSubBuffer.html> 1708L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateSubBuffer.html>
1709 1709
1710=back 1710=back
1711 1711
1727L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetImageInfo.html> 1727L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetImageInfo.html>
1728 1728
1729=item ($channel_order, $channel_data_type) = $image->format 1729=item ($channel_order, $channel_data_type) = $image->format
1730 1730
1731Returns the channel order and type used to create the image by calling 1731Returns the channel order and type used to create the image by calling
1732C<clGetImageInfo> with C<CL_IMAGE_FORMAT>. 1732C<clGetImageInfo> with C<OpenCL::IMAGE_FORMAT>.
1733 1733
1734=for gengetinfo begin image 1734=for gengetinfo begin image
1735 1735
1736=item $int = $image->element_size 1736=item $int = $image->element_size
1737 1737
1893Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_OPTIONS> and returns the result. 1893Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_OPTIONS> and returns the result.
1894 1894
1895=item $string = $program->build_log ($device) 1895=item $string = $program->build_log ($device)
1896 1896
1897Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_LOG> and returns the result. 1897Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_LOG> and returns the result.
1898
1899=item $binary_type = $program->binary_type ($device)
1900
1901Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BINARY_TYPE> and returns the result.
1898 1902
1899=for gengetinfo end program_build 1903=for gengetinfo end program_build
1900 1904
1901=item $packed_value = $program->info ($name) 1905=item $packed_value = $program->info ($name)
1902 1906

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines