Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
validate that MPI_Op can be applied at entrance of MPI call, instead of xbt_dying...
[simgrid.git] / src / smpi / include / smpi_utils.hpp
1 /* Copyright (c) 2016-2021. 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_UTILS_HPP
7 #define SMPI_UTILS_HPP
8 #include "xbt/base.h"
9 #include <cstddef>
10 #include <string>
11 #include <vector>
12
13 // Methods used to parse and store the values for timing injections in smpi
14 struct s_smpi_factor_t {
15   size_t factor = 0;
16   std::vector<double> values;
17 };
18
19
20 namespace simgrid {
21 namespace smpi {
22 namespace utils {
23   XBT_PUBLIC std::vector<s_smpi_factor_t> parse_factor(const std::string& smpi_coef_string);
24   XBT_PUBLIC void add_benched_time(double time);
25   XBT_PUBLIC void account_malloc_size(size_t size, const char* file, int line);
26   XBT_PUBLIC void account_shared_size(size_t size);
27   XBT_PUBLIC void print_time_analysis(double time);
28   XBT_PUBLIC void print_memory_analysis();
29 }
30 }
31 }
32
33 #endif