From e64f8714db2533e843e8b2a4f0e0daa95da8493b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Mon, 8 Jun 2026 07:36:26 +0000 Subject: [PATCH] nix-builder: remove the MKL override This override stems from when we were still building Torch from source. When we did so, we had to ensure that the build aligned as closely as possible to upstream, meaning that we had to build it with MKL. Since we repackage binary wheels, this is not necessary anymore, because the MKL bits are baked into the wheel. With this change, we can hit the NixOS cache for more dependencies on x86_64-linux. --- nix-builder/overlay.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/nix-builder/overlay.nix b/nix-builder/overlay.nix index eb0bb021c..4bcbc8725 100644 --- a/nix-builder/overlay.nix +++ b/nix-builder/overlay.nix @@ -1,13 +1,5 @@ final: prev: -let - # For XPU we use MKL from the joined oneAPI toolkit. - useMKL = final.stdenv.isx86_64 && !(final.config.xpuSupport or false); -in { - # Use MKL for BLAS/LAPACK on x86_64. - blas = if useMKL then prev.blas.override { blasProvider = prev.mkl; } else prev.blas; - lapack = if useMKL then prev.lapack.override { lapackProvider = prev.mkl; } else prev.lapack; - kernel-builder = final.callPackage ./pkgs/kernel-builder { }; cmakeNvccThreadsHook = final.callPackage ./pkgs/cmake-nvcc-threads-hook { };