Przeglądaj źródła

add opencl function to codelet

Samuel Thibault 15 lat temu
rodzic
commit
194a5ff58c
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      doc/starpu.texi

+ 2 - 1
doc/starpu.texi

@@ -2324,10 +2324,11 @@ extern void scal_cpu_func(void *buffers[], void *_args);
 
 /* @b{Definition of the codelet} */
 static starpu_codelet cl = @{
-    .where = STARPU_CPU|STARPU_CUDA; /* @b{It can be executed on a CPU} */
+    .where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL; /* @b{It can be executed on a CPU} */
                                      /* @b{or on a CUDA device} */
     .cuda_func = scal_cuda_func;
     .cpu_func = scal_cpu_func;
+    .opencl_func = scal_opencl_func;
     .nbuffers = 1;
 @}