X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3bf4b2f917646520bc564cdc85c6fd256e0ed6e5..3fab894cbce7d5bdd43a6fc9aa647b3809d63507:/src/smpi/smpi_bench.cpp diff --git a/src/smpi/smpi_bench.cpp b/src/smpi/smpi_bench.cpp index a997df03b7..de5c96e275 100644 --- a/src/smpi/smpi_bench.cpp +++ b/src/smpi/smpi_bench.cpp @@ -266,9 +266,9 @@ void smpi_bench_end(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::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::const_iterator it = location2speedup.find(key); if (it != location2speedup.end()) { speedup = it->second; } @@ -738,8 +738,7 @@ void smpi_destroy_global_memory_segments(){ #endif } -extern "C" { - +extern "C" { /** These functions will be called from the user code **/ smpi_trace_call_location_t* smpi_trace_get_call_location() { return smpi_process_get_call_location(); }