Przeglądaj źródła

examples/basic_examples/multiformat.c: revert #4974. Field where is no longer set automatically

Nathalie Furmento 13 lat temu
rodzic
commit
a30abc2ff4
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      examples/basic_examples/multiformat.c

+ 3 - 0
examples/basic_examples/multiformat.c

@@ -78,6 +78,7 @@ extern void multiformat_scal_opencl_func(void *buffers[], void *arg);
 #ifdef STARPU_USE_CPU
 static struct starpu_codelet cpu_cl =
 {
+	.where = STARPU_CPU,
 	.cpu_funcs = {multiformat_scal_cpu_func, NULL},
 	.nbuffers = 1,
 	.modes = { STARPU_RW },
@@ -88,6 +89,7 @@ static struct starpu_codelet cpu_cl =
 #ifdef STARPU_USE_CUDA
 static struct starpu_codelet cuda_cl =
 {
+	.where = STARPU_CUDA,
 	.cuda_funcs = { multiformat_scal_cuda_func, NULL },
 	.nbuffers = 1,
 	.modes = { STARPU_RW },
@@ -98,6 +100,7 @@ static struct starpu_codelet cuda_cl =
 #ifdef STARPU_USE_OPENCL
 static struct starpu_codelet opencl_cl =
 {
+	.where = STARPU_OPENCL,
 	.opencl_funcs = { multiformat_scal_opencl_func, NULL },
 	.nbuffers = 1,
 	.modes = { STARPU_RW },