Explorar o código

injecting small delay into simgrid when new task is submitted

Luka Stanisic %!s(int64=9) %!d(string=hai) anos
pai
achega
ba0d22a585
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/core/task.c

+ 3 - 0
src/core/task.c

@@ -681,6 +681,9 @@ int starpu_task_submit(struct starpu_task *task)
 		_starpu_clock_gettime(&info->submit_time);
 
 	ret = _starpu_submit_job(j);
+#ifdef STARPU_SIMGRID
+    MSG_process_sleep(0.0000001);
+#endif
 
 	if (is_sync)
 	{