|
@@ -1,6 +1,6 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
- * Copyright (C) 2010-2015 Université de Bordeaux
|
|
|
+ * Copyright (C) 2010-2016 Université de Bordeaux
|
|
|
* Copyright (C) 2010, 2011, 2012, 2013 CNRS
|
|
|
*
|
|
|
* StarPU is free software; you can redistribute it and/or modify
|
|
@@ -155,13 +155,13 @@ int main(int argc, char **argv)
|
|
|
FPRINTF(stderr, "Total: %f secs\n", timing/1000000);
|
|
|
FPRINTF(stderr, "Per task: %f usecs\n", timing/(ntasks*3));
|
|
|
|
|
|
- starpu_shutdown();
|
|
|
-
|
|
|
- /* Cleanup the statically allocated tasks after shutdown, as StarPU is still working on it after the callback */
|
|
|
+ starpu_task_wait_for_all();
|
|
|
starpu_task_clean(&taskA);
|
|
|
starpu_task_clean(&taskB);
|
|
|
starpu_task_clean(&taskC);
|
|
|
|
|
|
+ starpu_shutdown();
|
|
|
+
|
|
|
return EXIT_SUCCESS;
|
|
|
|
|
|
enodev:
|