- if (duration >= smpi_cpu_threshold) {
- XBT_DEBUG("Sleep for %g to handle real computation time", duration);
- double flops = duration * smpi_host_speed;
- int rank = simgrid::s4u::this_actor::get_pid();
- TRACE_smpi_computing_in(rank, flops);
-
- private_execute_flops(flops);
-
- TRACE_smpi_computing_out(rank);
-
+ if (duration >= smpi_cfg_cpu_thresh()) {
+ XBT_DEBUG("Sleep for %gs (host time) to handle real computation time", duration);
+ private_execute_flops(duration * smpi_cfg_host_speed());