浏览代码

doc: new section explaining OpenCL and CUDA device selection

Nathalie Furmento 14 年之前
父节点
当前提交
b7288c142a
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      doc/starpu.texi

+ 14 - 0
doc/starpu.texi

@@ -324,6 +324,7 @@ configuration:
 @menu
 * Setting flags for compiling and linking applications::  
 * Running a basic StarPU application::  
+* Using accelerators::          
 @end menu
 
 @node Setting flags for compiling and linking applications
@@ -372,6 +373,19 @@ Please note that buses are benchmarked when StarPU is launched for the
 first time. This may take a few minutes, or less if @code{hwloc} is
 installed. This step is done only once per user and per machine.
 
+@node Using accelerators
+@section Using accelerators
+
+When both CUDA and OpenCL drivers are enabled, StarPU will launch an
+OpenCL worker only if CUDA is not already running on the GPU.
+This design choice was necessary as OpenCL and CUDA can not run at the
+same time on the same GPU, as there is currently no interoperability
+between them.
+
+Details on how to specify devices running OpenCL and the ones running
+CUDA are given in @ref{Enabling OpenCL}.
+
+
 @c ---------------------------------------------------------------------
 @c Basic Examples
 @c ---------------------------------------------------------------------