Selaa lähdekoodia

Don't destroy task created by starpu_task_create

Samuel Thibault 13 vuotta sitten
vanhempi
commit
fe5e400981
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      examples/openmp/vector_scal.c

+ 1 - 3
examples/openmp/vector_scal.c

@@ -17,7 +17,7 @@
 
 /* gcc build:
 
-   gcc -fopenmp vector_scal.c -o vector_scal $(pkg-config --cflags starpu-1.0) $(pkg-config --libs starpu-1.0)
+   gcc -fopenmp -O2 -g vector_scal.c -o vector_scal $(pkg-config --cflags starpu-1.0) $(pkg-config --libs starpu-1.0)
 
  */
 
@@ -102,8 +102,6 @@ int main(int argc, char **argv)
 
 	starpu_data_unregister(vector_handle);
 
-	starpu_task_destroy(task);
-
 	/* terminate StarPU, no task can be submitted after */
 	starpu_shutdown();