Browse Source

give a name to synchronization tasks

Samuel Thibault 14 years ago
parent
commit
1c6c10bf8a
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/core/dependencies/implicit_data_deps.c

+ 8 - 2
src/core/dependencies/implicit_data_deps.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux 1
+ * Copyright (C) 2010-2011  Université de Bordeaux 1
  * Copyright (C) 2010  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -255,7 +255,10 @@ void _starpu_detect_implicit_data_deps_with_handle(struct starpu_task *pre_sync_
 				new_sync_task->cl = NULL;
 				new_sync_task->callback_func = disable_last_writer_callback;
 				new_sync_task->callback_arg = handle;
-				
+#ifdef STARPU_USE_FXT
+				_starpu_get_job_associated_to_task(new_sync_task)->model_name = "sync_task";
+#endif
+
 				_starpu_add_writer_after_readers(handle, new_sync_task, new_sync_task);
 
 				starpu_task_submit(new_sync_task);
@@ -461,6 +464,9 @@ int _starpu_data_wait_until_available(starpu_data_handle handle, starpu_access_m
 		sync_task = starpu_task_create();
 		sync_task->detach = 0;
 		sync_task->destroy = 1;
+#ifdef STARPU_USE_FXT
+		_starpu_get_job_associated_to_task(sync_task)->model_name = "sync_task";
+#endif
 
 		/* It is not really a RW access, but we want to make sure that
 		 * all previous accesses are done */