Ufo.BaseScheduler¶
- Subclasses:
Ufo.FixedScheduler,Ufo.GroupScheduler,Ufo.LocalScheduler,Ufo.Scheduler
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Enable and write profile traces |
||
r/w |
Expand the task graph for better multi GPU performance |
||
r |
Maximum inputs per task |
||
r |
Finished execution time in seconds |
||
r/w |
Enable generating timestamp metadata |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Ufo.BaseScheduler(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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.
- abort()¶
- get_resources()¶
- Raises:
- Returns:
the currently associated
Ufo.Resourcesobject.- Return type:
Get the current
Ufo.Resourcescurrently associated with self.
- run(task_graph)¶
- Parameters:
task_graph (
Ufo.TaskGraph) –- Raises:
- set_gpu_nodes(gpu_nodes)¶
- Parameters:
gpu_nodes ([
Ufo.GpuNode]) – A list ofUfo.GpuNodeobjects.
Sets the GPU nodes that self can only use. Note, that the
Ufo.GpuNodeobjects must be from the same #UfoArchGraph that is returned byUfo.BaseScheduler.get_resources().
- set_resources(resources)¶
- Parameters:
resources (
Ufo.Resources) – AUfo.Resourcesobject
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¶
-
Enable and write profile traces
- Ufo.BaseScheduler.props.expand¶
-
Expand the task graph for better multi GPU performance
- Ufo.BaseScheduler.props.max_input_nodes¶
-
Maximum inputs per task
- Ufo.BaseScheduler.props.time¶
-
Finished execution time in seconds