]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/host_clm03.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
System: fix modified_set_ when selective_update is active
[simgrid.git] / src / surf / host_clm03.cpp
index 55b8cf49ab5ac52d535c4f7ad99d58aa74e18be8..d7353cf68de89ebaa4fffa85c5d81caabfa5be46 100644 (file)
@@ -97,12 +97,8 @@ 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();
-  /* Create a single action whose cost is thread_count * flops_amount,, that requests thread_count cores and
-   * is bounded to the currently available speed (i.e., under current load) time the minimum  between the
-   * number of thread and the number of cores of the host */
-  return cpu->execution_start(thread_count * flops_amount, thread_count,
-                              cpu->get_speed(1.0) / cpu->get_speed_ratio() *
-                                  std::min(thread_count, cpu->get_core_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);
 }
 
 } // namespace resource