#include "smpi/smpi.h"
#include "smpi/smpi_helpers_internal.h"
#include "src/instr/instr_smpi.hpp"
-#include "src/internal_config.h"
#include <unordered_map>
#include <vector>
#define MPI_REQ_RMA 0x200
#define MPI_REQ_ACCUMULATE 0x400
-enum class SmpiProcessState { UNINITIALIZED, INITIALIZED, FINALIZED };
+enum class SmpiProcessState { UNINITIALIZED, INITIALIZING, INITIALIZED, FINALIZED };
#define COLL_TAG_REDUCE -112
#define COLL_TAG_SCATTER -223
*/
#define TOPAGE(addr) (void*)(((unsigned long)(addr) / xbt_pagesize) * xbt_pagesize)
-#if HAVE_PAPI
+/** Used only if PAPI is compiled in, but integrated anyway so that this file does not depend on internal_config.h (to speed builds) */
typedef std::vector<std::pair</* counter name */ std::string, /* counter value */ long long>> papi_counter_t;
struct papi_process_data {
papi_counter_t counter_data;
int event_set;
};
extern std::map</* computation unit name */ std::string, papi_process_data> units2papi_setup;
-#endif
extern std::unordered_map<std::string, double> location2speedup;