p4est, p4est-sc: fix checks with OpenMPI
Setting environment variables in preCheck to make MPI tests run. This is one commit for two packages in order not to break the dependency.
This commit is contained in:
parent
94982e6f87
commit
65e659f0f4
2 changed files with 11 additions and 5 deletions
|
@ -42,12 +42,18 @@ stdenv.mkDerivation {
|
||||||
++ lib.optional mpiSupport "--enable-mpi"
|
++ lib.optional mpiSupport "--enable-mpi"
|
||||||
;
|
;
|
||||||
|
|
||||||
makeFlags = [ "V=0" ];
|
|
||||||
checkFlags = lib.optional isOpenmpi "-j1";
|
|
||||||
|
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
doCheck = !stdenv.isAarch64 && stdenv.hostPlatform == stdenv.buildPlatform;
|
makeFlags = [ "V=0" ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export OMPI_MCA_rmaps_base_oversubscribe=1
|
||||||
|
export HYDRA_IFACE=lo
|
||||||
|
'';
|
||||||
|
|
||||||
|
# disallow Darwin checks due to prototype incompatibility of qsort_r
|
||||||
|
# to be fixed in a future version of the source code
|
||||||
|
doCheck = !stdenv.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
branch = "prev3-develop";
|
branch = "prev3-develop";
|
||||||
|
|
|
@ -40,7 +40,7 @@ stdenv.mkDerivation {
|
||||||
++ lib.optional withMetis "--with-metis"
|
++ lib.optional withMetis "--with-metis"
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (p4est-sc) makeFlags checkFlags dontDisableStatic enableParallelBuilding doCheck;
|
inherit (p4est-sc) makeFlags dontDisableStatic enableParallelBuilding preCheck doCheck;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
branch = "prev3-develop";
|
branch = "prev3-develop";
|
||||||
|
|
Loading…
Reference in a new issue