Browse Source

src/core/dependencies/implicit_data_deps.c: check the return value of starpu_task_wait().

Cyril Roelandt 13 years ago
parent
commit
65303f8ce5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/core/dependencies/implicit_data_deps.c

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

@@ -494,7 +494,8 @@ int _starpu_data_wait_until_available(starpu_data_handle_t handle, enum starpu_a
 		/* TODO detect if this is superflous */
 		/* TODO detect if this is superflous */
 		int ret = starpu_task_submit(sync_task);
 		int ret = starpu_task_submit(sync_task);
 		STARPU_ASSERT(!ret);
 		STARPU_ASSERT(!ret);
-		starpu_task_wait(sync_task);
+		ret = starpu_task_wait(sync_task);
+		STARPU_ASSERT(ret == 0);
 	}
 	}
 	else
 	else
 	{
 	{