diff options
author | Alexandru Nemes <alexandru.nemes@enea.com> | 2017-06-02 13:26:30 +0300 |
---|---|---|
committer | Alexandru Nemes <alexandru.nemes@enea.com> | 2017-06-06 14:36:27 +0000 |
commit | fd2b3173d21d34720f714e7e6358dafe7d1ada12 (patch) | |
tree | 5c945670fb20d02967b61e727392a62a533e5098 /yardstick/benchmark/scenarios/compute/lmbench_latency_benchmark.bash | |
parent | 1f5e2b8f41417d38ae06af1f52cbbc123c0986e3 (diff) |
Adapt lmbench scripts for aarch64 nodes
LMBench shell scripts were invoking x86_64 executables.
This made them fail when executed on aarch64 nodes.
Added architecture detection and proper command call.
JIRA: ARMBAND-268
Change-Id: I8c9e87158631f7f5479adc2fda9558f9f7e54406
Signed-off-by: Alexandru Nemes <alexandru.nemes@enea.com>
Diffstat (limited to 'yardstick/benchmark/scenarios/compute/lmbench_latency_benchmark.bash')
-rw-r--r-- | yardstick/benchmark/scenarios/compute/lmbench_latency_benchmark.bash | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/yardstick/benchmark/scenarios/compute/lmbench_latency_benchmark.bash b/yardstick/benchmark/scenarios/compute/lmbench_latency_benchmark.bash index 04e3c1a9d..b45470666 100644 --- a/yardstick/benchmark/scenarios/compute/lmbench_latency_benchmark.bash +++ b/yardstick/benchmark/scenarios/compute/lmbench_latency_benchmark.bash @@ -19,6 +19,8 @@ SIZE=$1 shift STRIDE=$1 +NODE_CPU_ARCH="$(uname -m)" + # write the result to stdout in json format output_json() { @@ -37,5 +39,8 @@ output_json() echo ] } -/usr/lib/lmbench/bin/x86_64-linux-gnu/lat_mem_rd $SIZE $STRIDE 2>&1 | output_json - +if [ "${NODE_CPU_ARCH}" == "aarch64" ]; then + /usr/lib/lmbench/bin/lat_mem_rd $SIZE $STRIDE 2>&1 | output_json +else + /usr/lib/lmbench/bin/x86_64-linux-gnu/lat_mem_rd $SIZE $STRIDE 2>&1 | output_json +fi |