1 /* Copyright (c) 2017-2021. 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. */
9 #include "smpi_utils.hpp"
11 #include "simgrid/s4u/Host.hpp"
14 #include <xbt/Extendable.hpp>
20 std::vector<s_smpi_factor_t> orecv_parsed_values;
21 std::vector<s_smpi_factor_t> osend_parsed_values;
22 std::vector<s_smpi_factor_t> oisend_parsed_values;
23 s4u::Host* host = nullptr;
25 * @brief Generates warning message if user's config is conflicting (callback vs command line/xml)
26 * @param op String with config name (smpi/os, smpi/or, smpi/ois)
28 void check_factor_configs(const std::string op) const;
31 static xbt::Extension<s4u::Host, smpi::Host> EXTENSION_ID;
33 explicit Host(s4u::Host* ptr);
35 double orecv(size_t size, s4u::Host* src, s4u::Host* dst);
36 double osend(size_t size, s4u::Host* src, s4u::Host* dst);
37 double oisend(size_t size, s4u::Host* src, s4u::Host* dst);