Merge "improve tc055 results"
[yardstick.git] / yardstick / benchmark / scenarios / compute / lmbench_latency_benchmark.bash
index 04e3c1a..b454706 100644 (file)
@@ -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