浏览代码

tests/datawizard/manual_reduction.c: wait for previous tasks when submission fails

Nathalie Furmento 13 年之前
父节点
当前提交
6d16ea76af
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/datawizard/manual_reduction.c

+ 1 - 0
tests/datawizard/manual_reduction.c

@@ -226,6 +226,7 @@ int main(int argc, char **argv)
 
 
 enodev:
 enodev:
 	fprintf(stderr, "WARNING: No one can execute this task\n");
 	fprintf(stderr, "WARNING: No one can execute this task\n");
+	starpu_task_wait_for_all();
 	/* yes, we do not perform the computation but we did detect that no one
 	/* yes, we do not perform the computation but we did detect that no one
  	 * could perform the kernel, so this is not an error from StarPU */
  	 * could perform the kernel, so this is not an error from StarPU */
 	starpu_shutdown();
 	starpu_shutdown();