mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Hardware/AMD] tune system to better utilize ROCm
This commit is contained in:
parent
3741bcd6b8
commit
e82629a01b
1 changed files with 12 additions and 1 deletions
|
|
@ -47,8 +47,13 @@ in {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||||
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
"AMD_VULKAN_ICD" = strings.toUpper cfg.defaultVulkanImplementation;
|
AMD_VULKAN_ICD = strings.toUpper cfg.defaultVulkanImplementation;
|
||||||
|
ROC_ENABLE_PRE_VEGA = "1"; # Enable OpenCL with Polaris GPUs
|
||||||
};
|
};
|
||||||
|
|
||||||
# Make rocblas and rocfft work
|
# Make rocblas and rocfft work
|
||||||
|
|
@ -57,5 +62,11 @@ in {
|
||||||
"/sys/devices/virtual/kfd?"
|
"/sys/devices/virtual/kfd?"
|
||||||
"/dev/dri/renderD128?"
|
"/dev/dri/renderD128?"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.overlays = [(final: prev: {
|
||||||
|
# Overlay Blender to use the HIP build if we have a compatible AMD GPU
|
||||||
|
blender = final.blender-hip;
|
||||||
|
blender-prev = prev.blender;
|
||||||
|
})];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue