Ufo.BaseScheduler

g GObject.GInterface GObject.GInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object Ufo.BaseScheduler Ufo.BaseScheduler GObject.Object->Ufo.BaseScheduler Gio.Initable->Ufo.BaseScheduler

Subclasses:

Ufo.FixedScheduler, Ufo.GroupScheduler, Ufo.LocalScheduler, Ufo.Scheduler

Methods

Inherited:

GObject.Object (37), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

abort ()

get_resources ()

run (task_graph)

set_gpu_nodes (gpu_nodes)

set_resources (resources)

Virtual Methods

Inherited:

GObject.Object (7), Gio.Initable (1)

do_abort ()

do_run (graph)

Properties

Name

Type

Flags

Short Description

enable-tracing

bool

r/w

Enable and write profile traces

expand

bool

r/w

Expand the task graph for better multi GPU performance

time

float

r

Finished execution time in seconds

timestamps

bool

r/w

Enable generating timestamp metadata

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Ufo.BaseScheduler(**kwargs)
Bases:

GObject.Object, Gio.Initable

Abstract:

No

Structure:

Ufo.BaseSchedulerClass

The base class scheduler is responsible of assigning command queues to filters (thus managing GPU device resources) and decide if to run a GPU or a CPU. The actual schedule planning can be overriden.

classmethod error_quark()
Return type:

int

abort()
get_resources()
Raises:

GLib.Error

Returns:

the currently associated Ufo.Resources object.

Return type:

Ufo.Resources

Get the current Ufo.Resources currently associated with self.

run(task_graph)
Parameters:

task_graph (Ufo.TaskGraph) –

Raises:

GLib.Error

set_gpu_nodes(gpu_nodes)
Parameters:

gpu_nodes ([Ufo.GpuNode]) – A list of Ufo.GpuNode objects.

Sets the GPU nodes that self can only use. Note, that the Ufo.GpuNode objects must be from the same #UfoArchGraph that is returned by Ufo.BaseScheduler.get_resources().

set_resources(resources)
Parameters:

resources (Ufo.Resources) – A Ufo.Resources object

Assigns resources to self for specific use cases.

do_abort() virtual
do_run(graph) virtual
Parameters:

graph (Ufo.TaskGraph) –

Property Details

Ufo.BaseScheduler.props.enable_tracing
Name:

enable-tracing

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Enable and write profile traces

Ufo.BaseScheduler.props.expand
Name:

expand

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE

Expand the task graph for better multi GPU performance

Ufo.BaseScheduler.props.time
Name:

time

Type:

float

Default Value:

0.0

Flags:

READABLE

Finished execution time in seconds

Ufo.BaseScheduler.props.timestamps
Name:

timestamps

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Enable generating timestamp metadata