Просмотр исходного кода

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

Nathalie Furmento лет назад: 13
Родитель
Сommit
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:
 	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
  	 * could perform the kernel, so this is not an error from StarPU */
 	starpu_shutdown();