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

Comparing OpenCL/OpenCL.pm (file contents):
Revision 1.21 by root, Sun Nov 20 10:21:27 2011 UTC vs.
Revision 1.22 by root, Sun Nov 20 10:25:17 2011 UTC

322 322
323Returns a list of matching OpenCL::Device objects. 323Returns a list of matching OpenCL::Device objects.
324 324
325=item $ctx = $platform->context_from_type ($properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $notify = undef) 325=item $ctx = $platform->context_from_type ($properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $notify = undef)
326 326
327Tries to create a context. Never worked for me, and you need devices explitly anyway. 327Tries to create a context. Never worked for me, and you need devices explicitly anyway.
328 328
329L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> 329L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html>
330 330
331=item $ctx = $device->context ($properties = undef, @$devices, $notify = undef) 331=item $ctx = $device->context ($properties = undef, @$devices, $notify = undef)
332 332
336L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> 336L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html>
337 337
338=item $packed_value = $platform->info ($name) 338=item $packed_value = $platform->info ($name)
339 339
340Calls C<clGetPlatformInfo> and returns the packed, raw value - for 340Calls C<clGetPlatformInfo> and returns the packed, raw value - for
341strings, this will be the string, for other values you probably need to 341strings, this will be the string (possibly including terminating \0), for
342use the correct C<unpack>. 342other values you probably need to use the correct C<unpack>.
343 343
344It's best to avoid this method and use one of the predefined C<get_*> 344It's best to avoid this method and use one of the following convenience
345methods. 345wrappers.
346 346
347L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetPlatformInfo.html> 347L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetPlatformInfo.html>
348 348
349=for gengetinfo begin platform 349=for gengetinfo begin platform
350 350
351
352=item $string = $platform->profile 351=item $string = $platform->profile
353 352
354Calls C<clGetPlatformInfo> with C<CL_PLATFORM_PROFILE> and returns the result(s). 353Calls C<clGetPlatformInfo> with C<CL_PLATFORM_PROFILE> and returns the result(s).
355 354
356=item $string = $platform->version 355=item $string = $platform->version
382See C<< $platform->info >> for details. 381See C<< $platform->info >> for details.
383 382
384L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetDeviceInfo.html> 383L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetDeviceInfo.html>
385 384
386=for gengetinfo begin device 385=for gengetinfo begin device
387
388 386
389=item $device_type = $device->type 387=item $device_type = $device->type
390 388
391Calls C<clGetDeviceInfo> with C<CL_DEVICE_TYPE> and returns the result(s). 389Calls C<clGetDeviceInfo> with C<CL_DEVICE_TYPE> and returns the result(s).
392 390
716See C<< $platform->info >> for details. 714See C<< $platform->info >> for details.
717 715
718L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetContextInfo.html> 716L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetContextInfo.html>
719 717
720=for gengetinfo begin context 718=for gengetinfo begin context
721
722 719
723=item $uint = $context->reference_count 720=item $uint = $context->reference_count
724 721
725Calls C<clGetContextInfo> with C<CL_CONTEXT_REFERENCE_COUNT> and returns the result(s). 722Calls C<clGetContextInfo> with C<CL_CONTEXT_REFERENCE_COUNT> and returns the result(s).
726 723
850 847
851L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetCommandQueueInfo.html> 848L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetCommandQueueInfo.html>
852 849
853=for gengetinfo begin command_queue 850=for gengetinfo begin command_queue
854 851
855
856=item $ctx = $command_queue->context 852=item $ctx = $command_queue->context
857 853
858Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_CONTEXT> and returns the result(s). 854Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_CONTEXT> and returns the result(s).
859 855
860=item $device = $command_queue->device 856=item $device = $command_queue->device
886 882
887L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetMemObjectInfo.html> 883L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetMemObjectInfo.html>
888 884
889=for gengetinfo begin mem 885=for gengetinfo begin mem
890 886
891
892=item $mem_object_type = $mem->type 887=item $mem_object_type = $mem->type
893 888
894Calls C<clGetMemObjectInfo> with C<CL_MEM_TYPE> and returns the result(s). 889Calls C<clGetMemObjectInfo> with C<CL_MEM_TYPE> and returns the result(s).
895 890
896=item $mem_flags = $mem->flags 891=item $mem_flags = $mem->flags
944 939
945L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetImageInfo.html> 940L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetImageInfo.html>
946 941
947=for gengetinfo begin image 942=for gengetinfo begin image
948 943
949
950=item $int = $image->element_size 944=item $int = $image->element_size
951 945
952Calls C<clGetImageInfo> with C<CL_IMAGE_ELEMENT_SIZE> and returns the result(s). 946Calls C<clGetImageInfo> with C<CL_IMAGE_ELEMENT_SIZE> and returns the result(s).
953 947
954=item $int = $image->row_pitch 948=item $int = $image->row_pitch
984See C<< $platform->info >> for details. 978See C<< $platform->info >> for details.
985 979
986L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetSamplerInfo.html> 980L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetSamplerInfo.html>
987 981
988=for gengetinfo begin sampler 982=for gengetinfo begin sampler
989
990 983
991=item $uint = $sampler->reference_count 984=item $uint = $sampler->reference_count
992 985
993Calls C<clGetSamplerInfo> with C<CL_SAMPLER_REFERENCE_COUNT> and returns the result(s). 986Calls C<clGetSamplerInfo> with C<CL_SAMPLER_REFERENCE_COUNT> and returns the result(s).
994 987
1036 1029
1037L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateKernel.html> 1030L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateKernel.html>
1038 1031
1039=for gengetinfo begin program_build 1032=for gengetinfo begin program_build
1040 1033
1041
1042=item $build_status = $program->build_status ($device) 1034=item $build_status = $program->build_status ($device)
1043 1035
1044Calls C<clGetProgramBuildInfo> with C<CL_PROGRAM_BUILD_STATUS> and returns the result(s). 1036Calls C<clGetProgramBuildInfo> with C<CL_PROGRAM_BUILD_STATUS> and returns the result(s).
1045 1037
1046=item $string = $program->build_options ($device) 1038=item $string = $program->build_options ($device)
1059 1051
1060L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetProgramInfo.html> 1052L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetProgramInfo.html>
1061 1053
1062=for gengetinfo begin program 1054=for gengetinfo begin program
1063 1055
1064
1065=item $uint = $program->reference_count 1056=item $uint = $program->reference_count
1066 1057
1067Calls C<clGetProgramInfo> with C<CL_PROGRAM_REFERENCE_COUNT> and returns the result(s). 1058Calls C<clGetProgramInfo> with C<CL_PROGRAM_REFERENCE_COUNT> and returns the result(s).
1068 1059
1069=item $ctx = $program->context 1060=item $ctx = $program->context
1099See C<< $platform->info >> for details. 1090See C<< $platform->info >> for details.
1100 1091
1101L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelInfo.html> 1092L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelInfo.html>
1102 1093
1103=for gengetinfo begin kernel 1094=for gengetinfo begin kernel
1104
1105 1095
1106=item $string = $kernel->function_name 1096=item $string = $kernel->function_name
1107 1097
1108Calls C<clGetKernelInfo> with C<CL_KERNEL_FUNCTION_NAME> and returns the result(s). 1098Calls C<clGetKernelInfo> with C<CL_KERNEL_FUNCTION_NAME> and returns the result(s).
1109 1099
1133C<< ->info >> method. 1123C<< ->info >> method.
1134 1124
1135L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelWorkGroupInfo.html> 1125L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelWorkGroupInfo.html>
1136 1126
1137=for gengetinfo begin kernel_work_group 1127=for gengetinfo begin kernel_work_group
1138
1139 1128
1140=item $int = $kernel->work_group_size ($device) 1129=item $int = $kernel->work_group_size ($device)
1141 1130
1142Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_WORK_GROUP_SIZE> and returns the result(s). 1131Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_WORK_GROUP_SIZE> and returns the result(s).
1143 1132
1195 1184
1196L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetEventInfo.html> 1185L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetEventInfo.html>
1197 1186
1198=for gengetinfo begin event 1187=for gengetinfo begin event
1199 1188
1200
1201=item $queue = $event->command_queue 1189=item $queue = $event->command_queue
1202 1190
1203Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_QUEUE> and returns the result(s). 1191Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_QUEUE> and returns the result(s).
1204 1192
1205=item $command_type = $event->command_type 1193=item $command_type = $event->command_type
1229 1217
1230L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetProfilingInfo.html> 1218L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetProfilingInfo.html>
1231 1219
1232=for gengetinfo begin profiling 1220=for gengetinfo begin profiling
1233 1221
1234
1235=item $ulong = $event->profiling_command_queued 1222=item $ulong = $event->profiling_command_queued
1236 1223
1237Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_QUEUED> and returns the result(s). 1224Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_QUEUED> and returns the result(s).
1238 1225
1239=item $ulong = $event->profiling_command_submit 1226=item $ulong = $event->profiling_command_submit

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines