MD-Bench/util/evaluate_latency_and_cfd.sh
Rafael Ravedutti 0e952964f7 Update script
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
2022-12-13 15:47:17 +01:00

31 lines
818 B
Bash

#!/bin/bash
MDBENCH_BIN="MDBench-ICX-lammps"
FREQ=2.1
NRUNS=3
FIXED_PARAMS="--freq $FREQ"
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
}
echo "Binary: $MDBENCH_BIN(-stub)"
echo "Frequency: $FREQ"
echo "Number of runs: $NRUNS"
echo "Fixing frequencies..."
likwid-setFrequencies -f $FREQ -t 0
echo "Standard"
run_benchmark ./MDBench-ICC-lammps
echo "Melt"
run_benchmark ./MDBench-ICC-lammps -i data/copper_melting/input_lj_cu_one_atomtype_20x20x20.dmp
echo "Argon"
run_benchmark ./MDBench-ICC-lammps -p data/argon_1000/mdbench_params.conf -i data/argon_1000/tprout.gro
echo "Stub-76"
run_benchmark ./MDBench-ICC-lammps-stub -nn 76
echo "Stub-1024"
run_benchmark ./MDBench-ICC-lammps-stub -nn 1024