AmdGpu : Enable ROCm support.
This commit is contained in:
parent
2be3d8108c
commit
4107c19769
|
@ -1,9 +1,19 @@
|
|||
{ pkgs, ... }: {
|
||||
{ nixpkgs, pkgs, ... }: {
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
hardware.opengl.driSupport = true;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
environment.variables.AMD_VULKAN_ICD = "RADV";
|
||||
|
||||
# Compute.
|
||||
nixpkgs.config.rocmSupport = true;
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
];
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
];
|
||||
|
||||
# AMDVLK was broken for me (huge stuttering). So keep it disabled, at least for now.
|
||||
# hardware.opengl.extraPackages = with pkgs; [
|
||||
# amdvlk
|
||||
|
|
Loading…
Reference in a new issue