diff --git a/common/eam_utils.c b/common/eam_utils.c index 74fd0c1..c28be17 100644 --- a/common/eam_utils.c +++ b/common/eam_utils.c @@ -264,6 +264,6 @@ void grab(FILE* fptr, int n, MD_FLOAT* list) { readline(line, fptr); ptr = strtok(line, " \t\n\r\f"); list[i++] = atof(ptr); - while(ptr = strtok(NULL, " \t\n\r\f")) list[i++] = atof(ptr); + while((ptr = strtok(NULL, " \t\n\r\f"))) list[i++] = atof(ptr); } } diff --git a/include_ICX.mk b/include_ICX.mk index 676b7ad..0f21d33 100644 --- a/include_ICX.mk +++ b/include_ICX.mk @@ -10,7 +10,7 @@ PROFILE = #-profile-functions -g -pg #OPTS = -Ofast -xSSE4.2 $(PROFILE) #OPTS = -Ofast -no-vec $(PROFILE) OPTS = -Ofast -xHost $(PROFILE) -CFLAGS = $(PROFILE) -restrict $(OPENMP) $(OPTS) +CFLAGS = $(PROFILE) $(OPENMP) $(OPTS) ASFLAGS = #-masm=intel LFLAGS = $(PROFILE) $(OPTS) $(OPENMP) DEFINES = -std=c11 -pedantic-errors -D_GNU_SOURCE -DNO_ZMM_INTRIN diff --git a/util/evaluate_latency_and_cfg.sh b/util/evaluate_latency_and_cfg.sh new file mode 100644 index 0000000..61a33d2 --- /dev/null +++ b/util/evaluate_latency_and_cfg.sh @@ -0,0 +1,23 @@ +#!/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