-/* Copyright (c) 2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "SmpiHost.hpp"
#include "simgrid/s4u/VirtualMachine.hpp"
#include "smpi_utils.hpp"
+#include "xbt/config.hpp"
#include <string>
#include <vector>
+#include <xbt/log.h>
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_host, smpi, "Logging specific to SMPI (host)");
if (orecv_string != nullptr) {
orecv_parsed_values = parse_factor(orecv_string);
} else {
- orecv_parsed_values = parse_factor(xbt_cfg_get_string("smpi/or"));
+ orecv_parsed_values = parse_factor(simgrid::config::get_value<std::string>("smpi/or"));
}
const char* osend_string = host->getProperty("smpi/os");
if (osend_string != nullptr) {
osend_parsed_values = parse_factor(osend_string);
} else {
- osend_parsed_values = parse_factor(xbt_cfg_get_string("smpi/os"));
+ osend_parsed_values = parse_factor(simgrid::config::get_value<std::string>("smpi/os"));
}
const char* oisend_string = host->getProperty("smpi/ois");
if (oisend_string != nullptr) {
oisend_parsed_values = parse_factor(oisend_string);
} else {
- oisend_parsed_values = parse_factor(xbt_cfg_get_string("smpi/ois"));
+ oisend_parsed_values = parse_factor(simgrid::config::get_value<std::string>("smpi/ois"));
}
}