From e0412698e7573cf44491b46234b335bf400859e6 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Fri, 27 Nov 2015 11:25:44 +0100 Subject: [PATCH] [surf] Remove power related methods from CpuL07 They are not implemented, not used anyway. Power is implemented in the CPU. --- src/surf/host_ptask_L07.cpp | 25 ------------------------- src/surf/host_ptask_L07.hpp | 5 ----- 2 files changed, 30 deletions(-) diff --git a/src/surf/host_ptask_L07.cpp b/src/surf/host_ptask_L07.cpp index c092c283ef..3dcb404e8d 100644 --- a/src/surf/host_ptask_L07.cpp +++ b/src/surf/host_ptask_L07.cpp @@ -420,31 +420,6 @@ HostL07::HostL07(HostModel *model, const char* name, xbt_dict_t props, RoutingEd { } -double HostL07::getPowerPeakAt(int /*pstate_index*/) -{ - THROW_UNIMPLEMENTED; -} - -int HostL07::getNbPstates() -{ - THROW_UNIMPLEMENTED; -} - -void HostL07::setPstate(int /*pstate_index*/) -{ - THROW_UNIMPLEMENTED; -} - -int HostL07::getPstate() -{ - THROW_UNIMPLEMENTED; -} - -double HostL07::getConsumedEnergy() -{ - THROW_UNIMPLEMENTED; -} - CpuL07::CpuL07(CpuL07Model *model, const char* name, xbt_dict_t props, double power_initial, double power_scale, tmgr_trace_t power_trace, int core, e_surf_resource_state_t state_initial, tmgr_trace_t state_trace) diff --git a/src/surf/host_ptask_L07.hpp b/src/surf/host_ptask_L07.hpp index 5264a8449f..221edf36a1 100644 --- a/src/surf/host_ptask_L07.hpp +++ b/src/surf/host_ptask_L07.hpp @@ -98,11 +98,6 @@ public: Action *execute(double size) {return p_cpu->execute(size);}; Action *sleep(double duration) {return p_cpu->sleep(duration);}; e_surf_resource_state_t getState(); - double getPowerPeakAt(int pstate_index); - int getNbPstates(); - void setPstate(int pstate_index); - int getPstate(); - double getConsumedEnergy(); }; class CpuL07 : public Cpu { -- 2.20.1