mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 18:21:14 +00:00
framework/rt_config: Fix not being able to turn off all cpus in cluster
Add missing equality sign in constraint for runtime parameters.
This commit is contained in:
parent
60c16c802f
commit
3cf789e352
@ -118,7 +118,7 @@ class HotplugRuntimeConfig(RuntimeConfig):
|
|||||||
self._runtime_params[param_name] = \
|
self._runtime_params[param_name] = \
|
||||||
RuntimeParameter(param_name, kind=int,
|
RuntimeParameter(param_name, kind=int,
|
||||||
constraint=lambda x:
|
constraint=lambda x:
|
||||||
0 < x <= self.target.number_of_cpus,
|
0 <= x <= self.target.number_of_cpus,
|
||||||
description="""
|
description="""
|
||||||
The number of cpu cores to be online
|
The number of cpu cores to be online
|
||||||
""",
|
""",
|
||||||
@ -130,7 +130,7 @@ class HotplugRuntimeConfig(RuntimeConfig):
|
|||||||
self._runtime_params[param_name] = \
|
self._runtime_params[param_name] = \
|
||||||
RuntimeParameter(param_name, kind=int,
|
RuntimeParameter(param_name, kind=int,
|
||||||
constraint=lambda x, name=name:
|
constraint=lambda x, name=name:
|
||||||
0 < x <= len(self.target.core_cpus(name)),
|
0 <= x <= len(self.target.core_cpus(name)),
|
||||||
description="""
|
description="""
|
||||||
The number of {} cores to be online
|
The number of {} cores to be online
|
||||||
""".format(name),
|
""".format(name),
|
||||||
@ -153,7 +153,7 @@ class HotplugRuntimeConfig(RuntimeConfig):
|
|||||||
self._runtime_params[param_name] = \
|
self._runtime_params[param_name] = \
|
||||||
RuntimeParameter(param_name, kind=int,
|
RuntimeParameter(param_name, kind=int,
|
||||||
constraint=lambda x, cluster=cluster:
|
constraint=lambda x, cluster=cluster:
|
||||||
0 < x <= len(resolve_cpus(cluster, self.target)),
|
0 <= x <= len(resolve_cpus(cluster, self.target)),
|
||||||
description="""
|
description="""
|
||||||
The number of cores on the {} cluster to be online
|
The number of cores on the {} cluster to be online
|
||||||
""".format(cluster),
|
""".format(cluster),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user