Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
no need for a lib to store the netcards. A dict is easier
[simgrid.git] / src / include / smpi / smpi_utils.hpp
1 /* Copyright (c) 2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef _SMPI_UTILS_HPP
8 #define _SMPI_UTILS_HPP
9 #include "xbt/base.h"
10 #include <cstddef>
11 #include <vector>
12
13 SG_BEGIN_DECL()
14
15 // Methods used to parse and store the values for timing injections in smpi
16 typedef struct s_smpi_factor *smpi_os_factor_t;
17 typedef struct s_smpi_factor{
18   size_t factor=0;
19   std::vector<double> values;
20 } s_smpi_factor_t;
21
22 SG_END_DECL()
23
24 XBT_PUBLIC(std::vector<s_smpi_factor_t>) parse_factor(const char *smpi_coef_string);
25
26 #endif