Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix process_killall. Closes #186.
[simgrid.git] / src / include / smpi / smpi_utils.hpp
1 /* Copyright (c) 2016-2017. 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 <vector>
11
12 SG_BEGIN_DECL()
13
14 // Methods used to parse and store the values for timing injections in smpi
15 typedef struct s_smpi_factor *smpi_os_factor_t;
16 typedef struct s_smpi_factor{
17   size_t factor=0;
18   std::vector<double> values;
19 } s_smpi_factor_t;
20
21 SG_END_DECL()
22
23 XBT_PUBLIC(std::vector<s_smpi_factor_t>) parse_factor(const char *smpi_coef_string);
24
25 #endif