openblas: 0.3.30 -> 0.3.31 (#450106)

This commit is contained in:
Doron Behar
2026-03-03 21:07:00 +00:00
committed by GitHub
@@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
perl,
which,
# Most packages depending on openblas expect integer width to match
@@ -181,7 +180,7 @@ let
in
stdenv.mkDerivation rec {
pname = "openblas";
version = "0.3.30";
version = "0.3.31";
outputs = [
"out"
@@ -192,25 +191,12 @@ stdenv.mkDerivation rec {
owner = "OpenMathLib";
repo = "OpenBLAS";
rev = "v${version}";
hash = "sha256-foP2OXUL6ttgYvCxLsxUiVdkPoTvGiHomdNudbSUmSE=";
hash = "sha256-YBR81GOLnTsc0g1SZL+j31/OFucJrBRFqtOTV8lcy8U=";
};
patches = [
# Remove this once https://github.com/OpenMathLib/OpenBLAS/issues/5414 is
# resolved.
./disable-sme-sgemm-kernel.patch
# https://github.com/OpenMathLib/OpenBLAS/issues/5460
(fetchpatch {
name = "0001-openblas-Use-generic-kernels-for-SCAL-on-POWER4-5.patch";
url = "https://github.com/OpenMathLib/OpenBLAS/commit/14c9dcaac70d9382de00ba4418643d9587f4950e.patch";
hash = "sha256-mIOqRc7tE1rV/krrAu630JwApZHdeHCdVmO5j6eDC8U=";
})
];
postPatch = ''
# cc1: error: invalid feature modifier 'sve2' in '-march=armv8.5-a+sve+sve2+bf16'
substituteInPlace Makefile.arm64 --replace "+sve2+bf16" ""
substituteInPlace Makefile.arm64 --replace-fail "+sve2+bf16" ""
'';
inherit blas64;