From: Frederic Suter Date: Tue, 20 Feb 2018 20:59:09 +0000 (+0100) Subject: cosmetics X-Git-Tag: v3.19~183 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6cb7d1fc585d47d6dbad8c288e8f275448f8025c?hp=6d3f858df02279918d1973a2eb86704bd3c3d490 cosmetics --- diff --git a/src/surf/cpu_cas01.cpp b/src/surf/cpu_cas01.cpp index 369d1f78ab..6d8ca3cc7c 100644 --- a/src/surf/cpu_cas01.cpp +++ b/src/surf/cpu_cas01.cpp @@ -156,10 +156,11 @@ void CpuCas01::apply_event(tmgr_trace_event_t event, double value) } /** @brief Start a new execution on this CPU lasting @param size flops and using one core */ -CpuAction *CpuCas01::execution_start(double size) +CpuAction* CpuCas01::execution_start(double size) { return new CpuCas01Action(model(), size, isOff(), speed_.scale * speed_.peak, constraint()); } + CpuAction* CpuCas01::execution_start(double size, int requestedCores) { return new CpuCas01Action(model(), size, isOff(), speed_.scale * speed_.peak, constraint(), requestedCores); diff --git a/src/surf/cpu_cas01.hpp b/src/surf/cpu_cas01.hpp index 4516d98968..938c39e0ba 100644 --- a/src/surf/cpu_cas01.hpp +++ b/src/surf/cpu_cas01.hpp @@ -40,9 +40,9 @@ public: CpuCas01(CpuCas01Model *model, simgrid::s4u::Host *host, std::vector *speedPerPstate, int core); ~CpuCas01() override; void apply_event(tmgr_trace_event_t event, double value) override; - CpuAction *execution_start(double size) override; + CpuAction* execution_start(double size) override; CpuAction* execution_start(double size, int requestedCore) override; - CpuAction *sleep(double duration) override; + CpuAction* sleep(double duration) override; bool isUsed() override; diff --git a/src/surf/ptask_L07.hpp b/src/surf/ptask_L07.hpp index 70d128ba5a..4ae5bb8dd8 100644 --- a/src/surf/ptask_L07.hpp +++ b/src/surf/ptask_L07.hpp @@ -76,8 +76,9 @@ public: ~CpuL07() override; bool isUsed() override; void apply_event(tmgr_trace_event_t event, double value) override; - Action *execution_start(double size) override; - Action *sleep(double duration) override; + Action* execution_start(double size) override; + Action* sleep(double duration) override; + protected: void onSpeedChange() override; };