Adjust script for GROMACS scheme

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti 2022-12-14 17:54:18 +01:00
parent 15d43dcce5
commit b20e8c6986

View File

@ -1,16 +1,32 @@
#!/bin/bash #!/bin/bash
MDBENCH_BIN=./MDBench-ICX-lammps TAG=ICX
FREQ=2.1 OPT_SCHEME=gromacs
MDBENCH_BIN=./MDBench-$TAG-$OPT_SCHEME
FREQ=2.4
NRUNS=3 NRUNS=3
FIXED_PARAMS=--freq $FREQ FIXED_PARAMS=--freq $FREQ
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
function run_benchmark() { function run_benchmark() {
for i in $(seq $NRUNS); do for i in $(seq $NRUNS); do
likwid-pin -c 0 "$* $FIXED_PARAMS" 2>&1 | grep "Cycles/SIMD iteration" | cut -d ' ' -f3 likwid-pin -c 0 "$* $FIXED_PARAMS" 2>&1 | grep "Cycles/SIMD iteration" | cut -d ' ' -f3
done done
} }
echo "Tag: $TAG"
echo "Optimization scheme: $OPT_SCHEME"
echo "Binary: $MDBENCH_BIN(-stub)" echo "Binary: $MDBENCH_BIN(-stub)"
echo "Frequency: $FREQ" echo "Frequency: $FREQ"
echo "Number of runs: $NRUNS" echo "Number of runs: $NRUNS"
@ -24,7 +40,7 @@ echo "Melt"
run_benchmark $MDBENCH_BIN -i data/copper_melting/input_lj_cu_one_atomtype_20x20x20.dmp run_benchmark $MDBENCH_BIN -i data/copper_melting/input_lj_cu_one_atomtype_20x20x20.dmp
echo "Argon" echo "Argon"
run_benchmark $MDBENCH_BIN -p data/argon_1000/mdbench_params.conf -i data/argon_1000/tprout.gro run_benchmark $MDBENCH_BIN -p data/argon_1000/mdbench_params.conf -i data/argon_1000/tprout.gro
echo "Stub-76" echo "$STUB1_NAME"
run_benchmark $MDBENCH_BIN-stub -nn 76 run_benchmark $MDBENCH_BIN-stub $STUB1_PARAMS
echo "Stub-1024" echo "$STUB2_NAME"
run_benchmark $MDBENCH_BIN-stub -nn 1024 run_benchmark $MDBENCH_BIN-stub $STUB2_PARAMS