mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-21 02:00:49 +01:00
Merge pull request #471 from setrofim/master
spec2000: fix cpumask for genric
This commit is contained in:
commit
ea05022f5f
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#pylint: disable=E1101,W0201
|
#pylint: disable=E1101,W0201
|
||||||
|
import operator
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
@ -278,6 +279,10 @@ class Spec2000(Workload):
|
|||||||
commandspec = CommandSpec()
|
commandspec = CommandSpec()
|
||||||
commandspec.command = bench.command_template.substitute({'binary': binary})
|
commandspec.command = bench.command_template.substitute({'binary': binary})
|
||||||
commandspec.datadir = datadir
|
commandspec.datadir = datadir
|
||||||
|
if cpu == 'generic':
|
||||||
|
all_cpus = reduce(operator.add, cpumap.values())
|
||||||
|
commandspec.cpumask = get_cpu_mask(all_cpus)
|
||||||
|
else:
|
||||||
commandspec.cpumask = get_cpu_mask(cpumap[cpu])
|
commandspec.cpumask = get_cpu_mask(cpumap[cpu])
|
||||||
cmdspecs.append(commandspec)
|
cmdspecs.append(commandspec)
|
||||||
return cmdspecs
|
return cmdspecs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user