Skip to content

Commit

Permalink
Merge pull request #20524 from FPtje/patch-1
Browse files Browse the repository at this point in the history
Support for ARM in openblas
  • Loading branch information
ttuegel authored Nov 18, 2016
2 parents fd0d722 + 5f5f061 commit d1b4358
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/development/libraries/science/math/openblas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ let blas64_ = blas64; in
let local = config.openblas.preferLocalBuild or false;
binary =
{ i686-linux = "32";
armv7l-linux = "32";
x86_64-linux = "64";
x86_64-darwin = "64";
}."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}");
genericFlags =
[ "DYNAMIC_ARCH=1"
[ "DYNAMIC_ARCH=${if stdenv.system == "armv7l-linux" then "0" else "1"}"
"NUM_THREADS=64"
];
localFlags = config.openblas.flags or
Expand Down Expand Up @@ -65,7 +66,9 @@ stdenv.mkDerivation {
"BINARY=${binary}"
"USE_OPENMP=${if stdenv.isDarwin then "0" else "1"}"
"INTERFACE64=${if blas64 then "1" else "0"}"
];
]
++
optionals (stdenv.system == "armv7l-linux") ["TARGET=ARMV7"];

doCheck = true;
checkTarget = "tests";
Expand Down

0 comments on commit d1b4358

Please sign in to comment.