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