… | |
… | |
322 | |
322 | |
323 | Returns a list of matching OpenCL::Device objects. |
323 | Returns 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 | |
327 | Tries to create a context. Never worked for me, and you need devices explitly anyway. |
327 | Tries to create a context. Never worked for me, and you need devices explicitly anyway. |
328 | |
328 | |
329 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> |
329 | L<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 | |
… | |
… | |
336 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> |
336 | L<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 | |
340 | Calls C<clGetPlatformInfo> and returns the packed, raw value - for |
340 | Calls C<clGetPlatformInfo> and returns the packed, raw value - for |
341 | strings, this will be the string, for other values you probably need to |
341 | strings, this will be the string (possibly including terminating \0), for |
342 | use the correct C<unpack>. |
342 | other values you probably need to use the correct C<unpack>. |
343 | |
343 | |
344 | It's best to avoid this method and use one of the predefined C<get_*> |
344 | It's best to avoid this method and use one of the following convenience |
345 | methods. |
345 | wrappers. |
346 | |
346 | |
347 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetPlatformInfo.html> |
347 | L<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 | |
354 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_PROFILE> and returns the result(s). |
353 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_PROFILE> and returns the result(s). |
355 | |
354 | |
356 | =item $string = $platform->version |
355 | =item $string = $platform->version |
… | |
… | |
382 | See C<< $platform->info >> for details. |
381 | See C<< $platform->info >> for details. |
383 | |
382 | |
384 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetDeviceInfo.html> |
383 | L<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 | |
391 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_TYPE> and returns the result(s). |
389 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_TYPE> and returns the result(s). |
392 | |
390 | |
… | |
… | |
716 | See C<< $platform->info >> for details. |
714 | See C<< $platform->info >> for details. |
717 | |
715 | |
718 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetContextInfo.html> |
716 | L<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 | |
725 | Calls C<clGetContextInfo> with C<CL_CONTEXT_REFERENCE_COUNT> and returns the result(s). |
722 | Calls C<clGetContextInfo> with C<CL_CONTEXT_REFERENCE_COUNT> and returns the result(s). |
726 | |
723 | |
… | |
… | |
850 | |
847 | |
851 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetCommandQueueInfo.html> |
848 | L<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 | |
858 | Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_CONTEXT> and returns the result(s). |
854 | Calls 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 | |
887 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetMemObjectInfo.html> |
883 | L<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 | |
894 | Calls C<clGetMemObjectInfo> with C<CL_MEM_TYPE> and returns the result(s). |
889 | Calls 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 | |
945 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetImageInfo.html> |
940 | L<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 | |
952 | Calls C<clGetImageInfo> with C<CL_IMAGE_ELEMENT_SIZE> and returns the result(s). |
946 | Calls 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 |
… | |
… | |
984 | See C<< $platform->info >> for details. |
978 | See C<< $platform->info >> for details. |
985 | |
979 | |
986 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetSamplerInfo.html> |
980 | L<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 | |
993 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_REFERENCE_COUNT> and returns the result(s). |
986 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_REFERENCE_COUNT> and returns the result(s). |
994 | |
987 | |
… | |
… | |
1036 | |
1029 | |
1037 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateKernel.html> |
1030 | L<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 | |
1044 | Calls C<clGetProgramBuildInfo> with C<CL_PROGRAM_BUILD_STATUS> and returns the result(s). |
1036 | Calls 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 | |
1060 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetProgramInfo.html> |
1052 | L<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 | |
1067 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_REFERENCE_COUNT> and returns the result(s). |
1058 | Calls 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 |
… | |
… | |
1099 | See C<< $platform->info >> for details. |
1090 | See C<< $platform->info >> for details. |
1100 | |
1091 | |
1101 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelInfo.html> |
1092 | L<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 | |
1108 | Calls C<clGetKernelInfo> with C<CL_KERNEL_FUNCTION_NAME> and returns the result(s). |
1098 | Calls C<clGetKernelInfo> with C<CL_KERNEL_FUNCTION_NAME> and returns the result(s). |
1109 | |
1099 | |
… | |
… | |
1133 | C<< ->info >> method. |
1123 | C<< ->info >> method. |
1134 | |
1124 | |
1135 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetKernelWorkGroupInfo.html> |
1125 | L<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 | |
1142 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_WORK_GROUP_SIZE> and returns the result(s). |
1131 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_WORK_GROUP_SIZE> and returns the result(s). |
1143 | |
1132 | |
… | |
… | |
1195 | |
1184 | |
1196 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetEventInfo.html> |
1185 | L<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 | |
1203 | Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_QUEUE> and returns the result(s). |
1191 | Calls 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 | |
1230 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetProfilingInfo.html> |
1218 | L<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 | |
1237 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_QUEUED> and returns the result(s). |
1224 | Calls 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 |