/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include <map>
#include <unordered_map>
#include <vector>
#ifndef SMPI_PRIVATE_HPP
#define SMPI_PRIVATE_HPP
+#include <unordered_map>
#include "src/instr/instr_smpi.h"
#ifdef HAVE_PAPI
XBT_PRIVATE int smpi_process_event_set(void);
#endif
-extern std::map<std::string, double> location2speedup;
+extern std::unordered_map<std::string, double> location2speedup;
/** @brief Returns the last call location (filename, linenumber). Process-specific. */
XBT_PUBLIC(smpi_trace_call_location_t*) smpi_process_get_call_location(void);
if (xbt_cfg_get_string("smpi/comp-adjustment-file")[0] != '\0') { // Maybe we need to artificially speed up or slow
// down our computation based on our statistical analysis.
- smpi_trace_call_location_t* loc = smpi_process_get_call_location();
- std::string key = loc->get_composed_key();
- std::map<std::string, double>::const_iterator it = location2speedup.find(key);
+ smpi_trace_call_location_t* loc = smpi_process_get_call_location();
+ std::string key = loc->get_composed_key();
+ std::unordered_map<std::string, double>::const_iterator it = location2speedup.find(key);
if (it != location2speedup.end()) {
speedup = it->second;
}
#include <boost/tokenizer.hpp>
#include <boost/algorithm/string.hpp> /* trim_right / trim_left */
-std::map<std::string, double> location2speedup;
+std::unordered_map<std::string, double> location2speedup;
typedef struct s_smpi_process_data {
double simulated;
#include <xbt/base.h>
-#include <map>
+#include <utility>
#include "src/surf/HostImpl.hpp"
#include <float.h>
#include <vector>
-#include <map>
SG_BEGIN_DECL()
XBT_PUBLIC(void) routing_model_create(Link *loopback);