From af53114a093a57649bb6c827da0618fd4b42c82e Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 24 Dec 2018 20:00:13 -0600 Subject: [PATCH] pythonPackages.pytorch: fix Intel MKL BLAS compile failure Signed-off-by: Austin Seipp --- pkgs/development/python-modules/pytorch/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pytorch/default.nix b/pkgs/development/python-modules/pytorch/default.nix index fd3ada70762..8b9ba07ce95 100644 --- a/pkgs/development/python-modules/pytorch/default.nix +++ b/pkgs/development/python-modules/pytorch/default.nix @@ -72,6 +72,11 @@ in buildPythonPackage rec { PYTORCH_BUILD_VERSION = version; PYTORCH_BUILD_NUMBER = 0; + # Suppress a weird warning in mkl-dnn, part of ideep in pytorch + # (upstream seems to have fixed this in the wrong place?) + # https://github.com/intel/mkl-dnn/commit/8134d346cdb7fe1695a2aa55771071d455fae0bc + NIX_CFLAGS_COMPILE = lib.optionals (numpy.blasImplementation == "mkl") [ "-Wno-error=array-bounds" ]; + buildInputs = [ cmake numpy.blas