GoclQueue

GoclQueue — Object that represents an OpenCL command queue

Stability Level

Unstable, unless otherwise indicated

Functions

Properties

GoclDevice * device Read / Write / Construct Only
guint flags Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GoclQueue

Description

A GoclQueue represents an OpenCL command queue that is created from a device, using gocl_device_get_default_queue(). Currently, there is no API for creating command queues directly, but that can change as soon as practical use cases require it.

For API simplicity, operations on a command queue are handled elsewhere, like gocl_kernel_run_in_device(), which internally enqueues the execution; or gocl_buffer_read_sync() and gocl_buffer_write_sync(), which internally enqueues read/write operations on the command queue.

Functions

gocl_queue_get_flags ()

guint
gocl_queue_get_flags (GoclQueue *self);

Retrieves the properties of this command queue, as an OR'ed set of values from GoclQueueFlags.

Parameters

self

The GoclQueue

 

Returns

The flags (properties) of the command queue

Types and Values

Property Details

The “device” property

  “device”                   GoclDevice *

The device this queue belongs to.

Flags: Read / Write / Construct Only


The “flags” property

  “flags”                    guint

The command queue properties.

Flags: Read / Write / Construct Only

Allowed values: <= 2

Default value: 0