X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1c2027adbae4b33dae8f25289085ec4bdf3e1691..41adabdd02af4d7b5011943acabad304ba5ffc8d:/src/msg/msg_vm.cpp diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index 3d9c4da0e8..88e602fb94 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -347,7 +347,7 @@ static void start_dirty_page_tracking(msg_vm_t vm) for (auto const& elm : vm->pimpl_vm_->dp_objs) { dirty_page_t dp = elm.second; - double remaining = MSG_task_get_remaining_work_ratio(dp->task); + double remaining = MSG_task_get_flops_amount(dp->task); dp->prev_clock = MSG_get_clock(); dp->prev_remaining = remaining; XBT_DEBUG("%s@%s remaining %f", elm.first.c_str(), vm->getCname(), remaining); @@ -377,7 +377,7 @@ static double lookup_computed_flop_counts(msg_vm_t vm, int stage_for_fancy_debug for (auto const& elm : vm->pimpl_vm_->dp_objs) { const std::string& key = elm.first; dirty_page_t dp = elm.second; - double remaining = MSG_task_get_remaining_work_ratio(dp->task); + double remaining = MSG_task_get_flops_amount(dp->task); double clock = MSG_get_clock(); @@ -406,7 +406,7 @@ void MSG_host_add_task(msg_host_t host, msg_task_t task) if (vm == nullptr) return; - double remaining = MSG_task_get_initial_flops_amount(task); + double remaining = MSG_task_get_flops_amount(task); std::string key = simgrid::xbt::string_printf("%s-%p", task->name, task); dirty_page_t dp = new s_dirty_page; @@ -436,7 +436,7 @@ void MSG_host_del_task(msg_host_t host, msg_task_t task) /* If we are in the middle of dirty page tracking, we record how much computation has been done until now, and keep * the information for the lookup_() function that will called soon. */ if (vm->pimpl_vm_->dp_enabled) { - double remaining = MSG_task_get_remaining_work_ratio(task); + double remaining = MSG_task_get_flops_amount(task); double clock = MSG_get_clock(); double updated = get_computed(key, vm, dp, remaining, clock); // was host instead of vm