Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / kernel / resource / models / host_clm03.cpp
index 3a44e4031736071273a766a3acf96b40c3e31130..c5b47a11e6a257327022597bce0a4f1b1e54789f 100644 (file)
@@ -7,11 +7,11 @@
 #include <simgrid/kernel/routing/NetZoneImpl.hpp>
 #include <simgrid/s4u/Engine.hpp>
 
-#include "simgrid/sg_config.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"
+#include "src/simgrid/sg_config.hpp"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(res_host);
 
@@ -53,8 +53,8 @@ static inline double has_cost(const double* array, size_t pos)
 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
@@ -112,7 +112,7 @@ Action* HostCLM03Model::execute_parallel(const std::vector<s4u::Host*>& host_lis
 
 Action* HostCLM03Model::execute_thread(const s4u::Host* host, double flops_amount, int thread_count)
 {
-  auto cpu = host->get_cpu();
+  auto* cpu = host->get_cpu();
   /* 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);
 }