#!/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