Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 23 Feb 2018 20:44:23 +0000 (21:44 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 23 Feb 2018 20:44:23 +0000 (21:44 +0100)
src/bindings/java/org/simgrid/msg/Process.java
src/simdag/sd_global.cpp
src/surf/cpu_cas01.cpp
src/surf/cpu_cas01.hpp
src/surf/ptask_L07.hpp

index 7dc38c9..6c06550 100644 (file)
@@ -107,7 +107,7 @@ public abstract class Process implements Runnable {
         *
         * @param host                  Where to create the process.
         * @param name                  The name of the process.
-        * @param args                  The arguments of main method of the process.
+        * @param argsParam             The arguments of main method of the process.
         */     
        public Process(Host host, String name, String[]argsParam) 
        {
index 88656c0..44767bc 100644 (file)
@@ -57,7 +57,7 @@ std::set<SD_task_t>* simulate(double how_long){
     /* let's see which tasks are done */
     for (auto const& model : *all_existing_models) {
       surf_action_t action = surf_model_extract_done_action_set(model);
-      while (action != nullptr) {
+      while (action != nullptr && action->getData() != nullptr) {
         SD_task_t task = static_cast<SD_task_t>(action->getData());
         XBT_VERB("Task '%s' done", SD_task_get_name(task));
         SD_task_set_state(task, SD_DONE);
index 369d1f7..6d8ca3c 100644 (file)
@@ -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)
+CpuActionCpuCas01::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);
index 4516d98..938c39e 100644 (file)
@@ -40,9 +40,9 @@ public:
   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;
+  CpuActionexecution_start(double size) override;
   CpuAction* execution_start(double size, int requestedCore) override;
-  CpuAction *sleep(double duration) override;
+  CpuActionsleep(double duration) override;
 
   bool isUsed() override;
 
index 70d128b..4ae5bb8 100644 (file)
@@ -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;
 };