static int host(int argc, char* argv[])
{
simgrid::s4u::File file(argv[1], nullptr);
static int host(int argc, char* argv[])
{
simgrid::s4u::File file(argv[1], nullptr);
XBT_INFO("Opened file '%s'", filename);
XBT_INFO("Try to write %llu MiB to '%s'", remoteFile.size() / 1024, filename);
sg_size_t write = remoteFile.write(remoteFile.size() * 1024);
XBT_INFO("Opened file '%s'", filename);
XBT_INFO("Try to write %llu MiB to '%s'", remoteFile.size() / 1024, filename);
sg_size_t write = remoteFile.write(remoteFile.size() * 1024);
if (std::stoi(argv[5]) != 0) {
XBT_INFO("Move '%s' (of size %llu) from '%s' to '%s'", filename, remoteFile.size(),
simgrid::s4u::Host::current()->get_cname(), argv[3]);
if (std::stoi(argv[5]) != 0) {
XBT_INFO("Move '%s' (of size %llu) from '%s' to '%s'", filename, remoteFile.size(),
simgrid::s4u::Host::current()->get_cname(), argv[3]);
} else {
XBT_INFO("Copy '%s' (of size %llu) from '%s' to '%s'", filename, remoteFile.size(),
simgrid::s4u::Host::current()->get_cname(), argv[3]);
} else {
XBT_INFO("Copy '%s' (of size %llu) from '%s' to '%s'", filename, remoteFile.size(),
simgrid::s4u::Host::current()->get_cname(), argv[3]);
e.load_platform(argv[1]);
e.register_function("host", host);
e.load_deployment(argv[2]);
e.load_platform(argv[1]);
e.register_function("host", host);
e.load_deployment(argv[2]);
for (auto const& s : allStorages) {
XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s) / INMEGA,
for (auto const& s : allStorages) {
XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s) / INMEGA,