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

Comparing OpenCL/OpenCL.pm (file contents):
Revision 1.71 by root, Fri May 4 14:29:35 2012 UTC vs.
Revision 1.73 by root, Fri May 4 14:56:50 2012 UTC

1773=item $program->build_async (\@devices = undef, $options = "", $cb->($program) = undef) 1773=item $program->build_async (\@devices = undef, $options = "", $cb->($program) = undef)
1774 1774
1775Similar to C<< ->build >>, except it starts a thread, and never fails (you 1775Similar to C<< ->build >>, except it starts a thread, and never fails (you
1776need to check the compilation status form the callback, or by polling). 1776need to check the compilation status form the callback, or by polling).
1777 1777
1778build_status: OpenCL::BUILD_SUCCESS, OpenCL::BUILD_NONE,
1779OpenCL::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
1780Similar to C<< $platform->info >>, but returns build info for a previous 1783Similar to C<< $platform->info >>, but returns build info for a previous
1781build attempt for the given device. 1784build 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
1802Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_STATUS> and returns the result. 1805Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_STATUS> and returns the result.
1803
1804build_status: OpenCL::BUILD_SUCCESS, OpenCL::BUILD_NONE,
1805OpenCL::BUILD_ERROR, OpenCL::BUILD_IN_PROGRESS.
1806 1806
1807=item $string = $program->build_options ($device) 1807=item $string = $program->build_options ($device)
1808 1808
1809Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_OPTIONS> and returns the result. 1809Calls 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
1900See C<< $platform->info >> for details. 1900See C<< $platform->info >> for details.
1901 1901
1902The reason this method is not called C<info> is that there already is an
1903C<< ->info >> method.
1904
1905L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelWorkGroupInfo.html> 1902L<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
1927Calls C<clGetKernelWorkGroupInfo> with C<OpenCL::KERNEL_PRIVATE_MEM_SIZE> and returns the result. 1924Calls 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
1930See C<< $platform->info >> for details.
1931
1932L<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
1938Calls 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
1942Calls C<clGetKernelArgInfo> with C<OpenCL::KERNEL_ARG_ACCESS_QUALIFIER> and returns the result.
1943
1944=item $string = $kernel->arg_type_name ($idx)
1945
1946Calls 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
1950Calls C<clGetKernelArgInfo> with C<OpenCL::KERNEL_ARG_TYPE_QUALIFIER> and returns the result.
1951
1952=item $string = $kernel->arg_name ($idx)
1953
1954Calls 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
1933Sets the arguments of a kernel. Since OpenCL 1.1 doesn't have a generic 1960Sets the arguments of a kernel. Since OpenCL 1.1 doesn't have a generic
1934way to set arguments (and with OpenCL 1.2 it might be rather slow), you 1961way to set arguments (and with OpenCL 1.2 it might be rather slow), you

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines