}
/** @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);
CpuCas01(CpuCas01Model *model, simgrid::s4u::Host *host, std::vector<double> *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;
~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;
};