Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
LOOPAFTER is a better name for profile periodicity
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 15 May 2017 08:43:10 +0000 (10:43 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 15 May 2017 08:43:10 +0000 (10:43 +0200)
15 files changed:
doc/doxygen/howtos.doc
examples/platforms/trace/link1_avail.trace
examples/platforms/trace/linkBandwidth7.bw
examples/platforms/trace/trace_A.txt
examples/platforms/trace/trace_A_failure.txt
examples/platforms/trace/trace_B.txt
src/surf/surf_c_bindings.cpp
src/surf/trace_mgr.cpp
src/surf/trace_mgr_test.cpp
teshsuite/simdag/platforms/bob.trace
teshsuite/simdag/platforms/carol.fail
teshsuite/simdag/platforms/erin.avail
teshsuite/simdag/platforms/link.bw
teshsuite/simdag/platforms/link.fail
teshsuite/simdag/platforms/link.lat

index 42d1459..a764b7a 100644 (file)
@@ -35,7 +35,7 @@ the form "date value". Example:
 ~~~{.py}
   1 0
   2 1
WAITFOR 8
LOOPAFTER 8
 ~~~
 
  - At time t=1, the host is turned off (value 0 means OFF)
@@ -43,7 +43,7 @@ the form "date value". Example:
  - At time t=10, the history is reset (because that's 8 seconds after
    the last event). So the host will be turned off again at t=11.
 
-If your trace does not contain a WAITFOR line, then your profile is
+If your trace does not contain a LOOPAFTER line, then your profile is
 only executed once and not repetitively.
 
 @section howto_multicore How to model multicore machines
index 25ccce5..5320d5d 100644 (file)
@@ -2,5 +2,5 @@
 4.199387092709633 1.0335587797993976E8
 5.319464737378834 1.0591433767387845E7
 7.237437222882919 7.037797434537312E7
-WAITFOR 0.76256277712
+LOOPAFTER 0.76256277712
 # Wait until t=8
index 9487874..78c04c4 100644 (file)
@@ -1,4 +1,4 @@
 0 1.0
 11 0.5
 20 0.9
-WAITFOR 1
+LOOPAFTER 1
index ba0b41d..38da833 100644 (file)
@@ -1,4 +1,4 @@
 0 1.0
 10 0.8
 20 0.4
-WAITFOR 10
+LOOPAFTER 10
index 8207100..85582c5 100644 (file)
@@ -28,9 +28,8 @@ void surf_presolve()
       break;
 
     while ((event = future_evt_set->pop_leq(next_event_date, &value, &resource))) {
-      if (value >= 0){
+      if (value >= 0)
         resource->apply_event(event, value);
-      }
     }
   }
 
index a67c7d4..d8ea885 100644 (file)
@@ -77,7 +77,7 @@ tmgr_trace_t tmgr_trace_new_from_string(const char* name, std::string input, dou
       continue;
     if (sscanf(val.c_str(), "PERIODICITY %lg\n", &periodicity) == 1)
       continue;
-    if (sscanf(val.c_str(), "WAITFOR %lg\n", &periodicity) == 1)
+    if (sscanf(val.c_str(), "LOOPAFTER %lg\n", &periodicity) == 1)
       continue;
 
     xbt_assert(sscanf(val.c_str(), "%lg  %lg\n", &event.date_, &event.value_) == 2, "%s:%d: Syntax error in trace\n%s",
index 30c53c6..4b81b68 100644 (file)
@@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(two_evt_loop)
   std::vector<tmgr::DatedValue> got;
   trace2vector("1.0 1.0\n"
                "3.0 3.0\n"
-               "WAITFOR 2\n",
+               "LOOPAFTER 2\n",
                &got);
 
   std::vector<tmgr::DatedValue> want;
@@ -133,7 +133,7 @@ BOOST_AUTO_TEST_CASE(two_evt_start0_loop)
   std::vector<tmgr::DatedValue> got;
   trace2vector("0.0 1\n"
                "5.0 2\n"
-               "WAITFOR 5\n",
+               "LOOPAFTER 5\n",
                &got);
 
   std::vector<tmgr::DatedValue> want;
index 053f1e5..af700d0 100644 (file)
@@ -1,4 +1,4 @@
  0 1.0
 11 0.5
 20 0.8
-WAITFOR 1
+LOOPAFTER 1
index b74fe35..4c7378e 100644 (file)
@@ -1,4 +1,4 @@
  0 1.0
  9 0.7
 15 0.4
-WAITFOR 1
+LOOPAFTER 1
index f858489..c91df60 100644 (file)
@@ -1,3 +1,3 @@
  4 40000000
  8 60000000
-WAITFOR 12
+LOOPAFTER 12
index 5e2eb9a..d447a89 100644 (file)
@@ -1,4 +1,4 @@
 1 0.001
 2 0.01
 3 0.001
-WAITFOR 5
+LOOPAFTER 5