Commit 2f537899 authored by Ondrej Vysocky's avatar Ondrej Vysocky
Browse files

ENH removed mericMeasurementCounters from README #1 #61

parent 22954c52
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
- test/environment_taurus updated and renamed to test/environment_default.source - test/environment_taurus updated and renamed to test/environment_default.source
- default MERIC mode is RUN (3) instead of HDEEM (0) - default MERIC mode is RUN (3) instead of HDEEM (0)
- CPU core and uncore frequency may be specified without unit in Hz or with unit - CPU core and uncore frequency may be specified without unit in Hz or with unit
- removed mericMeasurementCounters - when runing an application several times with the same configuration MERIC_ITERATION=$iteration must be exported
### 05.06.2018 ################################################################# ### 05.06.2018 #################################################################
- fixed single RAPL overflow - fixed single RAPL overflow
......
...@@ -223,6 +223,10 @@ Default compilation expects Intel compiler, if you want to compile using GCC use ...@@ -223,6 +223,10 @@ Default compilation expects Intel compiler, if you want to compile using GCC use
6 = davide - energy measurement on CINECA D.A.V.I.D.E. system 6 = davide - energy measurement on CINECA D.A.V.I.D.E. system
7 = time - storing runtime of the regions only 7 = time - storing runtime of the regions only
export MERIC_ITERATION=0
- if runing an application several times with the same configuration MERIC_ITERATION=$iteration must be exported
- always start with 0
export MERIC_BARRIERS=all export MERIC_BARRIERS=all
all = all barriers are applied (default) all = all barriers are applied (default)
mpi = use MPI barriers only mpi = use MPI barriers only
...@@ -360,17 +364,11 @@ export MERIC_MODE=6 # time measurement only ...@@ -360,17 +364,11 @@ export MERIC_MODE=6 # time measurement only
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
# 7] Code dynamism investigation # # 7] Code dynamism investigation #
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
MERIC's output is stored in two directories: MERIC's output is stored in the directory in default named `mericMeasurement` that contains result files in folders with names of the regions. To change output folder name export MERIC_OUTPUT_DIR="NEW_NAME".
Each csv file carry 3 types of data:
* mericMeasurement * CALLTREE - the first line of every CSV file, it's a call stack, so we can see, where is the measured region nested
# contains result files in folders with names of the regions * Section label (e.g. '# Job info') - determines a "category" of following data in a file7
# to change output folder name export MERIC_OUTPUT_DIR="NEW_NAME" * Data - tuples (mostly pairs) structured like a hash map: key, value
# 3 types of data in CSV files:
# CALLTREE - the first line of every CSV file, it's a call stack, so we can see, where is the measured region nested
# Section label (e.g. '# Job info') - determines a "category" of following data in a file7
# Data - tuples (mostly pairs) structured like a hash map: key, value
* mericMeasurementCounters
# Program start counters, stored in .tmp files.
To find the best settings for each region, you should run your code with several possible settings. The content of the MERIC's output directories, can be analysed using our RADAR tool, that generates a MERIC configuration file for production runs of the application and LaTeX report describing the application behavior. To find the best settings for each region, you should run your code with several possible settings. The content of the MERIC's output directories, can be analysed using our RADAR tool, that generates a MERIC configuration file for production runs of the application and LaTeX report describing the application behavior.
...@@ -383,10 +381,14 @@ To find the best settings for each region, you should run your code with several ...@@ -383,10 +381,14 @@ To find the best settings for each region, you should run your code with several
do do
for uncore_freq in {30..12..1} # or {30..12..2} for uncore_freq in {30..12..1} # or {30..12..2}
do do
export MERIC_NUM_THREADS=$thread for iter in {0..3}
export MERIC_FREQUENCY=${cpu_freq}00MHz do
export MERIC_UNCORE_FREQUENCY=${uncore_freq}00HMz export MERIC_NUM_THREADS=$thread
./test export MERIC_FREQUENCY=${cpu_freq}00MHz
export MERIC_UNCORE_FREQUENCY=${uncore_freq}00HMz
export MERIC_ITERATION=$iter
./test
done
done done
done done
done done
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
### PRINT LIST OF ENV VARIABLES ### ### PRINT LIST OF ENV VARIABLES ###
variables() variables()
{ {
for exp in MERIC_FREQUENCY MERIC_UNCORE_FREQUENCY MERIC_NUM_THREADS MERIC_COUNTERS MERIC_CONTINUAL MERIC_DETAILED MERIC_AGGREGATE MERIC_DEBUG MERIC_SAMPLES MERIC_MODE MERIC_OUTPUT_DIR MERIC_OUTPUT_FILENAME MERIC_REGION_OPTIONS MERIC_BARRIERS for exp in MERIC_FREQUENCY MERIC_UNCORE_FREQUENCY MERIC_NUM_THREADS MERIC_COUNTERS MERIC_CONTINUAL MERIC_DETAILED MERIC_AGGREGATE MERIC_DEBUG MERIC_SAMPLES MERIC_MODE MERIC_OUTPUT_DIR MERIC_OUTPUT_FILENAME MERIC_REGION_OPTIONS MERIC_BARRIERS MERIC_ITERATION
do do
if [ ! -z ${!exp} ] if [ ! -z ${!exp} ]
then then
...@@ -43,8 +43,9 @@ fi ...@@ -43,8 +43,9 @@ fi
export MERIC_FREQUENCY=0 # no DVFS export MERIC_FREQUENCY=0 # no DVFS
export MERIC_UNCORE_FREQUENCY=0 # no UFS export MERIC_UNCORE_FREQUENCY=0 # no UFS
export MERIC_NUM_THREADS=0 # non-OpenMP application export MERIC_NUM_THREADS=0 # non-OpenMP application
export MERIC_ITERATION=0 # iteration of the same configuration run
export MERIC_COUNTERS=papi # perfevent, papi export MERIC_COUNTERS=papi # perfevent, papi
export MERIC_MODE=3 # {hdeem=0, rapl=1, both=2, run=3, jetson=4, thunder=5, davide=6, time=7} export MERIC_MODE=3 # {hdeem=0, rapl=1, both=2, run=3, jetson=4, thunder=5, davide=6, time=7}
export MERIC_AGGREGATE=1 # aggregated data from all the nodes export MERIC_AGGREGATE=1 # aggregated data from all the nodes
export MERIC_CONTINUAL=1 # energy read at the end of the runtime export MERIC_CONTINUAL=1 # energy read at the end of the runtime
# export MERIC_DETAILED=1 # detailed information about the system # export MERIC_DETAILED=1 # detailed information about the system
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment