summaryrefslogtreecommitdiff
path: root/Microbenchmarks/STREAM/run-rank-stress.sh
blob: d9dfe801191f0486c20f401f1f1643005448b1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

mkdir -p $(hostname)

NCORES=$(grep -c '^processor' /proc/cpuinfo)
cleanexit() {
	pkill -f "stress -c ${NCORES}"
	exit 0
}

trap cleanexit TERM INT

stress -c ${NCORES} &

./run-rank.sh | tee "$(hostname)/$(date +%Y%m%d)-rank-stress-c${NCORES}.txt"

cleanexit