Browse Source

simgrid: fix to correctly capture scheduling in traces. Also adding this to ChangeLog

Luka Stanisic 8 years ago
parent
commit
7ba361c61b
2 changed files with 4 additions and 2 deletions
  1. 2 0
      ChangeLog
  2. 2 2
      src/core/sched_policy.h

+ 2 - 0
ChangeLog

@@ -35,6 +35,8 @@ Small features:
     to simulate the cost of task submission and data fetching in simgrid mode.
     to simulate the cost of task submission and data fetching in simgrid mode.
     This provides more accurate simgrid predictions, especially for the
     This provides more accurate simgrid predictions, especially for the
     beginning of the execution and regarding data transfers.
     beginning of the execution and regarding data transfers.
+  * STARPU_SIMGRID_SCHED_COST to take into account the time to perform scheduling
+    when running in SimGrid mode.
   * New configure option --enable-mpi-pedantic-isend (disabled by
   * New configure option --enable-mpi-pedantic-isend (disabled by
     default) to acquire data in STARPU_RW (instead of STARPU_R) before
     default) to acquire data in STARPU_RW (instead of STARPU_R) before
     performing MPI_Isend call
     performing MPI_Isend call

+ 2 - 2
src/core/sched_policy.h

@@ -30,8 +30,8 @@
 	_STARPU_TRACE_WORKER_SCHEDULING_PUSH;	\
 	_STARPU_TRACE_WORKER_SCHEDULING_PUSH;	\
 	_SIMGRID_TIMER_BEGIN
 	_SIMGRID_TIMER_BEGIN
 #define _STARPU_SCHED_END \
 #define _STARPU_SCHED_END \
-	_STARPU_TRACE_WORKER_SCHEDULING_POP;	\
-	_SIMGRID_TIMER_END
+	_SIMGRID_TIMER_END;			\
+	_STARPU_TRACE_WORKER_SCHEDULING_POP
 
 
 void _starpu_sched_init(void);
 void _starpu_sched_init(void);