-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunScript.sh
More file actions
20 lines (16 loc) · 844 Bytes
/
Copy pathrunScript.sh
File metadata and controls
20 lines (16 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# srun -N1 -n1 -c1 --cpu-bind=threads --threads-per-core=1 -m block:cyclic ./executable
minElem=$1
maxElem=$2
elemIncr=$3
useCab=$4
runsPer=$5
order=$6
dim=$7
ulimit -s unlimited
echo "RUNNING WITH: minElem:$minElem, maxElem:$maxElem, elemIncr:$elemIncr, useCab:$useCab, runsPer:$runsPer, order: $order, dim: $dim"
# srun -N1 -n1 -c1 --cpu-bind=threads --threads-per-core=1 -m block:cyclic ./builds/AMD_GFX90A/meshfields/IntegratorPerformance $useCab $order $minSize $minElem $dim $runsPer > tmp
for numElem in $(awk -v min="$minElem" -v max="$maxElem" -v incr="$elemIncr" 'BEGIN {
for(i=min; i<=max; i = int(i * incr)) print i}'); do
srun -N1 -n1 -c1 --cpu-bind=threads --threads-per-core=1 -m block:cyclic rocprof --hip-trace ./builds/AMD_GFX90A/meshfields/IntegratorPerformance $useCab $order 1 $numElem $dim $runsPer
done