diff options
author | Chase Qi <chase.qi@linaro.org> | 2016-10-28 15:17:30 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2016-10-28 10:47:37 +0000 |
commit | df73087277c1062ae6d1d7f781d5a5a386681ced (patch) | |
tree | 1e1ddbe10f8228d63122882448bcc4f1841ce17b /automated | |
parent | fdb9d92e1720066bc1af426a8098998dc292a412 (diff) |
v2: linux: add stream uniprocessor test
Change-Id: I9777b61faa63753c8890a4b3197118e82189320d
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated')
-rw-r--r-- | automated/linux/stream/bin/LICENSE.txt | 34 | ||||
-rw-r--r-- | automated/linux/stream/bin/README | 4 | ||||
-rwxr-xr-x | automated/linux/stream/bin/arm64/stream | bin | 0 -> 643496 bytes | |||
-rwxr-xr-x | automated/linux/stream/bin/armeabi/stream | bin | 0 -> 471800 bytes | |||
-rwxr-xr-x | automated/linux/stream/stream-uniprocessor.sh | 22 | ||||
-rw-r--r-- | automated/linux/stream/stream-uniprocessor.yaml | 29 |
6 files changed, 89 insertions, 0 deletions
diff --git a/automated/linux/stream/bin/LICENSE.txt b/automated/linux/stream/bin/LICENSE.txt new file mode 100644 index 0000000..cf1c8e0 --- /dev/null +++ b/automated/linux/stream/bin/LICENSE.txt @@ -0,0 +1,34 @@ +*======================================================================= +*----------------------------------------------------------------------- +* Copyright 1991-2003: John D. McCalpin +*----------------------------------------------------------------------- +* License: +* 1. You are free to use this program and/or to redistribute +* this program. +* 2. You are free to modify this program for your own use, +* including commercial use, subject to the publication +* restrictions in item 3. +* 3. You are free to publish results obtained from running this +* program, or from works that you derive from this program, +* with the following limitations: +* 3a. In order to be referred to as "STREAM benchmark results", +* published results must be in conformance to the STREAM +* Run Rules, (briefly reviewed below) published at +* http://www.cs.virginia.edu/stream/ref.html +* and incorporated herein by reference. +* As the copyright holder, John McCalpin retains the +* right to determine conformity with the Run Rules. +* 3b. Results based on modified source code or on runs not in +* accordance with the STREAM Run Rules must be clearly +* labelled whenever they are published. Examples of +* proper labelling include: +* "tuned STREAM benchmark results" +* "based on a variant of the STREAM benchmark code" +* Other comparable, clear and reasonable labelling is +* acceptable. +* 3c. Submission of results to the STREAM benchmark web site +* is encouraged, but not required. +* 4. Use of this program or creation of derived works based on this +* program constitutes acceptance of these licensing restrictions. +* 5. Absolutely no warranty is expressed or implied. +*----------------------------------------------------------------------- diff --git a/automated/linux/stream/bin/README b/automated/linux/stream/bin/README new file mode 100644 index 0000000..4cba3a6 --- /dev/null +++ b/automated/linux/stream/bin/README @@ -0,0 +1,4 @@ +The binaries are provided under the terms listed in LICENSE.txt file. + +The binaries were built from STREAM V5.10 source code, with gcc option -O3. The +source can be viewed here: https://www.cs.virginia.edu/stream/FTP/Code/stream.c diff --git a/automated/linux/stream/bin/arm64/stream b/automated/linux/stream/bin/arm64/stream Binary files differnew file mode 100755 index 0000000..5cea537 --- /dev/null +++ b/automated/linux/stream/bin/arm64/stream diff --git a/automated/linux/stream/bin/armeabi/stream b/automated/linux/stream/bin/armeabi/stream Binary files differnew file mode 100755 index 0000000..c2b7b89 --- /dev/null +++ b/automated/linux/stream/bin/armeabi/stream diff --git a/automated/linux/stream/stream-uniprocessor.sh b/automated/linux/stream/stream-uniprocessor.sh new file mode 100755 index 0000000..3b0edab --- /dev/null +++ b/automated/linux/stream/stream-uniprocessor.sh @@ -0,0 +1,22 @@ +#!/bin/sh -e + +. ../../lib/sh-test-lib +OUTPUT="$(pwd)/output" +RESULT_FILE="${OUTPUT}/result.txt" +TEST_LOG="${OUTPUT}/stream-output.txt" + +[ -d "${OUTPUT}" ] && mv "${OUTPUT}" "${OUTPUT}_$(date +%Y%m%d%H%M%S)" +mkdir -p "${OUTPUT}" + +# Run Test. +detect_abi +# shellcheck disable=SC2154 +./bin/"${abi}"/stream 2>&1 | tee "${TEST_LOG}" + +# Parse output. +for test in Copy Scale Add Triad; do + grep "^${test}" "${TEST_LOG}" \ + | awk -v test="${test}" \ + '{printf("stream-uniprocessor-%s pass %s MB/s\n", test, $2)}' \ + | tee -a "${RESULT_FILE}" +done diff --git a/automated/linux/stream/stream-uniprocessor.yaml b/automated/linux/stream/stream-uniprocessor.yaml new file mode 100644 index 0000000..a1fc86a --- /dev/null +++ b/automated/linux/stream/stream-uniprocessor.yaml @@ -0,0 +1,29 @@ +metadata: + format: Lava-Test Test Definition 1.0 + name: stream-uniprocessor + description: "STREAM benchmark is a simple synthetic benchmark program that + measures sustainable memory bandwidth (in MB/s). This test + case run STREAM on a single processor." + maintainer: + - chase.qi@linaro.org + os: + - debian + - ubuntu + - fedora + - centos + scope: + - performance + devices: + - hi6220-hikey + - apq8016-sbc + - mustang + - d03 + - d05 + - moonshot + - thunderX + +run: + steps: + - cd ./automated/linux/stream/ + - ./stream-uniprocessor.sh + - ../../utils/send-to-lava.sh ./output/result.txt |