From 4690542db50b3ea94464f8f080a40342f4da22cf Mon Sep 17 00:00:00 2001 From: Maximilian Gaul Date: Wed, 5 Jan 2022 12:31:47 +0100 Subject: [PATCH] Added CPU metrics {Cache, FLOPS, L2, L3}, restructured resource folders --- ..._cpu_omp_perf.sh => evaluate_cpu_openmpi_metrics.sh | 10 +++++----- evaluate_cpu_runtime.sh | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) rename evaluate_cpu_omp_perf.sh => evaluate_cpu_openmpi_metrics.sh (55%) create mode 100644 evaluate_cpu_runtime.sh diff --git a/evaluate_cpu_omp_perf.sh b/evaluate_cpu_openmpi_metrics.sh similarity index 55% rename from evaluate_cpu_omp_perf.sh rename to evaluate_cpu_openmpi_metrics.sh index 4017ec0..8124e64 100644 --- a/evaluate_cpu_omp_perf.sh +++ b/evaluate_cpu_openmpi_metrics.sh @@ -1,8 +1,8 @@ -#!/bin/bash -for i in $(seq 1 32); do - echo "$i" - export "OMP_NUM_THREADS=$i" - ./MDBench-GCC -n 50 | grep "Performance" +END=32 +for ((i=1;i<=END;i++)); do + output=$(eval "likwid-mpirun -np 1 -t $i -m -g FLOPS_DP -omp gnu ./MDBench-GCC -n 50") + echo -n "$i," + echo "$output" > "FLOPS_DP/thread_$i.txt" done ## likwid perf measurements on testfront1: diff --git a/evaluate_cpu_runtime.sh b/evaluate_cpu_runtime.sh new file mode 100644 index 0000000..05a366f --- /dev/null +++ b/evaluate_cpu_runtime.sh @@ -0,0 +1,6 @@ +#!/bin/bash +for i in $(seq 1 32); do + echo "$i" + export "OMP_NUM_THREADS=$i" + ./MDBench-GCC -n 50 | grep "Performance" +done