mpiCheckPhaseHook: disable openmpi's ssh plugin (#351473)

This commit is contained in:
Markus Kowalewski
2024-11-02 13:33:57 +01:00
committed by GitHub
10 changed files with 11 additions and 24 deletions
@@ -6,7 +6,6 @@ setupMpiCheck() {
# Find out which MPI implementation we are using
# and set safe defaults that are guaranteed to run
# on any build machine
mpiType="NONE"
# OpenMPI signature
@@ -41,6 +40,10 @@ setupMpiCheck() {
export OMPI_MCA_rmaps_base_oversubscribe=1
export PRTE_MCA_rmaps_default_mapping_policy=node:oversubscribe
# Make sure we do not need openssh in the checkPhase
export OMPI_MCA_plm_ssh_agent=false
export PRRTE_MCA_plm_ssh_agent=false
# Disable CPU pinning
export OMPI_MCA_hwloc_base_binding_policy=none
export PRTE_MCA_hwloc_default_binding_policy=none
-3
View File
@@ -18,7 +18,6 @@
mpi,
gsl,
scalapack,
openssh,
makeWrapper,
libxsmm,
spglib,
@@ -83,7 +82,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
python3
which
openssh
makeWrapper
pkg-config
] ++ lib.optional (gpuBackend == "cuda") cudaPackages.cuda_nvcc;
@@ -225,7 +223,6 @@ stdenv.mkDerivation rec {
nativeCheckInputs = [
mpiCheckPhaseHook
openssh
];
checkPhase = ''
+1 -2
View File
@@ -10,7 +10,6 @@
mpiSupport ? true,
mpi, # generic mpi dependency
mpiCheckPhaseHook,
openssh, # required for openmpi tests
petsc-withp4est ? false,
hdf5-support ? false,
hdf5,
@@ -42,7 +41,7 @@ stdenv.mkDerivation rec {
python3
gfortran
pkg-config
] ++ lib.optional mpiSupport mpi ++ lib.optional (mpiSupport && mpi.pname == "openmpi") openssh;
] ++ lib.optional mpiSupport mpi;
buildInputs = [
blas
lapack
-2
View File
@@ -5,7 +5,6 @@
, pkg-config
, mpi
, mpiCheckPhaseHook
, openssh
, gfortran
, blas
, lapack
@@ -139,7 +138,6 @@ stdenv.mkDerivation rec {
nativeCheckInputs = [
mpiCheckPhaseHook
openssh
];
meta = with lib; {
+2 -2
View File
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, autoreconfHook, mpiCheckPhaseHook
, perl, mpi, blas, lapack, scalapack, openssh
, perl, mpi, blas, lapack, scalapack
# CPU optimizations
, avxSupport ? stdenv.hostPlatform.avxSupport
, avx2Support ? stdenv.hostPlatform.avx2Support
@@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
doCheck = !enableCuda;
nativeCheckInputs = [ mpiCheckPhaseHook openssh ];
nativeCheckInputs = [ mpiCheckPhaseHook ];
preCheck = ''
#patchShebangs ./
@@ -11,7 +11,6 @@
, python3
, libxsmm
, mpi
, openssh
}:
stdenv.mkDerivation rec {
@@ -62,7 +61,6 @@ stdenv.mkDerivation rec {
];
checkInputs = [
openssh
mpiCheckPhaseHook
];
@@ -1,14 +1,13 @@
{ lib, stdenv, fetchFromGitHub, mpiCheckPhaseHook
, autoreconfHook, pkg-config
, p4est-sc-debugEnable ? true, p4est-sc-mpiSupport ? true
, mpi, openssh, zlib
, mpi, zlib
}:
let
dbg = lib.optionalString debugEnable "-dbg";
debugEnable = p4est-sc-debugEnable;
mpiSupport = p4est-sc-mpiSupport;
isOpenmpi = mpiSupport && mpi.pname == "openmpi";
in
stdenv.mkDerivation {
pname = "p4est-sc${dbg}";
@@ -24,9 +23,7 @@ stdenv.mkDerivation {
strictDeps = true;
nativeBuildInputs = [ autoreconfHook pkg-config ];
propagatedNativeBuildInputs = lib.optional mpiSupport mpi
++ lib.optional isOpenmpi openssh
;
propagatedNativeBuildInputs = lib.optional mpiSupport mpi ;
propagatedBuildInputs = [ zlib ];
inherit debugEnable mpiSupport;
@@ -49,7 +46,6 @@ stdenv.mkDerivation {
nativeCheckInputs = lib.optionals mpiSupport [
mpiCheckPhaseHook
openssh
];
# disallow Darwin checks due to prototype incompatibility of qsort_r
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake
, openssh, mpiCheckPhaseHook, mpi, blas, lapack
, mpiCheckPhaseHook, mpi, blas, lapack
} :
assert blas.isILP64 == lapack.isILP64;
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake ];
nativeCheckInputs = [ openssh mpiCheckPhaseHook ];
nativeCheckInputs = [ mpiCheckPhaseHook ];
buildInputs = [ blas lapack ];
propagatedBuildInputs = [ mpi ];
hardeningDisable = lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) [ "stackprotector" ];
@@ -18,7 +18,6 @@
harminv,
libctl,
libGDSII,
openssh,
guile,
python,
numpy,
@@ -124,7 +123,6 @@ buildPythonPackage rec {
*/
nativeCheckInputs = [
mpiCheckPhaseHook
openssh
];
checkPhase = ''
runHook preCheck
@@ -5,7 +5,6 @@
cython,
setuptools,
mpi,
openssh,
pytestCheckHook,
mpiCheckPhaseHook,
}:
@@ -35,7 +34,6 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
openssh
mpiCheckPhaseHook
];
doCheck = true;