1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

wa/workloads: Update to use threads parameter

Update workloads to use `threads` parameter to try and keep
configuration more consistent across workloads.
This commit is contained in:
Marc Bonnici 2018-05-11 14:01:08 +01:00 committed by setrofim
parent 47ec0c7720
commit a23c896647
2 changed files with 5 additions and 4 deletions

View File

@ -148,8 +148,9 @@ class Meabo(Workload):
default=range(1, 11),
),
Parameter(
'num_threads',
'threads',
kind=int,
aliases=['num_threads'],
description='''
Controls how many threads the application will be using.
''',
@ -227,7 +228,7 @@ class Meabo(Workload):
('-x', 'num_palindromes'),
('-p', 'num_particles'),
('-R', 'num_randomloc'),
('-T', 'num_threads'),
('-T', 'threads'),
]
def validate(self):

View File

@ -58,7 +58,7 @@ class Sysbench(Workload):
Parameter('test', kind=str, default='cpu',
allowed_values=['fileio', 'cpu', 'memory', 'threads', 'mutex'],
description='sysbench test to run'),
Parameter('num_threads', kind=int, default=8,
Parameter('threads', kind=int, default=8, aliases=['num_threads'],
description='''
The number of threads sysbench will launch.
'''),
@ -112,7 +112,7 @@ class Sysbench(Workload):
def setup(self, context):
self.host_results_file = None
params = dict(test=self.test,
num_threads=self.num_threads)
num_threads=self.threads)
if self.max_requests:
params['max_requests'] = self.max_requests
if self.max_time: