… | |
… | |
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 | |
… | |
… | |
1897 | |
1897 | |
1898 | =item $packed_value = $kernel->work_group_info ($device, $name) |
1898 | =item $packed_value = $kernel->work_group_info ($device, $name) |
1899 | |
1899 | |
1900 | See C<< $platform->info >> for details. |
1900 | See C<< $platform->info >> for details. |
1901 | |
1901 | |
1902 | The reason this method is not called C<info> is that there already is an |
|
|
1903 | C<< ->info >> method. |
|
|
1904 | |
|
|
1905 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelWorkGroupInfo.html> |
1902 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelWorkGroupInfo.html> |
1906 | |
1903 | |
1907 | =for gengetinfo begin kernel_work_group |
1904 | =for gengetinfo begin kernel_work_group |
1908 | |
1905 | |
1909 | =item $int = $kernel->work_group_size ($device) |
1906 | =item $int = $kernel->work_group_size ($device) |
… | |
… | |
1925 | =item $ulong = $kernel->private_mem_size ($device) |
1922 | =item $ulong = $kernel->private_mem_size ($device) |
1926 | |
1923 | |
1927 | Calls C<clGetKernelWorkGroupInfo> with C<OpenCL::KERNEL_PRIVATE_MEM_SIZE> and returns the result. |
1924 | Calls C<clGetKernelWorkGroupInfo> with C<OpenCL::KERNEL_PRIVATE_MEM_SIZE> and returns the result. |
1928 | |
1925 | |
1929 | =for gengetinfo end kernel_work_group |
1926 | =for gengetinfo end kernel_work_group |
|
|
1927 | |
|
|
1928 | =item $packed_value = $kernel->arg_info ($idx, $name) |
|
|
1929 | |
|
|
1930 | See C<< $platform->info >> for details. |
|
|
1931 | |
|
|
1932 | L<http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelArgInfo.html> |
|
|
1933 | |
|
|
1934 | =for gengetinfo begin kernel_arg |
|
|
1935 | |
|
|
1936 | =item $kernel_arg_address_qualifier = $kernel->arg_address_qualifier ($idx) |
|
|
1937 | |
|
|
1938 | Calls C<clGetKernelArgInfo> with C<OpenCL::KERNEL_ARG_ADDRESS_QUALIFIER> and returns the result. |
|
|
1939 | |
|
|
1940 | =item $kernel_arg_access_qualifier = $kernel->arg_access_qualifier ($idx) |
|
|
1941 | |
|
|
1942 | Calls C<clGetKernelArgInfo> with C<OpenCL::KERNEL_ARG_ACCESS_QUALIFIER> and returns the result. |
|
|
1943 | |
|
|
1944 | =item $string = $kernel->arg_type_name ($idx) |
|
|
1945 | |
|
|
1946 | Calls C<clGetKernelArgInfo> with C<OpenCL::KERNEL_ARG_TYPE_NAME> and returns the result. |
|
|
1947 | |
|
|
1948 | =item $kernel_arg_type_qualifier = $kernel->arg_type_qualifier ($idx) |
|
|
1949 | |
|
|
1950 | Calls C<clGetKernelArgInfo> with C<OpenCL::KERNEL_ARG_TYPE_QUALIFIER> and returns the result. |
|
|
1951 | |
|
|
1952 | =item $string = $kernel->arg_name ($idx) |
|
|
1953 | |
|
|
1954 | Calls C<clGetKernelArgInfo> with C<OpenCL::KERNEL_ARG_NAME> and returns the result. |
|
|
1955 | |
|
|
1956 | =for gengetinfo end kernel_arg |
1930 | |
1957 | |
1931 | =item $kernel->setf ($format, ...) |
1958 | =item $kernel->setf ($format, ...) |
1932 | |
1959 | |
1933 | Sets the arguments of a kernel. Since OpenCL 1.1 doesn't have a generic |
1960 | 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 |
1961 | way to set arguments (and with OpenCL 1.2 it might be rather slow), you |