2022-12-13 15:35:41 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-12-14 17:54:18 +01:00
|
|
|
TAG=ICX
|
|
|
|
OPT_SCHEME=gromacs
|
|
|
|
MDBENCH_BIN=./MDBench-$TAG-$OPT_SCHEME
|
|
|
|
FREQ=2.4
|
2022-12-13 15:35:41 +01:00
|
|
|
NRUNS=3
|
2022-12-14 16:17:28 +01:00
|
|
|
FIXED_PARAMS=--freq $FREQ
|
2022-12-13 15:35:41 +01:00
|
|
|
|
2022-12-14 17:54:18 +01:00
|
|
|
if [ "$OPT_SCHEME" = "gromacs" ]; then
|
|
|
|
STUB1_NAME=Stub-33
|
|
|
|
STUB1_PARAMS=-na 4 -nn 33
|
|
|
|
STUB2_NAME=Stub-128
|
|
|
|
STUB2_PARAMS=-na 4 -nn 128
|
|
|
|
else
|
|
|
|
STUB1_NAME=Stub-76
|
|
|
|
STUB1_PARAMS=-nn 76
|
|
|
|
STUB2_NAME=Stub-1024
|
|
|
|
STUB2_PARAMS=-nn 1024
|
|
|
|
fi
|
|
|
|
|
2022-12-13 15:35:41 +01:00
|
|
|
function run_benchmark() {
|
|
|
|
for i in $(seq $NRUNS); do
|
|
|
|
likwid-pin -c 0 "$* $FIXED_PARAMS" 2>&1 | grep "Cycles/SIMD iteration" | cut -d ' ' -f3
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2022-12-14 17:54:18 +01:00
|
|
|
echo "Tag: $TAG"
|
|
|
|
echo "Optimization scheme: $OPT_SCHEME"
|
2022-12-13 15:47:17 +01:00
|
|
|
echo "Binary: $MDBENCH_BIN(-stub)"
|
|
|
|
echo "Frequency: $FREQ"
|
|
|
|
echo "Number of runs: $NRUNS"
|
|
|
|
|
|
|
|
echo "Fixing frequencies..."
|
|
|
|
likwid-setFrequencies -f $FREQ -t 0
|
|
|
|
|
2022-12-13 15:35:41 +01:00
|
|
|
echo "Standard"
|
2022-12-14 16:17:28 +01:00
|
|
|
run_benchmark $MDBENCH_BIN
|
2022-12-13 15:35:41 +01:00
|
|
|
echo "Melt"
|
2022-12-14 16:17:28 +01:00
|
|
|
run_benchmark $MDBENCH_BIN -i data/copper_melting/input_lj_cu_one_atomtype_20x20x20.dmp
|
2022-12-13 15:35:41 +01:00
|
|
|
echo "Argon"
|
2022-12-14 16:17:28 +01:00
|
|
|
run_benchmark $MDBENCH_BIN -p data/argon_1000/mdbench_params.conf -i data/argon_1000/tprout.gro
|
2022-12-14 17:54:18 +01:00
|
|
|
echo "$STUB1_NAME"
|
|
|
|
run_benchmark $MDBENCH_BIN-stub $STUB1_PARAMS
|
|
|
|
echo "$STUB2_NAME"
|
|
|
|
run_benchmark $MDBENCH_BIN-stub $STUB2_PARAMS
|