Graphics: Difference between revisions
m 'glxinfo' has been renamed to/replaced by 'mesa-demos' |
Mildsunrise (talk | contribs) →OpenCL: address possible mesa confusion |
||
| Line 42: | Line 42: | ||
== OpenCL == | == OpenCL == | ||
Computing things on the GPU is supported through the OpenCL API. To enable OpenCL support, add the right packages for your hardware to <code>hardware.graphics.extraPackages</code>. See also [https://wiki.archlinux.org/title/GPGPU the Arch Wiki]. | Computing things on the GPU is supported through the OpenCL API. To enable OpenCL support, add the right packages for your hardware to <code>hardware.graphics.extraPackages</code> (note that despite Mesa being present by default, its OpenCL drivers are placed in a separate <code>opencl</code> output that must be manually added). See also [https://wiki.archlinux.org/title/GPGPU the Arch Wiki]. | ||
To verify OpenCL support: <code>nix shell nixpkgs#clinfo -c clinfo</code> | To verify OpenCL support: <code>nix shell nixpkgs#clinfo -c clinfo</code> | ||