Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions pkgs/development/libraries/science/math/openblas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
perl,
which,
# Most packages depending on openblas expect integer width to match
Expand Down Expand Up @@ -181,7 +180,7 @@ let
in
stdenv.mkDerivation rec {
pname = "openblas";
version = "0.3.30";
version = "0.3.31";

outputs = [
"out"
Expand All @@ -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;
Expand Down
Loading