… | |
… | |
101 | |
101 | |
102 | Best run this once to get a feel for the platforms and devices in your |
102 | Best run this once to get a feel for the platforms and devices in your |
103 | system. |
103 | system. |
104 | |
104 | |
105 | for my $platform (OpenCL::platforms) { |
105 | for my $platform (OpenCL::platforms) { |
106 | printf "platform: %s\n", $platform->info (OpenCL::PLATFORM_NAME); |
106 | printf "platform: %s\n", $platform->name; |
107 | printf "extensions: %s\n", $platform->info (OpenCL::PLATFORM_EXTENSIONS); |
107 | printf "extensions: %s\n", $platform->extensions; |
108 | for my $device ($platform->devices) { |
108 | for my $device ($platform->devices) { |
109 | printf "+ device: %s\n", $device->info (OpenCL::DEVICE_NAME); |
109 | printf "+ device: %s\n", $device->name; |
110 | my $ctx = $device->context; |
110 | my $ctx = $device->context; |
111 | # do stuff |
111 | # do stuff |
112 | } |
112 | } |
113 | } |
113 | } |
114 | |
114 | |
… | |
… | |
161 | |
161 | |
162 | my $prog = $ctx->program_with_source ($src); |
162 | my $prog = $ctx->program_with_source ($src); |
163 | |
163 | |
164 | # build croaks on compile errors, so catch it and print the compile errors |
164 | # build croaks on compile errors, so catch it and print the compile errors |
165 | eval { $prog->build ($dev); 1 } |
165 | eval { $prog->build ($dev); 1 } |
166 | or die $prog->build_info ($dev, OpenCL::PROGRAM_BUILD_LOG); |
166 | or die $prog->build_log; |
167 | |
167 | |
168 | my $kernel = $prog->kernel ("squareit"); |
168 | my $kernel = $prog->kernel ("squareit"); |
169 | |
169 | |
170 | =head2 Create some input and output float buffers, then call the |
170 | =head2 Create some input and output float buffers, then call the |
171 | 'squareit' kernel on them. |
171 | 'squareit' kernel on them. |
… | |
… | |
348 | |
348 | |
349 | =for gengetinfo begin platform |
349 | =for gengetinfo begin platform |
350 | |
350 | |
351 | =item $string = $platform->profile |
351 | =item $string = $platform->profile |
352 | |
352 | |
353 | 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. |
354 | |
354 | |
355 | =item $string = $platform->version |
355 | =item $string = $platform->version |
356 | |
356 | |
357 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_VERSION> and returns the result(s). |
357 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_VERSION> and returns the result. |
358 | |
358 | |
359 | =item $string = $platform->name |
359 | =item $string = $platform->name |
360 | |
360 | |
361 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_NAME> and returns the result(s). |
361 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_NAME> and returns the result. |
362 | |
362 | |
363 | =item $string = $platform->vendor |
363 | =item $string = $platform->vendor |
364 | |
364 | |
365 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_VENDOR> and returns the result(s). |
365 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_VENDOR> and returns the result. |
366 | |
366 | |
367 | =item $string = $platform->extensions |
367 | =item $string = $platform->extensions |
368 | |
368 | |
369 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_EXTENSIONS> and returns the result(s). |
369 | Calls C<clGetPlatformInfo> with C<CL_PLATFORM_EXTENSIONS> and returns the result. |
370 | |
370 | |
371 | =for gengetinfo end platform |
371 | =for gengetinfo end platform |
372 | |
372 | |
373 | =back |
373 | =back |
374 | |
374 | |
… | |
… | |
384 | |
384 | |
385 | =for gengetinfo begin device |
385 | =for gengetinfo begin device |
386 | |
386 | |
387 | =item $device_type = $device->type |
387 | =item $device_type = $device->type |
388 | |
388 | |
389 | 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. |
390 | |
390 | |
391 | =item $uint = $device->vendor_id |
391 | =item $uint = $device->vendor_id |
392 | |
392 | |
393 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_VENDOR_ID> and returns the result(s). |
393 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_VENDOR_ID> and returns the result. |
394 | |
394 | |
395 | =item $uint = $device->max_compute_units |
395 | =item $uint = $device->max_compute_units |
396 | |
396 | |
397 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_COMPUTE_UNITS> and returns the result(s). |
397 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_COMPUTE_UNITS> and returns the result. |
398 | |
398 | |
399 | =item $uint = $device->max_work_item_dimensions |
399 | =item $uint = $device->max_work_item_dimensions |
400 | |
400 | |
401 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS> and returns the result(s). |
401 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS> and returns the result. |
402 | |
402 | |
403 | =item $int = $device->max_work_group_size |
403 | =item $int = $device->max_work_group_size |
404 | |
404 | |
405 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_WORK_GROUP_SIZE> and returns the result(s). |
405 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_WORK_GROUP_SIZE> and returns the result. |
406 | |
406 | |
407 | =item @ints = $device->max_work_item_sizes |
407 | =item @ints = $device->max_work_item_sizes |
408 | |
408 | |
409 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_WORK_ITEM_SIZES> and returns the result(s). |
409 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_WORK_ITEM_SIZES> and returns the result. |
410 | |
410 | |
411 | =item $uint = $device->preferred_vector_width_char |
411 | =item $uint = $device->preferred_vector_width_char |
412 | |
412 | |
413 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR> and returns the result(s). |
413 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR> and returns the result. |
414 | |
414 | |
415 | =item $uint = $device->preferred_vector_width_short |
415 | =item $uint = $device->preferred_vector_width_short |
416 | |
416 | |
417 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT> and returns the result(s). |
417 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT> and returns the result. |
418 | |
418 | |
419 | =item $uint = $device->preferred_vector_width_int |
419 | =item $uint = $device->preferred_vector_width_int |
420 | |
420 | |
421 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT> and returns the result(s). |
421 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT> and returns the result. |
422 | |
422 | |
423 | =item $uint = $device->preferred_vector_width_long |
423 | =item $uint = $device->preferred_vector_width_long |
424 | |
424 | |
425 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG> and returns the result(s). |
425 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG> and returns the result. |
426 | |
426 | |
427 | =item $uint = $device->preferred_vector_width_float |
427 | =item $uint = $device->preferred_vector_width_float |
428 | |
428 | |
429 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT> and returns the result(s). |
429 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT> and returns the result. |
430 | |
430 | |
431 | =item $uint = $device->preferred_vector_width_double |
431 | =item $uint = $device->preferred_vector_width_double |
432 | |
432 | |
433 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE> and returns the result(s). |
433 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE> and returns the result. |
434 | |
434 | |
435 | =item $uint = $device->max_clock_frequency |
435 | =item $uint = $device->max_clock_frequency |
436 | |
436 | |
437 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_CLOCK_FREQUENCY> and returns the result(s). |
437 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_CLOCK_FREQUENCY> and returns the result. |
438 | |
438 | |
439 | =item $bitfield = $device->address_bits |
439 | =item $bitfield = $device->address_bits |
440 | |
440 | |
441 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_ADDRESS_BITS> and returns the result(s). |
441 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_ADDRESS_BITS> and returns the result. |
442 | |
442 | |
443 | =item $uint = $device->max_read_image_args |
443 | =item $uint = $device->max_read_image_args |
444 | |
444 | |
445 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_READ_IMAGE_ARGS> and returns the result(s). |
445 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_READ_IMAGE_ARGS> and returns the result. |
446 | |
446 | |
447 | =item $uint = $device->max_write_image_args |
447 | =item $uint = $device->max_write_image_args |
448 | |
448 | |
449 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_WRITE_IMAGE_ARGS> and returns the result(s). |
449 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_WRITE_IMAGE_ARGS> and returns the result. |
450 | |
450 | |
451 | =item $ulong = $device->max_mem_alloc_size |
451 | =item $ulong = $device->max_mem_alloc_size |
452 | |
452 | |
453 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_MEM_ALLOC_SIZE> and returns the result(s). |
453 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_MEM_ALLOC_SIZE> and returns the result. |
454 | |
454 | |
455 | =item $int = $device->image2d_max_width |
455 | =item $int = $device->image2d_max_width |
456 | |
456 | |
457 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE2D_MAX_WIDTH> and returns the result(s). |
457 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE2D_MAX_WIDTH> and returns the result. |
458 | |
458 | |
459 | =item $int = $device->image2d_max_height |
459 | =item $int = $device->image2d_max_height |
460 | |
460 | |
461 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE2D_MAX_HEIGHT> and returns the result(s). |
461 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE2D_MAX_HEIGHT> and returns the result. |
462 | |
462 | |
463 | =item $int = $device->image3d_max_width |
463 | =item $int = $device->image3d_max_width |
464 | |
464 | |
465 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE3D_MAX_WIDTH> and returns the result(s). |
465 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE3D_MAX_WIDTH> and returns the result. |
466 | |
466 | |
467 | =item $int = $device->image3d_max_height |
467 | =item $int = $device->image3d_max_height |
468 | |
468 | |
469 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE3D_MAX_HEIGHT> and returns the result(s). |
469 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE3D_MAX_HEIGHT> and returns the result. |
470 | |
470 | |
471 | =item $int = $device->image3d_max_depth |
471 | =item $int = $device->image3d_max_depth |
472 | |
472 | |
473 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE3D_MAX_DEPTH> and returns the result(s). |
473 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE3D_MAX_DEPTH> and returns the result. |
474 | |
474 | |
475 | =item $uint = $device->image_support |
475 | =item $uint = $device->image_support |
476 | |
476 | |
477 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE_SUPPORT> and returns the result(s). |
477 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_IMAGE_SUPPORT> and returns the result. |
478 | |
478 | |
479 | =item $int = $device->max_parameter_size |
479 | =item $int = $device->max_parameter_size |
480 | |
480 | |
481 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_PARAMETER_SIZE> and returns the result(s). |
481 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_PARAMETER_SIZE> and returns the result. |
482 | |
482 | |
483 | =item $uint = $device->max_samplers |
483 | =item $uint = $device->max_samplers |
484 | |
484 | |
485 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_SAMPLERS> and returns the result(s). |
485 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_SAMPLERS> and returns the result. |
486 | |
486 | |
487 | =item $uint = $device->mem_base_addr_align |
487 | =item $uint = $device->mem_base_addr_align |
488 | |
488 | |
489 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MEM_BASE_ADDR_ALIGN> and returns the result(s). |
489 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MEM_BASE_ADDR_ALIGN> and returns the result. |
490 | |
490 | |
491 | =item $uint = $device->min_data_type_align_size |
491 | =item $uint = $device->min_data_type_align_size |
492 | |
492 | |
493 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE> and returns the result(s). |
493 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE> and returns the result. |
494 | |
494 | |
495 | =item $device_fp_config = $device->single_fp_config |
495 | =item $device_fp_config = $device->single_fp_config |
496 | |
496 | |
497 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_SINGLE_FP_CONFIG> and returns the result(s). |
497 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_SINGLE_FP_CONFIG> and returns the result. |
498 | |
498 | |
499 | =item $device_mem_cache_type = $device->global_mem_cache_type |
499 | =item $device_mem_cache_type = $device->global_mem_cache_type |
500 | |
500 | |
501 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_GLOBAL_MEM_CACHE_TYPE> and returns the result(s). |
501 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_GLOBAL_MEM_CACHE_TYPE> and returns the result. |
502 | |
502 | |
503 | =item $uint = $device->global_mem_cacheline_size |
503 | =item $uint = $device->global_mem_cacheline_size |
504 | |
504 | |
505 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE> and returns the result(s). |
505 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE> and returns the result. |
506 | |
506 | |
507 | =item $ulong = $device->global_mem_cache_size |
507 | =item $ulong = $device->global_mem_cache_size |
508 | |
508 | |
509 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_GLOBAL_MEM_CACHE_SIZE> and returns the result(s). |
509 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_GLOBAL_MEM_CACHE_SIZE> and returns the result. |
510 | |
510 | |
511 | =item $ulong = $device->global_mem_size |
511 | =item $ulong = $device->global_mem_size |
512 | |
512 | |
513 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_GLOBAL_MEM_SIZE> and returns the result(s). |
513 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_GLOBAL_MEM_SIZE> and returns the result. |
514 | |
514 | |
515 | =item $ulong = $device->max_constant_buffer_size |
515 | =item $ulong = $device->max_constant_buffer_size |
516 | |
516 | |
517 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE> and returns the result(s). |
517 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE> and returns the result. |
518 | |
518 | |
519 | =item $uint = $device->max_constant_args |
519 | =item $uint = $device->max_constant_args |
520 | |
520 | |
521 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_CONSTANT_ARGS> and returns the result(s). |
521 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_MAX_CONSTANT_ARGS> and returns the result. |
522 | |
522 | |
523 | =item $device_local_mem_type = $device->local_mem_type |
523 | =item $device_local_mem_type = $device->local_mem_type |
524 | |
524 | |
525 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_LOCAL_MEM_TYPE> and returns the result(s). |
525 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_LOCAL_MEM_TYPE> and returns the result. |
526 | |
526 | |
527 | =item $ulong = $device->local_mem_size |
527 | =item $ulong = $device->local_mem_size |
528 | |
528 | |
529 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_LOCAL_MEM_SIZE> and returns the result(s). |
529 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_LOCAL_MEM_SIZE> and returns the result. |
530 | |
530 | |
531 | =item $boolean = $device->error_correction_support |
531 | =item $boolean = $device->error_correction_support |
532 | |
532 | |
533 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_ERROR_CORRECTION_SUPPORT> and returns the result(s). |
533 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_ERROR_CORRECTION_SUPPORT> and returns the result. |
534 | |
534 | |
535 | =item $int = $device->profiling_timer_resolution |
535 | =item $int = $device->profiling_timer_resolution |
536 | |
536 | |
537 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PROFILING_TIMER_RESOLUTION> and returns the result(s). |
537 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PROFILING_TIMER_RESOLUTION> and returns the result. |
538 | |
538 | |
539 | =item $boolean = $device->endian_little |
539 | =item $boolean = $device->endian_little |
540 | |
540 | |
541 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_ENDIAN_LITTLE> and returns the result(s). |
541 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_ENDIAN_LITTLE> and returns the result. |
542 | |
542 | |
543 | =item $boolean = $device->available |
543 | =item $boolean = $device->available |
544 | |
544 | |
545 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_AVAILABLE> and returns the result(s). |
545 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_AVAILABLE> and returns the result. |
546 | |
546 | |
547 | =item $boolean = $device->compiler_available |
547 | =item $boolean = $device->compiler_available |
548 | |
548 | |
549 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_COMPILER_AVAILABLE> and returns the result(s). |
549 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_COMPILER_AVAILABLE> and returns the result. |
550 | |
550 | |
551 | =item $device_exec_capabilities = $device->execution_capabilities |
551 | =item $device_exec_capabilities = $device->execution_capabilities |
552 | |
552 | |
553 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_EXECUTION_CAPABILITIES> and returns the result(s). |
553 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_EXECUTION_CAPABILITIES> and returns the result. |
554 | |
554 | |
555 | =item $command_queue_properties = $device->properties |
555 | =item $command_queue_properties = $device->properties |
556 | |
556 | |
557 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_QUEUE_PROPERTIES> and returns the result(s). |
557 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_QUEUE_PROPERTIES> and returns the result. |
558 | |
558 | |
559 | =item $ = $device->platform |
559 | =item $ = $device->platform |
560 | |
560 | |
561 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PLATFORM> and returns the result(s). |
561 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PLATFORM> and returns the result. |
562 | |
562 | |
563 | =item $string = $device->name |
563 | =item $string = $device->name |
564 | |
564 | |
565 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NAME> and returns the result(s). |
565 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NAME> and returns the result. |
566 | |
566 | |
567 | =item $string = $device->vendor |
567 | =item $string = $device->vendor |
568 | |
568 | |
569 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_VENDOR> and returns the result(s). |
569 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_VENDOR> and returns the result. |
570 | |
570 | |
571 | =item $string = $device->driver_version |
571 | =item $string = $device->driver_version |
572 | |
572 | |
573 | Calls C<clGetDeviceInfo> with C<CL_DRIVER_VERSION> and returns the result(s). |
573 | Calls C<clGetDeviceInfo> with C<CL_DRIVER_VERSION> and returns the result. |
574 | |
574 | |
575 | =item $string = $device->profile |
575 | =item $string = $device->profile |
576 | |
576 | |
577 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PROFILE> and returns the result(s). |
577 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PROFILE> and returns the result. |
578 | |
578 | |
579 | =item $string = $device->version |
579 | =item $string = $device->version |
580 | |
580 | |
581 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_VERSION> and returns the result(s). |
581 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_VERSION> and returns the result. |
582 | |
582 | |
583 | =item $string = $device->extensions |
583 | =item $string = $device->extensions |
584 | |
584 | |
585 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_EXTENSIONS> and returns the result(s). |
585 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_EXTENSIONS> and returns the result. |
586 | |
586 | |
587 | =item $uint = $device->preferred_vector_width_half |
587 | =item $uint = $device->preferred_vector_width_half |
588 | |
588 | |
589 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF> and returns the result(s). |
589 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF> and returns the result. |
590 | |
590 | |
591 | =item $uint = $device->native_vector_width_char |
591 | =item $uint = $device->native_vector_width_char |
592 | |
592 | |
593 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR> and returns the result(s). |
593 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR> and returns the result. |
594 | |
594 | |
595 | =item $uint = $device->native_vector_width_short |
595 | =item $uint = $device->native_vector_width_short |
596 | |
596 | |
597 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT> and returns the result(s). |
597 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT> and returns the result. |
598 | |
598 | |
599 | =item $uint = $device->native_vector_width_int |
599 | =item $uint = $device->native_vector_width_int |
600 | |
600 | |
601 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_INT> and returns the result(s). |
601 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_INT> and returns the result. |
602 | |
602 | |
603 | =item $uint = $device->native_vector_width_long |
603 | =item $uint = $device->native_vector_width_long |
604 | |
604 | |
605 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG> and returns the result(s). |
605 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG> and returns the result. |
606 | |
606 | |
607 | =item $uint = $device->native_vector_width_float |
607 | =item $uint = $device->native_vector_width_float |
608 | |
608 | |
609 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT> and returns the result(s). |
609 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT> and returns the result. |
610 | |
610 | |
611 | =item $uint = $device->native_vector_width_double |
611 | =item $uint = $device->native_vector_width_double |
612 | |
612 | |
613 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE> and returns the result(s). |
613 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE> and returns the result. |
614 | |
614 | |
615 | =item $uint = $device->native_vector_width_half |
615 | =item $uint = $device->native_vector_width_half |
616 | |
616 | |
617 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF> and returns the result(s). |
617 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF> and returns the result. |
618 | |
618 | |
619 | =item $device_fp_config = $device->double_fp_config |
619 | =item $device_fp_config = $device->double_fp_config |
620 | |
620 | |
621 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_DOUBLE_FP_CONFIG> and returns the result(s). |
621 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_DOUBLE_FP_CONFIG> and returns the result. |
622 | |
622 | |
623 | =item $device_fp_config = $device->half_fp_config |
623 | =item $device_fp_config = $device->half_fp_config |
624 | |
624 | |
625 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_HALF_FP_CONFIG> and returns the result(s). |
625 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_HALF_FP_CONFIG> and returns the result. |
626 | |
626 | |
627 | =item $boolean = $device->host_unified_memory |
627 | =item $boolean = $device->host_unified_memory |
628 | |
628 | |
629 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_HOST_UNIFIED_MEMORY> and returns the result(s). |
629 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_HOST_UNIFIED_MEMORY> and returns the result. |
630 | |
630 | |
631 | =item $device = $device->parent_device_ext |
631 | =item $device = $device->parent_device_ext |
632 | |
632 | |
633 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PARENT_DEVICE_EXT> and returns the result(s). |
633 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PARENT_DEVICE_EXT> and returns the result. |
634 | |
634 | |
635 | =item @device_partition_property_exts = $device->partition_types_ext |
635 | =item @device_partition_property_exts = $device->partition_types_ext |
636 | |
636 | |
637 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PARTITION_TYPES_EXT> and returns the result(s). |
637 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PARTITION_TYPES_EXT> and returns the result. |
638 | |
638 | |
639 | =item @device_partition_property_exts = $device->affinity_domains_ext |
639 | =item @device_partition_property_exts = $device->affinity_domains_ext |
640 | |
640 | |
641 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_AFFINITY_DOMAINS_EXT> and returns the result(s). |
641 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_AFFINITY_DOMAINS_EXT> and returns the result. |
642 | |
642 | |
643 | =item $uint = $device->reference_count_ext |
643 | =item $uint = $device->reference_count_ext |
644 | |
644 | |
645 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_REFERENCE_COUNT_EXT > and returns the result(s). |
645 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_REFERENCE_COUNT_EXT > and returns the result. |
646 | |
646 | |
647 | =item @device_partition_property_exts = $device->partition_style_ext |
647 | =item @device_partition_property_exts = $device->partition_style_ext |
648 | |
648 | |
649 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PARTITION_STYLE_EXT> and returns the result(s). |
649 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_PARTITION_STYLE_EXT> and returns the result. |
650 | |
650 | |
651 | =for gengetinfo end device |
651 | =for gengetinfo end device |
652 | |
652 | |
653 | =back |
653 | =back |
654 | |
654 | |
… | |
… | |
717 | |
717 | |
718 | =for gengetinfo begin context |
718 | =for gengetinfo begin context |
719 | |
719 | |
720 | =item $uint = $context->reference_count |
720 | =item $uint = $context->reference_count |
721 | |
721 | |
722 | 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. |
723 | |
723 | |
724 | =item @devices = $context->devices |
724 | =item @devices = $context->devices |
725 | |
725 | |
726 | Calls C<clGetContextInfo> with C<CL_CONTEXT_DEVICES> and returns the result(s). |
726 | Calls C<clGetContextInfo> with C<CL_CONTEXT_DEVICES> and returns the result. |
727 | |
727 | |
728 | =item @property_ints = $context->properties |
728 | =item @property_ints = $context->properties |
729 | |
729 | |
730 | Calls C<clGetContextInfo> with C<CL_CONTEXT_PROPERTIES> and returns the result(s). |
730 | Calls C<clGetContextInfo> with C<CL_CONTEXT_PROPERTIES> and returns the result. |
731 | |
731 | |
732 | =item $uint = $context->num_devices |
732 | =item $uint = $context->num_devices |
733 | |
733 | |
734 | Calls C<clGetContextInfo> with C<CL_CONTEXT_NUM_DEVICES> and returns the result(s). |
734 | Calls C<clGetContextInfo> with C<CL_CONTEXT_NUM_DEVICES> and returns the result. |
735 | |
735 | |
736 | =for gengetinfo end context |
736 | =for gengetinfo end context |
737 | |
737 | |
738 | =back |
738 | =back |
739 | |
739 | |
… | |
… | |
849 | |
849 | |
850 | =for gengetinfo begin command_queue |
850 | =for gengetinfo begin command_queue |
851 | |
851 | |
852 | =item $ctx = $command_queue->context |
852 | =item $ctx = $command_queue->context |
853 | |
853 | |
854 | 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. |
855 | |
855 | |
856 | =item $device = $command_queue->device |
856 | =item $device = $command_queue->device |
857 | |
857 | |
858 | Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_DEVICE> and returns the result(s). |
858 | Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_DEVICE> and returns the result. |
859 | |
859 | |
860 | =item $uint = $command_queue->reference_count |
860 | =item $uint = $command_queue->reference_count |
861 | |
861 | |
862 | Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_REFERENCE_COUNT> and returns the result(s). |
862 | Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_REFERENCE_COUNT> and returns the result. |
863 | |
863 | |
864 | =item $command_queue_properties = $command_queue->properties |
864 | =item $command_queue_properties = $command_queue->properties |
865 | |
865 | |
866 | Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_PROPERTIES> and returns the result(s). |
866 | Calls C<clGetCommandQueueInfo> with C<CL_QUEUE_PROPERTIES> and returns the result. |
867 | |
867 | |
868 | =for gengetinfo end command_queue |
868 | =for gengetinfo end command_queue |
869 | |
869 | |
870 | =back |
870 | =back |
871 | |
871 | |
… | |
… | |
884 | |
884 | |
885 | =for gengetinfo begin mem |
885 | =for gengetinfo begin mem |
886 | |
886 | |
887 | =item $mem_object_type = $mem->type |
887 | =item $mem_object_type = $mem->type |
888 | |
888 | |
889 | 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. |
890 | |
890 | |
891 | =item $mem_flags = $mem->flags |
891 | =item $mem_flags = $mem->flags |
892 | |
892 | |
893 | Calls C<clGetMemObjectInfo> with C<CL_MEM_FLAGS> and returns the result(s). |
893 | Calls C<clGetMemObjectInfo> with C<CL_MEM_FLAGS> and returns the result. |
894 | |
894 | |
895 | =item $int = $mem->size |
895 | =item $int = $mem->size |
896 | |
896 | |
897 | Calls C<clGetMemObjectInfo> with C<CL_MEM_SIZE> and returns the result(s). |
897 | Calls C<clGetMemObjectInfo> with C<CL_MEM_SIZE> and returns the result. |
898 | |
898 | |
899 | =item $ptr_value = $mem->host_ptr |
899 | =item $ptr_value = $mem->host_ptr |
900 | |
900 | |
901 | Calls C<clGetMemObjectInfo> with C<CL_MEM_HOST_PTR> and returns the result(s). |
901 | Calls C<clGetMemObjectInfo> with C<CL_MEM_HOST_PTR> and returns the result. |
902 | |
902 | |
903 | =item $uint = $mem->map_count |
903 | =item $uint = $mem->map_count |
904 | |
904 | |
905 | Calls C<clGetMemObjectInfo> with C<CL_MEM_MAP_COUNT> and returns the result(s). |
905 | Calls C<clGetMemObjectInfo> with C<CL_MEM_MAP_COUNT> and returns the result. |
906 | |
906 | |
907 | =item $uint = $mem->reference_count |
907 | =item $uint = $mem->reference_count |
908 | |
908 | |
909 | Calls C<clGetMemObjectInfo> with C<CL_MEM_REFERENCE_COUNT> and returns the result(s). |
909 | Calls C<clGetMemObjectInfo> with C<CL_MEM_REFERENCE_COUNT> and returns the result. |
910 | |
910 | |
911 | =item $ctx = $mem->context |
911 | =item $ctx = $mem->context |
912 | |
912 | |
913 | Calls C<clGetMemObjectInfo> with C<CL_MEM_CONTEXT> and returns the result(s). |
913 | Calls C<clGetMemObjectInfo> with C<CL_MEM_CONTEXT> and returns the result. |
914 | |
914 | |
915 | =item $mem = $mem->associated_memobject |
915 | =item $mem = $mem->associated_memobject |
916 | |
916 | |
917 | Calls C<clGetMemObjectInfo> with C<CL_MEM_ASSOCIATED_MEMOBJECT> and returns the result(s). |
917 | Calls C<clGetMemObjectInfo> with C<CL_MEM_ASSOCIATED_MEMOBJECT> and returns the result. |
918 | |
918 | |
919 | =item $int = $mem->offset |
919 | =item $int = $mem->offset |
920 | |
920 | |
921 | Calls C<clGetMemObjectInfo> with C<CL_MEM_OFFSET> and returns the result(s). |
921 | Calls C<clGetMemObjectInfo> with C<CL_MEM_OFFSET> and returns the result. |
922 | |
922 | |
923 | =for gengetinfo end mem |
923 | =for gengetinfo end mem |
924 | |
924 | |
925 | =back |
925 | =back |
926 | |
926 | |
… | |
… | |
941 | |
941 | |
942 | =for gengetinfo begin image |
942 | =for gengetinfo begin image |
943 | |
943 | |
944 | =item $int = $image->element_size |
944 | =item $int = $image->element_size |
945 | |
945 | |
946 | 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. |
947 | |
947 | |
948 | =item $int = $image->row_pitch |
948 | =item $int = $image->row_pitch |
949 | |
949 | |
950 | Calls C<clGetImageInfo> with C<CL_IMAGE_ROW_PITCH> and returns the result(s). |
950 | Calls C<clGetImageInfo> with C<CL_IMAGE_ROW_PITCH> and returns the result. |
951 | |
951 | |
952 | =item $int = $image->slice_pitch |
952 | =item $int = $image->slice_pitch |
953 | |
953 | |
954 | Calls C<clGetImageInfo> with C<CL_IMAGE_SLICE_PITCH> and returns the result(s). |
954 | Calls C<clGetImageInfo> with C<CL_IMAGE_SLICE_PITCH> and returns the result. |
955 | |
955 | |
956 | =item $int = $image->width |
956 | =item $int = $image->width |
957 | |
957 | |
958 | Calls C<clGetImageInfo> with C<CL_IMAGE_WIDTH> and returns the result(s). |
958 | Calls C<clGetImageInfo> with C<CL_IMAGE_WIDTH> and returns the result. |
959 | |
959 | |
960 | =item $int = $image->height |
960 | =item $int = $image->height |
961 | |
961 | |
962 | Calls C<clGetImageInfo> with C<CL_IMAGE_HEIGHT> and returns the result(s). |
962 | Calls C<clGetImageInfo> with C<CL_IMAGE_HEIGHT> and returns the result. |
963 | |
963 | |
964 | =item $int = $image->depth |
964 | =item $int = $image->depth |
965 | |
965 | |
966 | Calls C<clGetImageInfo> with C<CL_IMAGE_DEPTH> and returns the result(s). |
966 | Calls C<clGetImageInfo> with C<CL_IMAGE_DEPTH> and returns the result. |
967 | |
967 | |
968 | =for gengetinfo end image |
968 | =for gengetinfo end image |
969 | |
969 | |
970 | =back |
970 | =back |
971 | |
971 | |
… | |
… | |
981 | |
981 | |
982 | =for gengetinfo begin sampler |
982 | =for gengetinfo begin sampler |
983 | |
983 | |
984 | =item $uint = $sampler->reference_count |
984 | =item $uint = $sampler->reference_count |
985 | |
985 | |
986 | 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. |
987 | |
987 | |
988 | =item $ctx = $sampler->context |
988 | =item $ctx = $sampler->context |
989 | |
989 | |
990 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_CONTEXT> and returns the result(s). |
990 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_CONTEXT> and returns the result. |
991 | |
991 | |
992 | =item $addressing_mode = $sampler->normalized_coords |
992 | =item $addressing_mode = $sampler->normalized_coords |
993 | |
993 | |
994 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_NORMALIZED_COORDS> and returns the result(s). |
994 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_NORMALIZED_COORDS> and returns the result. |
995 | |
995 | |
996 | =item $filter_mode = $sampler->addressing_mode |
996 | =item $filter_mode = $sampler->addressing_mode |
997 | |
997 | |
998 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_ADDRESSING_MODE> and returns the result(s). |
998 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_ADDRESSING_MODE> and returns the result. |
999 | |
999 | |
1000 | =item $boolean = $sampler->filter_mode |
1000 | =item $boolean = $sampler->filter_mode |
1001 | |
1001 | |
1002 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_FILTER_MODE> and returns the result(s). |
1002 | Calls C<clGetSamplerInfo> with C<CL_SAMPLER_FILTER_MODE> and returns the result. |
1003 | |
1003 | |
1004 | =for gengetinfo end sampler |
1004 | =for gengetinfo end sampler |
1005 | |
1005 | |
1006 | =back |
1006 | =back |
1007 | |
1007 | |
… | |
… | |
1031 | |
1031 | |
1032 | =for gengetinfo begin program_build |
1032 | =for gengetinfo begin program_build |
1033 | |
1033 | |
1034 | =item $build_status = $program->build_status ($device) |
1034 | =item $build_status = $program->build_status ($device) |
1035 | |
1035 | |
1036 | 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. |
1037 | |
1037 | |
1038 | =item $string = $program->build_options ($device) |
1038 | =item $string = $program->build_options ($device) |
1039 | |
1039 | |
1040 | Calls C<clGetProgramBuildInfo> with C<CL_PROGRAM_BUILD_OPTIONS> and returns the result(s). |
1040 | Calls C<clGetProgramBuildInfo> with C<CL_PROGRAM_BUILD_OPTIONS> and returns the result. |
1041 | |
1041 | |
1042 | =item $string = $program->build_log ($device) |
1042 | =item $string = $program->build_log ($device) |
1043 | |
1043 | |
1044 | Calls C<clGetProgramBuildInfo> with C<CL_PROGRAM_BUILD_LOG> and returns the result(s). |
1044 | Calls C<clGetProgramBuildInfo> with C<CL_PROGRAM_BUILD_LOG> and returns the result. |
1045 | |
1045 | |
1046 | =for gengetinfo end program_build |
1046 | =for gengetinfo end program_build |
1047 | |
1047 | |
1048 | =item $packed_value = $program->info ($name) |
1048 | =item $packed_value = $program->info ($name) |
1049 | |
1049 | |
… | |
… | |
1053 | |
1053 | |
1054 | =for gengetinfo begin program |
1054 | =for gengetinfo begin program |
1055 | |
1055 | |
1056 | =item $uint = $program->reference_count |
1056 | =item $uint = $program->reference_count |
1057 | |
1057 | |
1058 | 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. |
1059 | |
1059 | |
1060 | =item $ctx = $program->context |
1060 | =item $ctx = $program->context |
1061 | |
1061 | |
1062 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_CONTEXT> and returns the result(s). |
1062 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_CONTEXT> and returns the result. |
1063 | |
1063 | |
1064 | =item $uint = $program->num_devices |
1064 | =item $uint = $program->num_devices |
1065 | |
1065 | |
1066 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_NUM_DEVICES> and returns the result(s). |
1066 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_NUM_DEVICES> and returns the result. |
1067 | |
1067 | |
1068 | =item @devices = $program->devices |
1068 | =item @devices = $program->devices |
1069 | |
1069 | |
1070 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_DEVICES> and returns the result(s). |
1070 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_DEVICES> and returns the result. |
1071 | |
1071 | |
1072 | =item $string = $program->source |
1072 | =item $string = $program->source |
1073 | |
1073 | |
1074 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_SOURCE> and returns the result(s). |
1074 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_SOURCE> and returns the result. |
1075 | |
1075 | |
1076 | =item @ints = $program->binary_sizes |
1076 | =item @ints = $program->binary_sizes |
1077 | |
1077 | |
1078 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_BINARY_SIZES> and returns the result(s). |
1078 | Calls C<clGetProgramInfo> with C<CL_PROGRAM_BINARY_SIZES> and returns the result. |
1079 | |
1079 | |
1080 | =for gengetinfo end program |
1080 | =for gengetinfo end program |
1081 | |
1081 | |
1082 | =item @blobs = $program->binaries |
1082 | =item @blobs = $program->binaries |
1083 | |
1083 | |
… | |
… | |
1104 | |
1104 | |
1105 | =for gengetinfo begin kernel |
1105 | =for gengetinfo begin kernel |
1106 | |
1106 | |
1107 | =item $string = $kernel->function_name |
1107 | =item $string = $kernel->function_name |
1108 | |
1108 | |
1109 | Calls C<clGetKernelInfo> with C<CL_KERNEL_FUNCTION_NAME> and returns the result(s). |
1109 | Calls C<clGetKernelInfo> with C<CL_KERNEL_FUNCTION_NAME> and returns the result. |
1110 | |
1110 | |
1111 | =item $uint = $kernel->num_args |
1111 | =item $uint = $kernel->num_args |
1112 | |
1112 | |
1113 | Calls C<clGetKernelInfo> with C<CL_KERNEL_NUM_ARGS> and returns the result(s). |
1113 | Calls C<clGetKernelInfo> with C<CL_KERNEL_NUM_ARGS> and returns the result. |
1114 | |
1114 | |
1115 | =item $uint = $kernel->reference_count |
1115 | =item $uint = $kernel->reference_count |
1116 | |
1116 | |
1117 | Calls C<clGetKernelInfo> with C<CL_KERNEL_REFERENCE_COUNT> and returns the result(s). |
1117 | Calls C<clGetKernelInfo> with C<CL_KERNEL_REFERENCE_COUNT> and returns the result. |
1118 | |
1118 | |
1119 | =item $ctx = $kernel->context |
1119 | =item $ctx = $kernel->context |
1120 | |
1120 | |
1121 | Calls C<clGetKernelInfo> with C<CL_KERNEL_CONTEXT> and returns the result(s). |
1121 | Calls C<clGetKernelInfo> with C<CL_KERNEL_CONTEXT> and returns the result. |
1122 | |
1122 | |
1123 | =item $program = $kernel->program |
1123 | =item $program = $kernel->program |
1124 | |
1124 | |
1125 | Calls C<clGetKernelInfo> with C<CL_KERNEL_PROGRAM> and returns the result(s). |
1125 | Calls C<clGetKernelInfo> with C<CL_KERNEL_PROGRAM> and returns the result. |
1126 | |
1126 | |
1127 | =for gengetinfo end kernel |
1127 | =for gengetinfo end kernel |
1128 | |
1128 | |
1129 | =item $packed_value = $kernel->work_group_info ($device, $name) |
1129 | =item $packed_value = $kernel->work_group_info ($device, $name) |
1130 | |
1130 | |
… | |
… | |
1137 | |
1137 | |
1138 | =for gengetinfo begin kernel_work_group |
1138 | =for gengetinfo begin kernel_work_group |
1139 | |
1139 | |
1140 | =item $int = $kernel->work_group_size ($device) |
1140 | =item $int = $kernel->work_group_size ($device) |
1141 | |
1141 | |
1142 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_WORK_GROUP_SIZE> and returns the result(s). |
1142 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_WORK_GROUP_SIZE> and returns the result. |
1143 | |
1143 | |
1144 | =item @ints = $kernel->compile_work_group_size ($device) |
1144 | =item @ints = $kernel->compile_work_group_size ($device) |
1145 | |
1145 | |
1146 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_COMPILE_WORK_GROUP_SIZE> and returns the result(s). |
1146 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_COMPILE_WORK_GROUP_SIZE> and returns the result. |
1147 | |
1147 | |
1148 | =item $ulong = $kernel->local_mem_size ($device) |
1148 | =item $ulong = $kernel->local_mem_size ($device) |
1149 | |
1149 | |
1150 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_LOCAL_MEM_SIZE> and returns the result(s). |
1150 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_LOCAL_MEM_SIZE> and returns the result. |
1151 | |
1151 | |
1152 | =item $int = $kernel->preferred_work_group_size_multiple ($device) |
1152 | =item $int = $kernel->preferred_work_group_size_multiple ($device) |
1153 | |
1153 | |
1154 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE> and returns the result(s). |
1154 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE> and returns the result. |
1155 | |
1155 | |
1156 | =item $ulong = $kernel->private_mem_size ($device) |
1156 | =item $ulong = $kernel->private_mem_size ($device) |
1157 | |
1157 | |
1158 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_PRIVATE_MEM_SIZE> and returns the result(s). |
1158 | Calls C<clGetKernelWorkGroupInfo> with C<CL_KERNEL_PRIVATE_MEM_SIZE> and returns the result. |
1159 | |
1159 | |
1160 | =for gengetinfo end kernel_work_group |
1160 | =for gengetinfo end kernel_work_group |
1161 | |
1161 | |
1162 | =item $kernel->set_TYPE ($index, $value) |
1162 | =item $kernel->set_TYPE ($index, $value) |
1163 | |
1163 | |
… | |
… | |
1197 | |
1197 | |
1198 | =for gengetinfo begin event |
1198 | =for gengetinfo begin event |
1199 | |
1199 | |
1200 | =item $queue = $event->command_queue |
1200 | =item $queue = $event->command_queue |
1201 | |
1201 | |
1202 | Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_QUEUE> and returns the result(s). |
1202 | Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_QUEUE> and returns the result. |
1203 | |
1203 | |
1204 | =item $command_type = $event->command_type |
1204 | =item $command_type = $event->command_type |
1205 | |
1205 | |
1206 | Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_TYPE> and returns the result(s). |
1206 | Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_TYPE> and returns the result. |
1207 | |
1207 | |
1208 | =item $uint = $event->reference_count |
1208 | =item $uint = $event->reference_count |
1209 | |
1209 | |
1210 | Calls C<clGetEventInfo> with C<CL_EVENT_REFERENCE_COUNT> and returns the result(s). |
1210 | Calls C<clGetEventInfo> with C<CL_EVENT_REFERENCE_COUNT> and returns the result. |
1211 | |
1211 | |
1212 | =item $uint = $event->command_execution_status |
1212 | =item $uint = $event->command_execution_status |
1213 | |
1213 | |
1214 | Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_EXECUTION_STATUS> and returns the result(s). |
1214 | Calls C<clGetEventInfo> with C<CL_EVENT_COMMAND_EXECUTION_STATUS> and returns the result. |
1215 | |
1215 | |
1216 | =item $ctx = $event->context |
1216 | =item $ctx = $event->context |
1217 | |
1217 | |
1218 | Calls C<clGetEventInfo> with C<CL_EVENT_CONTEXT> and returns the result(s). |
1218 | Calls C<clGetEventInfo> with C<CL_EVENT_CONTEXT> and returns the result. |
1219 | |
1219 | |
1220 | =for gengetinfo end event |
1220 | =for gengetinfo end event |
1221 | |
1221 | |
1222 | =item $packed_value = $ev->profiling_info ($name) |
1222 | =item $packed_value = $ev->profiling_info ($name) |
1223 | |
1223 | |
… | |
… | |
1230 | |
1230 | |
1231 | =for gengetinfo begin profiling |
1231 | =for gengetinfo begin profiling |
1232 | |
1232 | |
1233 | =item $ulong = $event->profiling_command_queued |
1233 | =item $ulong = $event->profiling_command_queued |
1234 | |
1234 | |
1235 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_QUEUED> and returns the result(s). |
1235 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_QUEUED> and returns the result. |
1236 | |
1236 | |
1237 | =item $ulong = $event->profiling_command_submit |
1237 | =item $ulong = $event->profiling_command_submit |
1238 | |
1238 | |
1239 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_SUBMIT> and returns the result(s). |
1239 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_SUBMIT> and returns the result. |
1240 | |
1240 | |
1241 | =item $ulong = $event->profiling_command_start |
1241 | =item $ulong = $event->profiling_command_start |
1242 | |
1242 | |
1243 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_START> and returns the result(s). |
1243 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_START> and returns the result. |
1244 | |
1244 | |
1245 | =item $ulong = $event->profiling_command_end |
1245 | =item $ulong = $event->profiling_command_end |
1246 | |
1246 | |
1247 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_END> and returns the result(s). |
1247 | Calls C<clGetEventProfilingInfo> with C<CL_PROFILING_COMMAND_END> and returns the result. |
1248 | |
1248 | |
1249 | =for gengetinfo end profiling |
1249 | =for gengetinfo end profiling |
1250 | |
1250 | |
1251 | =back |
1251 | =back |
1252 | |
1252 | |