Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / src / smpi / private.hpp
1 /* Copyright (c) 2016. The SimGrid Team. All rights reserved.               */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SMPI_PRIVATE_HPP
7 #define SMPI_PRIVATE_HPP
8
9 #include <unordered_map>
10 #include "src/instr/instr_smpi.h"
11
12 #ifdef HAVE_PAPI
13 typedef 
14     std::vector<std::pair</* counter name */std::string, /* counter value */long long>> papi_counter_t;
15 XBT_PRIVATE papi_counter_t& smpi_process_counter_data(void);
16 XBT_PRIVATE int smpi_process_event_set(void);
17 #endif
18
19 extern std::unordered_map<std::string, double> location2speedup;
20
21 /** @brief Returns the last call location (filename, linenumber). Process-specific. */
22 extern "C" {
23 XBT_PUBLIC(smpi_trace_call_location_t*) smpi_process_get_call_location(void);
24 XBT_PUBLIC(smpi_trace_call_location_t*) smpi_trace_get_call_location();
25 }
26 #endif