… | |
… | |
750 | |
750 | |
751 | =item @device_partition_property_exts = $device->affinity_domains_ext |
751 | =item @device_partition_property_exts = $device->affinity_domains_ext |
752 | |
752 | |
753 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_AFFINITY_DOMAINS_EXT> and returns the result. |
753 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_AFFINITY_DOMAINS_EXT> and returns the result. |
754 | |
754 | |
755 | =item $uint = $device->reference_count_ext |
755 | =item $uint = $device->reference_count_ext |
756 | |
756 | |
757 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_REFERENCE_COUNT_EXT > and returns the result. |
757 | Calls C<clGetDeviceInfo> with C<CL_DEVICE_REFERENCE_COUNT_EXT > and returns the result. |
758 | |
758 | |
759 | =item @device_partition_property_exts = $device->partition_style_ext |
759 | =item @device_partition_property_exts = $device->partition_style_ext |
760 | |
760 | |
… | |
… | |
771 | =item $queue = $ctx->queue ($device, $properties) |
771 | =item $queue = $ctx->queue ($device, $properties) |
772 | |
772 | |
773 | Create a new OpenCL::Queue object from the context and the given device. |
773 | Create a new OpenCL::Queue object from the context and the given device. |
774 | |
774 | |
775 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateCommandQueue.html> |
775 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateCommandQueue.html> |
|
|
776 | |
|
|
777 | Example: create an out-of-order queue. |
|
|
778 | |
|
|
779 | $queue = $ctx->queue ($device, OpenCL::QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE); |
776 | |
780 | |
777 | =item $ev = $ctx->user_event |
781 | =item $ev = $ctx->user_event |
778 | |
782 | |
779 | Creates a new OpenCL::UserEvent object. |
783 | Creates a new OpenCL::UserEvent object. |
780 | |
784 | |
… | |
… | |
891 | for completion, unless the method is called in void context, in which case |
895 | for completion, unless the method is called in void context, in which case |
892 | no event object is created. |
896 | no event object is created. |
893 | |
897 | |
894 | They also allow you to specify any number of other event objects that this |
898 | They also allow you to specify any number of other event objects that this |
895 | request has to wait for before it starts executing, by simply passing the |
899 | request has to wait for before it starts executing, by simply passing the |
896 | event objects as extra parameters to the enqueue methods. |
900 | event objects as extra parameters to the enqueue methods. To simplify |
|
|
901 | program design, this module ignores any C<undef> values in the list of |
|
|
902 | events. This makes it possible to code operations such as this, without |
|
|
903 | having to put a valid event object into C<$event> first: |
|
|
904 | |
|
|
905 | $event = $queue->enqueue_xxx (..., $event); |
897 | |
906 | |
898 | Queues execute in-order by default, without any parallelism, so in most |
907 | Queues execute in-order by default, without any parallelism, so in most |
899 | cases (i.e. you use only one queue) it's not necessary to wait for or |
908 | cases (i.e. you use only one queue) it's not necessary to wait for or |
900 | create event objects. |
909 | create event objects, althoguh an our of order queue is often a bit |
|
|
910 | faster. |
901 | |
911 | |
902 | =over 4 |
912 | =over 4 |
903 | |
913 | |
904 | =item $ev = $queue->enqueue_read_buffer ($buffer, $blocking, $offset, $len, $data, $wait_events...) |
914 | =item $ev = $queue->enqueue_read_buffer ($buffer, $blocking, $offset, $len, $data, $wait_events...) |
905 | |
915 | |