superlu_dist: fix build with mpich (#466959)
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
isILP64 ? false,
|
||||
|
||||
# passthru.tests
|
||||
mpich,
|
||||
superlu_dist,
|
||||
}:
|
||||
|
||||
@@ -36,6 +37,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-i/Gg+9oMNNRlviwXUSRkWNaLRZLPWZRtA1fGYqh2X0k=";
|
||||
};
|
||||
|
||||
# --oversubscribe unrecognized by mpich
|
||||
# see https://github.com/xiaoyeli/superlu_dist/issues/208
|
||||
postPatch = ''
|
||||
substituteInPlace TEST/CMakeLists.txt \
|
||||
--replace-fail "-oversubscribe" ""
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./mc64ad_dist-stub.patch
|
||||
];
|
||||
@@ -89,6 +97,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
inherit isILP64;
|
||||
tests = {
|
||||
ilp64 = superlu_dist.override { isILP64 = true; };
|
||||
}
|
||||
// lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
||||
mpich = superlu_dist.override {
|
||||
mpi = mpich;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user