mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
fix(common/gpu/amd): use new rocmPackages
This commit is contained in:
parent
3d4a18fac8
commit
fb6af288f6
1 changed files with 9 additions and 9 deletions
|
@ -10,7 +10,7 @@
|
||||||
"use amdvlk drivers instead mesa radv drivers"
|
"use amdvlk drivers instead mesa radv drivers"
|
||||||
);
|
);
|
||||||
options.hardware.amdgpu.opencl = lib.mkEnableOption (lib.mdDoc
|
options.hardware.amdgpu.opencl = lib.mkEnableOption (lib.mdDoc
|
||||||
"rocm opencl runtime (Install rocm-opencl-icd and rocm-opencl-runtime)"
|
"rocm opencl runtime (Install rocmPackages.clr and rocmPackages.clr.icd)"
|
||||||
) // {
|
) // {
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
@ -37,10 +37,10 @@
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
(lib.mkIf config.hardware.amdgpu.opencl {
|
(lib.mkIf config.hardware.amdgpu.opencl {
|
||||||
hardware.opengl.extraPackages = with pkgs; [
|
hardware.opengl.extraPackages =
|
||||||
rocm-opencl-icd
|
if pkgs ? rocmPackages.clr
|
||||||
rocm-opencl-runtime
|
then with pkgs.rocmPackages; [ clr clr.icd ]
|
||||||
];
|
else with pkgs; [ rocm-opencl-icd rocm-opencl-runtime ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue