X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ba5e509f6ff4c2d1ef9cb834e3275e43610d28f6..0c9ba8fe774965e25baca201356dd6da90f9bb5d:/src/surf/cpu_interface.hpp diff --git a/src/surf/cpu_interface.hpp b/src/surf/cpu_interface.hpp index 790e61c9ab..ed0aa26a70 100644 --- a/src/surf/cpu_interface.hpp +++ b/src/surf/cpu_interface.hpp @@ -4,22 +4,12 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include - -#include -#include - -#include -#include - -#include "surf/datatypes.h" -#include "surf_interface.hpp" -#include "maxmin_private.hpp" -#include "trace_mgr.hpp" - #ifndef SURF_CPU_INTERFACE_HPP_ #define SURF_CPU_INTERFACE_HPP_ +#include "simgrid/s4u/host.hpp" +#include "src/surf/maxmin_private.hpp" + /*********** * Classes * ***********/ @@ -37,9 +27,6 @@ class CpuAction; */ XBT_PUBLIC_CLASS CpuModel : public Model { public: - CpuModel() : Model() {}; - ~CpuModel() = default; - /** * @brief Create a Cpu * @@ -51,7 +38,6 @@ public: void updateActionsStateLazy(double now, double delta) override; void updateActionsStateFull(double now, double delta) override; - bool next_occuring_event_isIdempotent() override; }; /************ @@ -105,7 +91,7 @@ public: virtual simgrid::surf::Action *sleep(double duration)=0; /** @brief Get the amount of cores */ - virtual int getCoreCount(); + virtual int coreCount(); /** @brief Get the speed, accounting for the trace load and provided process load instead of the real current one */ virtual double getSpeed(double load); @@ -119,7 +105,6 @@ public: virtual double getAvailableSpeed(); /** @brief Get the current Cpu computational speed */ - virtual double getPstateSpeedCurrent(); virtual double getPstateSpeed(int pstate_index); virtual int getNbPStates(); @@ -128,14 +113,12 @@ public: simgrid::s4u::Host* getHost() { return host_; } -public: int coresAmount_ = 1; simgrid::s4u::Host* host_; std::vector speedPerPstate_; /*< List of supported CPU capacities (pstate related) */ int pstate_ = 0; /*< Current pstate (index in the speedPeakList)*/ -public: virtual void setStateTrace(tmgr_trace_t trace); /*< setup the trace file with states events (ON or OFF). Trace must contain boolean values (0 or 1). */ virtual void setSpeedTrace(tmgr_trace_t trace); /*< setup the trace file with availability events (peak speed changes due to external load). Trace must contain relative values (ratio between 0 and 1) */