Browse Source

- factorize code

Olivier Aumage 11 years ago
parent
commit
e557c03ffa
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tests/openmp/parallel_single_copyprivate_inline_01.c

+ 1 - 2
tests/openmp/parallel_single_copyprivate_inline_01.c

@@ -57,13 +57,12 @@ void parallel_region_f(void *buffers[], void *args)
 		{
 			printf("[tid %p] task thread = %d -- single\n", (void *)tid, worker_id);
 			single_worker_id = worker_id;
-			starpu_omp_single_copyprivate_inline_end();
 		}
 		else
 		{
 			memcpy(&single_worker_id, single_data, sizeof(single_worker_id));
-			starpu_omp_single_copyprivate_inline_end();
 		}
+		starpu_omp_single_copyprivate_inline_end();
 		printf("[tid %p] task thread = %d -- single_worker_id = %d\n", (void *)tid, worker_id, single_worker_id);
 	}