AmdCompute : Move ROCm from AmdGpu.
This commit is contained in:
parent
4107c19769
commit
fb61394010
|
@ -174,6 +174,7 @@
|
||||||
hostname = "desktop";
|
hostname = "desktop";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
./module/AmdCompute.nix
|
||||||
./module/AmdCpu.nix
|
./module/AmdCpu.nix
|
||||||
./module/AmdGpu.nix
|
./module/AmdGpu.nix
|
||||||
./module/Desktop.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;
|
hardware.opengl.driSupport32Bit = true;
|
||||||
environment.variables.AMD_VULKAN_ICD = "RADV";
|
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.
|
# AMDVLK was broken for me (huge stuttering). So keep it disabled, at least for now.
|
||||||
# hardware.opengl.extraPackages = with pkgs; [
|
# hardware.opengl.extraPackages = with pkgs; [
|
||||||
# amdvlk
|
# amdvlk
|
||||||
|
|
Loading…
Reference in a new issue