MD-Bench/util/evaluate_latency_and_cfg.sh

24 lines
662 B
Bash
Raw Normal View History

#!/bin/bash
MDBENCH_BIN="MDBench-ICC-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 "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