Browse Source

doc/tutorial: use xxx_funcs instead of xxx_func in struct starpu_codelet

Nathalie Furmento 13 years ago
parent
commit
cd27c65663
2 changed files with 4 additions and 4 deletions
  1. 1 1
      doc/tutorial/hello_world.c
  2. 3 3
      doc/tutorial/vector_scal.c

+ 1 - 1
doc/tutorial/hello_world.c

@@ -45,7 +45,7 @@ void cpu_func(void *buffers[], void *cl_arg)
 struct starpu_codelet cl =
 {
     .where = STARPU_CPU,
-    .cpu_func = cpu_func,
+    .cpu_funcs = {cpu_func, NULL},
     .nbuffers = 0
 };
 

+ 3 - 3
doc/tutorial/vector_scal.c

@@ -47,14 +47,14 @@ extern void scal_opencl_func(void *buffers[], void *_args);
 static struct starpu_codelet cl = {
     .where = STARPU_CPU | STARPU_CUDA | STARPU_OPENCL,
     /* CPU implementation of the codelet */
-    .cpu_func = scal_cpu_func,
+    .cpu_funcs = {scal_cpu_func, NULL},
 #ifdef STARPU_USE_CUDA
     /* CUDA implementation of the codelet */
-    .cuda_func = scal_cuda_func,
+    .cuda_funcs = {scal_cuda_func, NULL},
 #endif
 #ifdef STARPU_USE_OPENCL
     /* OpenCL implementation of the codelet */
-    .opencl_func = scal_opencl_func,
+    .opencl_funcs = {scal_opencl_func, NULL},
 #endif
     .nbuffers = 1
 };