1 /* Copyright (c) 2010-2020. The SimGrid Team. All rights reserved. */
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. */
10 #include "src/instr/instr_private.hpp"
13 /* Helper functions */
14 XBT_PRIVATE simgrid::instr::Container* smpi_container(int rank);
15 XBT_PRIVATE void TRACE_smpi_setup_container(int rank, const_sg_host_t host);
17 XBT_PRIVATE void TRACE_smpi_sleeping_out(int rank);
18 XBT_PRIVATE void TRACE_smpi_sleeping_in(int rank, double duration);
19 XBT_PRIVATE void TRACE_smpi_comm_in(int rank, const char* operation, simgrid::instr::TIData* extra);
20 XBT_PRIVATE void TRACE_smpi_comm_out(int rank);
21 XBT_PRIVATE void TRACE_smpi_send(int rank, int src, int dst, int tag, int size);
22 XBT_PRIVATE void TRACE_smpi_recv(int src, int dst, int tag);
23 XBT_PRIVATE void TRACE_smpi_init(int rank, const std::string& calling_func);
25 /* SMPI + LB (load balancer) */
26 XBT_PRIVATE void TRACE_smpi_process_change_host(int rank, const_sg_host_t new_host);
28 class smpi_trace_call_location_t {
33 std::string previous_filename;
34 int previous_linenumber;
36 std::string get_composed_key() const
38 return previous_filename + ':' + std::to_string(previous_linenumber) + ':' + filename + ':' +
39 std::to_string(linenumber);