浏览代码

mpi/examples/stencil/stencil5.c: use cpu_funcs and modes

Nathalie Furmento 13 年之前
父节点
当前提交
f7689dc464
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      mpi/examples/stencil/stencil5.c

+ 4 - 3
mpi/examples/stencil/stencil5.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  *
- * Copyright (C) 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2011, 2012  Centre National de la Recherche Scientifique
  *
  *
  * StarPU is free software; you can redistribute it and/or modify
  * 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
  * it under the terms of the GNU Lesser General Public License as published by
@@ -32,8 +32,9 @@ void stencil5_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 struct starpu_codelet stencil5_cl =
 struct starpu_codelet stencil5_cl =
 {
 {
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
-	.cpu_func = stencil5_cpu,
-        .nbuffers = 5
+	.cpu_funcs = {stencil5_cpu, NULL},
+        .nbuffers = 5,
+	.modes = {STARPU_RW, STARPU_R, STARPU_R, STARPU_R, STARPU_R}
 };
 };
 
 
 #define NITER_DEF 500
 #define NITER_DEF 500