瀏覽代碼

add opencl function to codelet

Samuel Thibault 15 年之前
父節點
當前提交
194a5ff58c
共有 1 個文件被更改,包括 2 次插入1 次删除
  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} */
 /* @b{Definition of the codelet} */
 static starpu_codelet cl = @{
 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} */
                                      /* @b{or on a CUDA device} */
     .cuda_func = scal_cuda_func;
     .cuda_func = scal_cuda_func;
     .cpu_func = scal_cpu_func;
     .cpu_func = scal_cpu_func;
+    .opencl_func = scal_opencl_func;
     .nbuffers = 1;
     .nbuffers = 1;
 @}
 @}