ソースを参照

mpi/tests/mpi_reduction.c: fix data handles access modes defined by the codelet

Nathalie Furmento 12 年 前
コミット
053e156e71
共有1 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 3 3
      mpi/tests/mpi_reduction.c

+ 3 - 3
mpi/tests/mpi_reduction.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2013  Université de Bordeaux 1
- * Copyright (C) 2012  Centre National de la Recherche Scientifique
+ * Copyright (C) 2012, 2013  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -27,7 +27,7 @@ static struct starpu_codelet init_codelet =
 {
 	.cpu_funcs = {init_cpu_func, NULL},
 	.nbuffers = 1,
-	.modes = {STARPU_R},
+	.modes = {STARPU_W},
 	.name = "init_codelet"
 };
 
@@ -51,7 +51,7 @@ static struct starpu_codelet display_codelet =
 {
 	.cpu_funcs = {display_cpu_func, NULL},
 	.nbuffers = 1,
-	.modes = {STARPU_W},
+	.modes = {STARPU_R},
 	.name = "display_codelet"
 };