Skip to content

Commit

Permalink
tetra-zw: update to 24.05. enable opencl
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Sep 5, 2024
1 parent 027a0ef commit 59d2879
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
19 changes: 9 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};

# nixos hardware for nixos 23.11
nixos-hardware.url = "git+https://github.com/NixOS/nixos-hardware.git?rev=9e848e173ca83adf884815c66edc08652ef9ade8";
nixos-hardware.url = "github:NixOS/nixos-hardware";

## TLMS stuff below
trekkie = {
Expand Down Expand Up @@ -299,7 +298,7 @@
apps."x86_64-linux" = (import ./pkgs/deployment.nix { inherit self pkgs lib; });

nixosConfigurations = lib.attrsets.mapAttrs (name: value:
(if (name == "notice-me-senpai" || name == "tetra-zw") then (nixpkgs-2311.lib.nixosSystem value) else (nixpkgs.lib.nixosSystem value))) unevaluatedNixosConfigurations;
(if (name == "notice-me-senpai") then (nixpkgs-2311.lib.nixosSystem value) else (nixpkgs.lib.nixosSystem value))) unevaluatedNixosConfigurations;

hydraJobs =
let
Expand Down
18 changes: 16 additions & 2 deletions hardware/tetra-zw.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,26 @@
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
rocmPackages.clr.icd
rocmPackages.clr
rocmPackages.rocminfo
rocmPackages.rocm-runtime
rocm-opencl-icd
rocmPackages.rocm-smi
];
};

hardware.amdgpu.opencl = true;
hardware.amdgpu.loadInInitrd = true;
nixpkgs.config.allowUnfree = true;
hardware.enableAllFirmware = true;

hardware.amdgpu.opencl.enable = true;
nixpkgs.config.rocmSupport = true;

systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];

# Adjust power limits of the processor
systemd.services."adjust-power-limits" = {
enable = true;
Expand Down

0 comments on commit 59d2879

Please sign in to comment.