Every file including src/internal_config.h (directly or indirectly)
must be rebuilt when the cmake file or config are changed. I change
these file *a lot* during my refactorings, and I get tired of
recompiling large amount of files that were not affected in any way.
This time, all of SMPI was recompiled each time. Including the **many**
collectives that we integrated a long time ago and never changed since
then. These files are not build-configured in anyway, so please don't
make me recompiling them again and again, please.
#include "src/instr/instr_paje_events.hpp"
#include "src/instr/instr_paje_types.hpp"
#include "src/instr/instr_paje_values.hpp"
-#include "src/internal_config.h"
#include "xbt/graph.h"
#include <fstream>
#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 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;