瀏覽代碼

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"
 };