… | |
… | |
1773 | =item $program->build_async (\@devices = undef, $options = "", $cb->($program) = undef) |
1773 | =item $program->build_async (\@devices = undef, $options = "", $cb->($program) = undef) |
1774 | |
1774 | |
1775 | Similar to C<< ->build >>, except it starts a thread, and never fails (you |
1775 | Similar to C<< ->build >>, except it starts a thread, and never fails (you |
1776 | need to check the compilation status form the callback, or by polling). |
1776 | need to check the compilation status form the callback, or by polling). |
1777 | |
1777 | |
|
|
1778 | build_status: OpenCL::BUILD_SUCCESS, OpenCL::BUILD_NONE, |
|
|
1779 | OpenCL::BUILD_ERROR, OpenCL::BUILD_IN_PROGRESS. |
|
|
1780 | |
1778 | =item $packed_value = $program->build_info ($device, $name) |
1781 | =item $packed_value = $program->build_info ($device, $name) |
1779 | |
1782 | |
1780 | Similar to C<< $platform->info >>, but returns build info for a previous |
1783 | Similar to C<< $platform->info >>, but returns build info for a previous |
1781 | build attempt for the given device. |
1784 | build attempt for the given device. |
1782 | |
1785 | |
… | |
… | |
1798 | =for gengetinfo begin program_build |
1801 | =for gengetinfo begin program_build |
1799 | |
1802 | |
1800 | =item $build_status = $program->build_status ($device) |
1803 | =item $build_status = $program->build_status ($device) |
1801 | |
1804 | |
1802 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_STATUS> and returns the result. |
1805 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_STATUS> and returns the result. |
1803 | |
|
|
1804 | build_status: OpenCL::BUILD_SUCCESS, OpenCL::BUILD_NONE, |
|
|
1805 | OpenCL::BUILD_ERROR, OpenCL::BUILD_IN_PROGRESS. |
|
|
1806 | |
1806 | |
1807 | =item $string = $program->build_options ($device) |
1807 | =item $string = $program->build_options ($device) |
1808 | |
1808 | |
1809 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_OPTIONS> and returns the result. |
1809 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_OPTIONS> and returns the result. |
1810 | |
1810 | |
… | |
… | |
1925 | =item $ulong = $kernel->private_mem_size ($device) |
1925 | =item $ulong = $kernel->private_mem_size ($device) |
1926 | |
1926 | |
1927 | Calls C<clGetKernelWorkGroupInfo> with C<OpenCL::KERNEL_PRIVATE_MEM_SIZE> and returns the result. |
1927 | Calls C<clGetKernelWorkGroupInfo> with C<OpenCL::KERNEL_PRIVATE_MEM_SIZE> and returns the result. |
1928 | |
1928 | |
1929 | =for gengetinfo end kernel_work_group |
1929 | =for gengetinfo end kernel_work_group |
|
|
1930 | |
|
|
1931 | =for gengetinfo begin kernel_arg_info |
|
|
1932 | |
|
|
1933 | =for gengetinfo end kernel_arg_info |
1930 | |
1934 | |
1931 | =item $kernel->setf ($format, ...) |
1935 | =item $kernel->setf ($format, ...) |
1932 | |
1936 | |
1933 | Sets the arguments of a kernel. Since OpenCL 1.1 doesn't have a generic |
1937 | Sets the arguments of a kernel. Since OpenCL 1.1 doesn't have a generic |
1934 | way to set arguments (and with OpenCL 1.2 it might be rather slow), you |
1938 | way to set arguments (and with OpenCL 1.2 it might be rather slow), you |