-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3Packages.scipy can't be build with other blasProvider than openBlas #206866
Comments
This is a problem I just ran into. Any ideas? Here's a flake to reproduce the error with {
inputs.nixpkgs.url = "github:nixos/nixpkgs";
outputs =
{ self
, nixpkgs
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
(final: prev: {
blas = prev.blas.override {
blasProvider = final.mkl;
};
lapack = prev.lapack.override {
lapackProvider = final.mkl;
};
})
];
};
in
{
packages.${system}.default = pkgs.python3.pkgs.scipy;
};
} And here's the actual error:
|
I am having this issue too and MKL is critical for my use case. Would it be possible to rollback to the old build method? |
Scipy using Meson needs to be configured explicitly with a blas/lapack implementation. They've introduced the
Instead, we need to pass these options to A more crude approach would be to patch |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/developing-nix-only-python-packages/26342/6 |
Shouldn't it just be nixpkgs/pkgs/build-support/alternatives/blas/default.nix Lines 137 to 141 in 27ccf0e
I haven't touched |
@FRidh |
I also ran into this one. Is there any workaround I can use? |
This is fixed in 5262a7d and the commits before and after it. Closing. |
Describe the bug
When overriding
blasProvider
inblas
with basically anything else than OpenBLAS, SciPy fails to build. The reason seems to be commit 44ae9b6 where the meson build is introduced. Meson defaults to OpenBLAS and requires flags to build with generic BLAS and Lapack. The current build works by accident, as SciPy uses theblasProvider
passthru of NumPy instead of the generic BLAS wrapper orblas
(without.blasProvider
) in Nixpkgs, which happens to be OpenBLAS.Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
SciPy should build and work with the wrapper of the generic BLAS interface instead of relying on OpenBLAS.
Notify maintainers
@FRidh
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: