#include "src/kernel/EngineImpl.hpp"
#include "src/kernel/resource/NetworkModel.hpp"
#include "src/kernel/resource/models/host_clm03.hpp"
#include "src/simgrid/module.hpp"
#include "src/kernel/EngineImpl.hpp"
#include "src/kernel/resource/NetworkModel.hpp"
#include "src/kernel/resource/models/host_clm03.hpp"
#include "src/simgrid/module.hpp"
Action* HostCLM03Model::io_stream(s4u::Host* src_host, DiskImpl* src_disk, s4u::Host* dst_host, DiskImpl* dst_disk,
double size)
{
Action* HostCLM03Model::io_stream(s4u::Host* src_host, DiskImpl* src_disk, s4u::Host* dst_host, DiskImpl* dst_disk,
double size)
{
- auto net_model = src_host->get_englobing_zone()->get_network_model();
- auto system = net_model->get_maxmin_system();
+ auto* net_model = src_host->get_englobing_zone()->get_network_model();
+ auto* system = net_model->get_maxmin_system();
auto* action = net_model->communicate(src_host, dst_host, size, -1, true);
// We don't want to apply the network model bandwidth factor to the I/O constraints
auto* action = net_model->communicate(src_host, dst_host, size, -1, true);
// We don't want to apply the network model bandwidth factor to the I/O constraints
Action* HostCLM03Model::execute_thread(const s4u::Host* host, double flops_amount, int thread_count)
{
Action* HostCLM03Model::execute_thread(const s4u::Host* host, double flops_amount, int thread_count)
{
/* Create a single action whose cost is thread_count * flops_amount and that requests thread_count cores. */
return cpu->execution_start(thread_count * flops_amount, thread_count, -1);
}
/* Create a single action whose cost is thread_count * flops_amount and that requests thread_count cores. */
return cpu->execution_start(thread_count * flops_amount, thread_count, -1);
}