… | |
… | |
552 | |
552 | |
553 | Returns all available OpenCL::Platform objects. |
553 | Returns all available OpenCL::Platform objects. |
554 | |
554 | |
555 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetPlatformIDs.html> |
555 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetPlatformIDs.html> |
556 | |
556 | |
557 | =item $ctx = OpenCL::context_from_type $properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $notify = $print_stderr |
557 | =item $ctx = OpenCL::context_from_type $properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $callback->($err, $pvt) = $print_stderr |
558 | |
558 | |
559 | Tries to create a context from a default device and platform - never worked for me. |
559 | Tries to create a context from a default device and platform type - never worked for me. |
560 | |
560 | |
561 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> |
561 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> |
|
|
562 | |
|
|
563 | =item $ctx = OpenCL::context $properties, \@devices, $callback->($err, $pvt) = $print_stderr) |
|
|
564 | |
|
|
565 | Create a new OpenCL::Context object using the given device object(s). This |
|
|
566 | function isn't implemented yet, use C<< $platform->context >> instead. |
|
|
567 | |
|
|
568 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> |
562 | |
569 | |
563 | =item OpenCL::wait_for_events $wait_events... |
570 | =item OpenCL::wait_for_events $wait_events... |
564 | |
571 | |
565 | Waits for all events to complete. |
572 | Waits for all events to complete. |
566 | |
573 | |
… | |
… | |
636 | |
643 | |
637 | =item @devices = $platform->devices ($type = OpenCL::DEVICE_TYPE_ALL) |
644 | =item @devices = $platform->devices ($type = OpenCL::DEVICE_TYPE_ALL) |
638 | |
645 | |
639 | Returns a list of matching OpenCL::Device objects. |
646 | Returns a list of matching OpenCL::Device objects. |
640 | |
647 | |
641 | =item $ctx = $platform->context_from_type ($properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $notify = $print_stderr) |
648 | =item $ctx = $platform->context_from_type ($properties, $type = OpenCL::DEVICE_TYPE_DEFAULT, $callback->($err, $pvt) = $print_stderr) |
642 | |
649 | |
643 | Tries to create a context. Never worked for me, and you need devices explicitly anyway. |
650 | Tries to create a context. Never worked for me, and you need devices explicitly anyway. |
644 | |
651 | |
645 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> |
652 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> |
646 | |
653 | |
647 | =item $ctx = $platform->context ($properties, @$devices, $notify = $print_stderr) |
654 | =item $ctx = $platform->context ($properties, \@devices, $callback->($err, $pvt) = $print_stderr) |
648 | |
655 | |
649 | Create a new OpenCL::Context object using the given device object(s)- a |
656 | Create a new OpenCL::Context object using the given device object(s)- a |
650 | CL_CONTEXT_PLATFORM property is supplied automatically. |
657 | CL_CONTEXT_PLATFORM property is supplied automatically. |
651 | |
658 | |
652 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> |
659 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> |