Browse Source

Add no_submitorder field for internal use by starpu_replay and starpu_sched_replay

Samuel Thibault 7 years ago
parent
commit
e691f1a03c
2 changed files with 3 additions and 1 deletions
  1. 2 0
      include/starpu_task.h
  2. 1 1
      src/common/fxt.h

+ 2 - 0
include/starpu_task.h

@@ -186,6 +186,8 @@ struct starpu_task
 
 
 	unsigned int mf_skip:1;
 	unsigned int mf_skip:1;
 
 
+	unsigned no_submitorder:1; /* do not allocate a submitorder id for this task */
+
 	unsigned workerid;
 	unsigned workerid;
 	unsigned workerorder;
 	unsigned workerorder;
 	uint32_t *workerids;
 	uint32_t *workerids;

+ 1 - 1
src/common/fxt.h

@@ -766,7 +766,7 @@ do {										\
 	FUT_DO_PROBE1(_STARPU_FUT_WORKER_SLEEP_END, _starpu_gettid());
 	FUT_DO_PROBE1(_STARPU_FUT_WORKER_SLEEP_END, _starpu_gettid());
 
 
 #define _STARPU_TRACE_TASK_SUBMIT(job, iter, subiter)	\
 #define _STARPU_TRACE_TASK_SUBMIT(job, iter, subiter)	\
-	FUT_DO_PROBE6(_STARPU_FUT_TASK_SUBMIT, (job)->job_id, iter, subiter, _starpu_fxt_get_submit_order(), (job)->task->priority, _starpu_gettid());
+	FUT_DO_PROBE6(_STARPU_FUT_TASK_SUBMIT, (job)->job_id, iter, subiter, (job)->task->no_submitorder?0:_starpu_fxt_get_submit_order(), (job)->task->priority, _starpu_gettid());
 
 
 #define _STARPU_TRACE_TASK_SUBMIT_START()	\
 #define _STARPU_TRACE_TASK_SUBMIT_START()	\
 	FUT_DO_PROBE1(_STARPU_FUT_TASK_SUBMIT_START, _starpu_gettid());
 	FUT_DO_PROBE1(_STARPU_FUT_TASK_SUBMIT_START, _starpu_gettid());