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

port r11179 from 1.1: The starpufft caller can wait for the last task, the last task thus must not be detached

Samuel Thibault лет назад: 11
Родитель
Сommit
d74d3de4a0
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 1
      starpufft/starpufftx1d.c
  2. 2 1
      starpufft/starpufftx2d.c

+ 2 - 1
starpufft/starpufftx1d.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009-2012  Université de Bordeaux 1
+ * Copyright (C) 2009-2013  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -780,6 +780,7 @@ if (PARALLEL) {
 	task->tag_id = STEP_TAG_1D(plan, END, 0);
 	task->use_tag = 1;
 	task->destroy = 0;
+	task->detach = 0;
 
 }
 

+ 2 - 1
starpufft/starpufftx2d.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009-2012  Université de Bordeaux 1
+ ; Copyright (C) 2009-2013  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -778,6 +778,7 @@ if (PARALLEL) {
 	task->tag_id = STEP_TAG_2D(plan, END, 0, 0);
 	task->use_tag = 1;
 	task->destroy = 0;
+	task->detach = 0;
 
 }