an also hopefully to avoid a FTBFS on travis:
/home/travis/build/simgrid/simgrid/src/smpi/private.hpp:13:36: error:
wrong number of template arguments (2, should be 4)
/usr/include/boost/detail/container_fwd.hpp:132:73: error: provided
for ‘template<class Key, class T, class Compare, class Allocator>
class std::map’
/* 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. */
/* 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 <unordered_map>
#include <vector>
#include <unordered_map>
#include <vector>
#ifndef SMPI_PRIVATE_HPP
#define SMPI_PRIVATE_HPP
#ifndef SMPI_PRIVATE_HPP
#define SMPI_PRIVATE_HPP
+#include <unordered_map>
#include "src/instr/instr_smpi.h"
#ifdef HAVE_PAPI
#include "src/instr/instr_smpi.h"
#ifdef HAVE_PAPI
XBT_PRIVATE int smpi_process_event_set(void);
#endif
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);
/** @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.
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;
}
if (it != location2speedup.end()) {
speedup = it->second;
}
#include <boost/tokenizer.hpp>
#include <boost/algorithm/string.hpp> /* trim_right / trim_left */
#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;
typedef struct s_smpi_process_data {
double simulated;
#include "src/surf/HostImpl.hpp"
#include "src/surf/HostImpl.hpp"
#include <float.h>
#include <vector>
#include <float.h>
#include <vector>
SG_BEGIN_DECL()
XBT_PUBLIC(void) routing_model_create(Link *loopback);
SG_BEGIN_DECL()
XBT_PUBLIC(void) routing_model_create(Link *loopback);