AmdCompute : Move ROCm from AmdGpu.
This commit is contained in:
parent
4107c19769
commit
fb61394010
|
@ -174,6 +174,7 @@
|
|||
hostname = "desktop";
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./module/AmdCompute.nix
|
||||
./module/AmdCpu.nix
|
||||
./module/AmdGpu.nix
|
||||
./module/Desktop.nix
|
||||
|
|
9
module/AmdCompute.nix
Normal file
9
module/AmdCompute.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ nixpkgs, pkgs, ... }: {
|
||||
nixpkgs.config.rocmSupport = true;
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
];
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
];
|
||||
}
|
|
@ -5,15 +5,6 @@
|
|||
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