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 |
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.Resources
object.- Return type:
Get the current
Ufo.Resources
currently 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.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 byUfo.BaseScheduler.get_resources
().
- set_resources(resources)¶
- Parameters:
resources (
Ufo.Resources
) – AUfo.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¶
-
Enable and write profile traces
- Ufo.BaseScheduler.props.expand¶
-
Expand the task graph for better multi GPU performance
- Ufo.BaseScheduler.props.time¶
-
Finished execution time in seconds