summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2020-08-14 12:09:49 +0200
committerGitHub <noreply@github.com>2020-08-14 12:09:49 +0200
commit9c8c31b24167db07c1bb90f7fe109e2ba0693229 (patch)
tree15c9965db92fd3dac071aa0f53b987db072a5c68
parent33ea7ef8fdbe272ce3b94c33679c865d6b628021 (diff)
parent1c26e70bbc9d18044094322e6b8c19db7eee6958 (diff)
downloadnixpkgs-9c8c31b24167db07c1bb90f7fe109e2ba0693229.tar
nixpkgs-9c8c31b24167db07c1bb90f7fe109e2ba0693229.tar.gz
nixpkgs-9c8c31b24167db07c1bb90f7fe109e2ba0693229.tar.bz2
nixpkgs-9c8c31b24167db07c1bb90f7fe109e2ba0693229.tar.lz
nixpkgs-9c8c31b24167db07c1bb90f7fe109e2ba0693229.tar.xz
nixpkgs-9c8c31b24167db07c1bb90f7fe109e2ba0693229.tar.zst
nixpkgs-9c8c31b24167db07c1bb90f7fe109e2ba0693229.zip
Merge pull request #95086 from danieldk/manual-intel-opencl
nixos/manual: add a section about enabling OpenCL for Intel GPUs
-rw-r--r--nixos/doc/manual/configuration/gpu-accel.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixos/doc/manual/configuration/gpu-accel.xml b/nixos/doc/manual/configuration/gpu-accel.xml
index dc806e8812d..9928121a56e 100644
--- a/nixos/doc/manual/configuration/gpu-accel.xml
+++ b/nixos/doc/manual/configuration/gpu-accel.xml
@@ -100,6 +100,35 @@ ROCR_EXT_DIR=`nix-build '&lt;nixpkgs&gt;' --no-out-link -A rocm-runtime-ext`/lib
   Image support      Yes</screen>
       </para>
     </section>
+
+    <section xml:id="sec-gpu-accel-opencl-intel">
+      <title>Intel</title>
+
+      <para>
+       <link
+         xlink:href="https://en.wikipedia.org/wiki/List_of_Intel_graphics_processing_units#Gen8">Intel
+       Gen8 and later GPUs</link> are supported by the Intel NEO OpenCL
+       runtime that is provided by the
+       <package>intel-compute-runtime</package> package. For Gen7 GPUs,
+       the deprecated Beignet runtime can be used, which is provided
+       by the <package>beignet</package> package. The proprietary Intel
+       OpenCL runtime, in the <package>intel-ocl</package> package, is
+       an alternative for Gen7 GPUs.
+      </para>
+
+      <para>
+       The <package>intel-compute-runtime</package>, <package>beignet</package>,
+       or <package>intel-ocl</package> package can be added to
+       <xref linkend="opt-hardware.opengl.extraPackages"/> to enable OpenCL
+       support. For example, for Gen8 and later GPUs, the following
+       configuration can be used:
+
+	      <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [
+  intel-compute-runtime
+];</programlisting>
+
+      </para>
+    </section>
   </section>
 
   <section xml:id="sec-gpu-accel-vulkan">