Flags

Details

class Ufo.DeviceType(value)

Bases: GLib.Flags

Types of OpenCL devices to query for. See Ufo.Resources:”device-type”.

CPU = 1

Only CPU devices

GPU = 2

Only GPU devices

ACC = 4

Only accelerator devices such as Xeon Phi

ALL = 7

All devices

class Ufo.TaskMode(value)

Bases: GLib.Flags

Task modes describe how a task operates considering the input data.

INVALID = 0

invalid

PROCESSOR = 1

one-by-one processing

TYPE_MASK = 15

mask to get type from Ufo.TaskMode

CPU = 16

runs on CPU

GENERATOR = 2

do not receive any data but produce a stream.

GPU = 32

runs on GPU

REDUCTOR = 4

receive fininite stream and generate a reduced stream

PROCESSOR_MASK = 48

mask to get processor from Ufo.TaskMode

SHARE_DATA = 64

sibling tasks share the same input data

SINK = 8

receives data but does not produce any,

class Ufo.TraceEventType(value)

Bases: GLib.Flags

PROCESS = 1

A process event

GENERATE = 2

A generate event

BEGIN = 4

Beginning of an event

END = 8

End of an event