@@ -109,6 +109,10 @@ int main(int argc, char **argv)
if (ncpus == 0)
{
+#ifdef STARPU_USE_CPU
+ free(procs1);
+ free(procs2);
+#endif
starpu_shutdown();
return 77;
}
@@ -199,6 +203,10 @@ int main(int argc, char **argv)
printf("ctx%d: tasks starpu executed %d out of %d\n", sched_ctx1, tasks_executed[0], NTASKS);
printf("ctx%d: tasks starpu executed %d out of %d\n", sched_ctx2, tasks_executed[1], NTASKS);
return 0;
@@ -156,6 +156,10 @@ int main(int argc, char **argv)
printf("ctx%d: tasks starpu executed %d out of %d\n", sched_ctx2, tasks_executed[1], NTASKS*NTASKS);
enodev:
return ncpus == 0 ? 77 : 0;
@@ -85,6 +85,7 @@ int main()
FPRINTF(stderr, "timing init = %lf \n", timing);
co->deinit(co);
+ free(co);