From b9da82b956b346961497e805764dc95547d07bac Mon Sep 17 00:00:00 2001 From: Andreas Schaafsma Date: Sat, 28 Feb 2026 16:34:56 +0100 Subject: [PATCH] attempt making pytorch work --- .../hardware/graphics/intel.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/systems/x86_64-linux/drivebystation-nix/hardware/graphics/intel.nix b/systems/x86_64-linux/drivebystation-nix/hardware/graphics/intel.nix index 0ed1b11..a4117de 100644 --- a/systems/x86_64-linux/drivebystation-nix/hardware/graphics/intel.nix +++ b/systems/x86_64-linux/drivebystation-nix/hardware/graphics/intel.nix @@ -38,6 +38,7 @@ vpl-gpu-rt # oneVPL runtime intel-vaapi-driver # fallback intel-compute-runtime # OpenCL/Level Zero + level-zero # Level Zero API for compute ]; }; @@ -66,6 +67,11 @@ # DXVK optimizations DXVK_HUD = "compiler"; # Monitor shader compilation # DXVK_ASYNC = "1"; # Enable if you want async shader compilation (may cause issues) + + # Intel IPEX / PyTorch settings + ZE_ENABLE_ALT_DRIVERS = "libze_intel_gpu.so.1"; # Enable Intel GPU driver for Level Zero + SYCL_CACHE_PERSISTENT = "1"; # Enable persistent SYCL cache + SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS = "1"; # Performance optimization }; @@ -103,4 +109,15 @@ ## User Access ############################ users.users.andreas.extraGroups = [ "video" "render" ]; + + ############################ + ## System Packages for AI/ML + ############################ + environment.systemPackages = with pkgs; [ + intel-compute-runtime + level-zero + # For checking GPU compute capabilities + clinfo + vulkan-tools + ]; }