AMD GPU: Difference between revisions
imported>Jiehong Create new page |
imported>Jiehong m Add OpenCL instructions |
||
| Line 19: | Line 19: | ||
services.xserver.videoDrivers = [ "amdgpu" ]; | services.xserver.videoDrivers = [ "amdgpu" ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== OpenCL == | |||
For any AMD GCN graphics card, add this to your hardware-configuration.nix: | |||
<syntaxhighlight lang="nix"> | |||
hardware.opengl.extraPackages = with pkgs; [ | |||
rocm-opencl-icd # NixOS Unstable | |||
khronos-ocl-icd-loader # NixOS 20.03 | |||
]; | |||
</syntaxhighlight> | |||
You should also install the clinfo package to verify that Open CL is correctly setup (or check in the program you use to see if it is now available, such as in Darktable). | |||