X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/58a6e74bc2e1f188543734ef1778169823c090c3..bad4812e36b65cbfa8f5d14b56cd7fad34f1792b:/src/surf/ptask_L07.hpp diff --git a/src/surf/ptask_L07.hpp b/src/surf/ptask_L07.hpp index adcc812d19..cf70d56635 100644 --- a/src/surf/ptask_L07.hpp +++ b/src/surf/ptask_L07.hpp @@ -38,16 +38,11 @@ public: HostL07Model(); HostL07Model(const HostL07Model&) = delete; HostL07Model& operator=(const HostL07Model&) = delete; - ~HostL07Model() override; double next_occurring_event(double now) override; void update_actions_state(double now, double delta) override; kernel::resource::CpuAction* execute_parallel(const std::vector& host_list, const double* flops_amount, const double* bytes_amount, double rate) override; - -private: - std::unique_ptr network_model_; - std::unique_ptr cpu_model_pm_; }; class CpuL07Model : public kernel::resource::CpuModel { @@ -56,6 +51,11 @@ public: CpuL07Model(const CpuL07Model&) = delete; CpuL07Model& operator=(const CpuL07Model&) = delete; ~CpuL07Model() override; + void update_actions_state(double /*now*/, double /*delta*/) override{ + /* this action is done by HostL07Model which shares the LMM system with the CPU model + * Overriding to an empty function here allows us to handle the Cpu07Model as a regular + * method in surf_presolve */ + }; kernel::resource::Cpu* create_cpu(s4u::Host* host, const std::vector& speed_per_pstate) override; HostL07Model* hostModel_; @@ -71,6 +71,11 @@ public: s4u::Link::SharingPolicy policy) override; kernel::resource::Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override; + void update_actions_state(double /*now*/, double /*delta*/) override{ + /* this action is done by HostL07Model which shares the LMM system with the CPU model + * Overriding to an empty function here allows us to handle the Cpu07Model as a regular + * method in surf_presolve */ + }; HostL07Model* hostModel_; }; @@ -81,7 +86,7 @@ public: class CpuL07 : public kernel::resource::Cpu { public: - CpuL07(s4u::Host* host, const std::vector& speed_per_pstate) : Cpu(host, speed_per_pstate){}; + using kernel::resource::Cpu::Cpu; CpuL07(const CpuL07&) = delete; CpuL07& operator=(const CpuL07&) = delete;