score-p / scorep_plugin_x86_energy

This is the Score-P power and energy event plugin counter for newer Intel and AMD processors (via RAPL, resp. APM). The plugin supports reading msr registers directly or through the x86_adapt library.
BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

Redefinition of MPI_VERSION #8

Open devreal opened 6 years ago

devreal commented 6 years ago

MPICH defines the macro MPI_VERSION so the plugin should not:

In file included from /zhome/academic/HLRS/hlrs/hpcjschu/src/readex/scorep_plugin_x86_energy/src/x86_energy_sync_plugin.cpp:40:0:
/opt/cray/pe/mpt/7.7.1/gni/mpich-gnu/7.1/include/mpi.h:458:0: warning: "MPI_VERSION" redefined
 #define MPI_VERSION    3

<command-line>:0:0: note: this is the location of the previous definition
rschoene commented 6 years ago

I assume that's due to that is due to

https://github.com/score-p/scorep_plugin_x86_energy/blob/6b5d04906d61d96f07899b81af75f89f9d57e9b3/CMakeLists.txt#L45

@AndreasGocht can you confirm @devreal can you try without?