mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00: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:
parent
47ec0c7720
commit
a23c896647
@ -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):
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user