mirror of
https://github.com/ARM-software/workload-automation.git
synced 2024-10-06 02:41:11 +01:00
framework/config: Rename by_spec
to by_workload
execution order
Rename the `by_spec` execution order to `by_workload` and update description for clarification.
This commit is contained in:
parent
bea36cc398
commit
d3ca3e9621
@ -547,7 +547,7 @@ class RunConfiguration(Configuration):
|
|||||||
'execution_order',
|
'execution_order',
|
||||||
kind=str,
|
kind=str,
|
||||||
default='by_iteration',
|
default='by_iteration',
|
||||||
allowed_values=['by_iteration', 'by_spec', 'by_section', 'random'],
|
allowed_values=['by_iteration', 'by_section', 'by_workload', 'random'],
|
||||||
description='''
|
description='''
|
||||||
Defines the order in which the agenda spec will be executed. At the
|
Defines the order in which the agenda spec will be executed. At the
|
||||||
moment, the following execution orders are supported:
|
moment, the following execution orders are supported:
|
||||||
@ -572,9 +572,11 @@ class RunConfiguration(Configuration):
|
|||||||
|
|
||||||
X.A1, X.B1, Y.A1, Y.B1, X.A2, X.B2, Y.A2, Y.B2
|
X.A1, X.B1, Y.A1, Y.B1, X.A2, X.B2, Y.A2, Y.B2
|
||||||
|
|
||||||
``"by_spec"``
|
``"by_workload"``
|
||||||
All iterations of the first spec are executed before moving on
|
All iterations of the first spec are executed before moving on
|
||||||
to the next spec. E.g. A1 A2 A3 B1 C1 C2.
|
to the next spec. E.g::
|
||||||
|
|
||||||
|
X.A1, X.A2, Y.A1, Y.A2, X.B1, X.B2, Y.B1, Y.B2
|
||||||
|
|
||||||
``"random"``
|
``"random"``
|
||||||
Execution order is entirely random.
|
Execution order is entirely random.
|
||||||
|
@ -125,7 +125,7 @@ class ConfigManager(object):
|
|||||||
self._jobs_generated = True
|
self._jobs_generated = True
|
||||||
|
|
||||||
|
|
||||||
def permute_by_job(specs):
|
def permute_by_workload(specs):
|
||||||
"""
|
"""
|
||||||
This is that "classic" implementation that executes all iterations of a
|
This is that "classic" implementation that executes all iterations of a
|
||||||
workload spec before proceeding onto the next spec.
|
workload spec before proceeding onto the next spec.
|
||||||
@ -205,7 +205,7 @@ def permute_randomly(specs):
|
|||||||
|
|
||||||
permute_map = {
|
permute_map = {
|
||||||
'by_iteration': permute_by_iteration,
|
'by_iteration': permute_by_iteration,
|
||||||
'by_job': permute_by_job,
|
'by_workload': permute_by_workload,
|
||||||
'by_section': permute_by_section,
|
'by_section': permute_by_section,
|
||||||
'random': permute_randomly,
|
'random': permute_randomly,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user