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_bandwidth_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_bandwidth_benchmark.bash')
-rw-r--r-- | yardstick/benchmark/scenarios/compute/lmbench_bandwidth_benchmark.bash | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/yardstick/benchmark/scenarios/compute/lmbench_bandwidth_benchmark.bash b/yardstick/benchmark/scenarios/compute/lmbench_bandwidth_benchmark.bash index 09993a088..714207b0d 100644 --- a/yardstick/benchmark/scenarios/compute/lmbench_bandwidth_benchmark.bash +++ b/yardstick/benchmark/scenarios/compute/lmbench_bandwidth_benchmark.bash @@ -19,6 +19,8 @@ SIZE=$1 TEST_NAME=$2 WARMUP=$3 +NODE_CPU_ARCH="$(uname -m)" + # write the result to stdout in json format output_json() { @@ -26,4 +28,8 @@ output_json() echo $DATA | awk '/ /{printf "{\"size(MB)\": %s, \"bandwidth(MBps)\": %s}", $1, $2}' } -/usr/lib/lmbench/bin/x86_64-linux-gnu/bw_mem -W $WARMUP ${SIZE}k $TEST_NAME 2>&1 | output_json
\ No newline at end of file +if [ "${NODE_CPU_ARCH}" == "aarch64" ]; then + /usr/lib/lmbench/bin/bw_mem -W $WARMUP ${SIZE}k $TEST_NAME 2>&1 | output_json +else + /usr/lib/lmbench/bin/x86_64-linux-gnu/bw_mem -W $WARMUP ${SIZE}k $TEST_NAME 2>&1 | output_json +fi |