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

Comparing OpenCL/OpenCL.pm (file contents):
Revision 1.74 by root, Fri May 4 15:04:51 2012 UTC vs.
Revision 1.75 by root, Sat May 5 02:30:27 2012 UTC

1271 1271
1272Creates a new OpenCL::Program object from the given built-in kernel names. 1272Creates a new OpenCL::Program object from the given built-in kernel names.
1273 1273
1274L<http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateProgramWithBuiltInKernels.html> 1274L<http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateProgramWithBuiltInKernels.html>
1275 1275
1276=item $program = $ctx->link_program (\@devices, $options, \@programs, $cb->($program) = undef)
1277
1278Links all (already compiled) program objects specified in C<@programs>
1279together and returns a new OpenCL::Program object with the result.
1280
1281L<http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clLinkProgram.html>
1282
1276=item $packed_value = $ctx->info ($name) 1283=item $packed_value = $ctx->info ($name)
1277 1284
1278See C<< $platform->info >> for details. 1285See C<< $platform->info >> for details.
1279 1286
1280L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetContextInfo.html> 1287L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetContextInfo.html>
1773C<-cl-mad-enable>, C<-cl-no-signed-zeros>, C<-cl-unsafe-math-optimizations>, 1780C<-cl-mad-enable>, C<-cl-no-signed-zeros>, C<-cl-unsafe-math-optimizations>,
1774C<-cl-finite-math-only>, C<-cl-fast-relaxed-math>, 1781C<-cl-finite-math-only>, C<-cl-fast-relaxed-math>,
1775C<-w>, C<-Werror>, C<-cl-std=CL1.1/CL1.2>, C<-cl-kernel-arg-info>, 1782C<-w>, C<-Werror>, C<-cl-std=CL1.1/CL1.2>, C<-cl-kernel-arg-info>,
1776C<-create-library>, C<-enable-link-options>. 1783C<-create-library>, C<-enable-link-options>.
1777 1784
1785build_status: OpenCL::BUILD_SUCCESS, OpenCL::BUILD_NONE,
1786OpenCL::BUILD_ERROR, OpenCL::BUILD_IN_PROGRESS.
1787
1778L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clBuildProgram.html> 1788L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clBuildProgram.html>
1779 1789
1780=item $program->build_async (\@devices = undef, $options = "", $cb->($program) = undef) 1790=item $program->build_async (\@devices = undef, $options = "", $cb->($program) = undef)
1781 1791
1782Similar to C<< ->build >>, except it starts a thread, and never fails (you 1792Similar to C<< ->build >>, except it starts a thread, and never fails (you
1783need to check the compilation status form the callback, or by polling). 1793need to check the compilation status form the callback, or by polling).
1784 1794
1785build_status: OpenCL::BUILD_SUCCESS, OpenCL::BUILD_NONE, 1795=item $program->compile (\@devices = undef, $options = "", \%headers = undef, $cb->($program) = undef)
1786OpenCL::BUILD_ERROR, OpenCL::BUILD_IN_PROGRESS. 1796
1797Compiles the given program for the given devices (or all devices if
1798undef). If C<$headers> is given, it must be a hashref with include name =>
1799OpenCL::Program pairs.
1800
1801L<http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCompileProgram.html>
1787 1802
1788=item $packed_value = $program->build_info ($device, $name) 1803=item $packed_value = $program->build_info ($device, $name)
1789 1804
1790Similar to C<< $platform->info >>, but returns build info for a previous 1805Similar to C<< $platform->info >>, but returns build info for a previous
1791build attempt for the given device. 1806build attempt for the given device.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines