diff options
Diffstat (limited to 'Microbenchmarks/STREAM/run-rank-stress.sh')
-rwxr-xr-x | Microbenchmarks/STREAM/run-rank-stress.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Microbenchmarks/STREAM/run-rank-stress.sh b/Microbenchmarks/STREAM/run-rank-stress.sh new file mode 100755 index 0000000..1e321c6 --- /dev/null +++ b/Microbenchmarks/STREAM/run-rank-stress.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +mkdir -p $(hostname) + +NCORES=$(grep -c '^processor' /proc/cpuinfo) +cleanexit() { + pkill -f "stress -c ${NCORES}" +} + +trap cleanexit TERM INT + +stress -c ${NCORES} & + +./run-rank.sh | tee "$(hostname)/rank-stress-c${NCORES}.txt" + +cleanexit |