Skip to content

Commit

Permalink
graphics: move to a mix of pocl and rocm
Browse files Browse the repository at this point in the history
rocm is for amdgpu

pocl is for amdcpu
  • Loading branch information
JohnRTitor committed Jul 6, 2024
1 parent 74e8000 commit 214e92c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion system/hardware/graphics.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{
config,
pkgs,
pkgs-edge,
...
}: let
nur-amdgpu = config.nur.repos.materus;
Expand All @@ -21,6 +22,10 @@ in {
libva-vdpau-driver
libvdpau-va-gl
libva
rocmPackages.clr.icd # OpenCL for AMD GPUs
])
++ (with pkgs-edge; [
pocl # OpenCL for CPU
])
++ (with nur-amdgpu; [
amdgpu-pro-libs.opengl
Expand All @@ -35,14 +40,15 @@ in {
};
environment.systemPackages = with pkgs; [
## GRAPHICS UTILS ##
clinfo # OpenCL hardware information
libva-utils # libva graphics library tools
vdpauinfo # vdpau graphics library tools
vulkan-tools # vulkan graphics library tools
];

hardware.amdgpu.initrd.enable = true;
hardware.amdgpu.legacySupport.enable = true;
hardware.amdgpu.opencl.enable = true;
hardware.amdgpu.opencl.enable = false;

hardware.amdgpu.amdvlk = {
enable = true;
Expand Down

0 comments on commit 214e92c

Please sign in to comment.