Explorar el Código

Make examples/tag_example/tag_example3 and examples/tag_example/tag_example4 work with OpenCL.

Cyril Roelandt hace 13 años
padre
commit
a9a7c6c234
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      examples/tag_example/tag_example3.c
  2. 2 2
      examples/tag_example/tag_example4.c

+ 1 - 1
examples/tag_example/tag_example3.c

@@ -136,10 +136,10 @@ int main(int argc __attribute__((unused)) , char **argv __attribute__((unused)))
 
 	cl.cpu_funcs[0] = cpu_codelet;
 	cl.cuda_funcs[0] = cpu_codelet;
+	cl.opencl_funcs[0] = cpu_codelet;
 #ifdef STARPU_USE_GORDON
 	cl.gordon_func = gordon_null_kernel;
 #endif
-	cl.where = STARPU_CPU|STARPU_CUDA|STARPU_GORDON;
 	cl.nbuffers = 0;
 
 	FPRINTF(stderr, "ITER : %u\n", nk);

+ 2 - 2
examples/tag_example/tag_example4.c

@@ -52,14 +52,14 @@ void cpu_codelet_B(void *descr[], void *_args)
 struct starpu_codelet cl_A = {
 	.cpu_funcs = { cpu_codelet_A, NULL},
 	.cuda_funcs = { cpu_codelet_A, NULL},
-	.where = STARPU_CPU|STARPU_CUDA,
+	.opencl_funcs = { cpu_codelet_A, NULL},
 	.nbuffers = 0,
 };
 
 struct starpu_codelet cl_B = {
 	.cpu_funcs = { cpu_codelet_B, NULL},
 	.cuda_funcs = { cpu_codelet_B, NULL},
-	.where = STARPU_CPU|STARPU_CUDA,
+	.opencl_funcs = { cpu_codelet_B, NULL},
 	.nbuffers = 0,
 };