diff options
author | Marcel Köppen <marcel.koeppen@uos.de> | 2024-05-13 14:06:02 +0200 |
---|---|---|
committer | Marcel Köppen <marcel.koeppen@uos.de> | 2024-05-13 14:06:02 +0200 |
commit | 686e6c93fc889e194cdf5d3f492a486bc670abec (patch) | |
tree | 99037495e80932c5ecae7a4df50eb4f0025d3bd2 /Microbenchmarks/STREAM | |
parent | 29c4b91a567c320bf8918c63af0065e05a47d538 (diff) |
Parameterize iteration count and timeout
Diffstat (limited to 'Microbenchmarks/STREAM')
-rwxr-xr-x | Microbenchmarks/STREAM/run-rank.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Microbenchmarks/STREAM/run-rank.sh b/Microbenchmarks/STREAM/run-rank.sh index 0845863..40369c3 100755 --- a/Microbenchmarks/STREAM/run-rank.sh +++ b/Microbenchmarks/STREAM/run-rank.sh @@ -8,6 +8,9 @@ echo "Revision $(git describe --always)" echo "Host: $(hostname)" echo "Compilers: $(make info)" +ITERATIONS=100 +TIMEOUT=30m + # -i: input size (number of elements, not number of bytes!) # Each DPU uses three buffers, each of which holds $i * sizeof($dt) bytes. # With a total MRAM capacity of 64M, this gives us ~21M per buffer, or 16M when rounding down to the next power of two. @@ -25,7 +28,7 @@ for dt in uint64_t ; do #uint8_t uint16_t uint32_t float double; do for unroll in 1 0; do echo "Running at $(date)" if make -B OP=${op} NR_DPUS=${nr_dpus} NR_TASKLETS=${nr_tasklets} BL=${bl} T=${dt} TRANSFER=${transfer} UNROLL=${unroll} WITH_ALLOC_OVERHEAD=0 WITH_LOAD_OVERHEAD=0 WITH_FREE_OVERHEAD=0; then - timeout --foreground -k 1m 30m bin/host_code -w 0 -e 100 -i $i -x 0 || true + timeout --foreground -k 1m ${TIMEOUT} bin/host_code -w 0 -e ${ITERATIONS} -i $i -x 0 || true fi done done |