Description: Ignore floating-point exceptions while calling MPI_Init Author: Thibaut Paumard Origin: upstream Applied-Upstream: fd670b1646860e9ecf144ee1c90ec1ac66ffd0f8 Last-Update: 2025-10-21 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ diff --git a/yorick/check-mpi.i b/yorick/check-mpi.i index 77c27cc..b5fb11a 100644 --- a/yorick/check-mpi.i +++ b/yorick/check-mpi.i @@ -39,7 +39,7 @@ if (MPI_Initialized()) error, "MPI should not be initialized yet"; done; doing, "Calling MPI_Init"; -if (MPI_Init() && have_mpi) error, "MPI INIT FAILED"; +if (MPI_Init("yorick") && have_mpi) error, "MPI INIT FAILED"; done; doing, "Calling MPI_Initiliazed again"; diff --git a/yorick/gyoto_utils.C b/yorick/gyoto_utils.C index 6ffcf76..0ec8242 100644 --- a/yorick/gyoto_utils.C +++ b/yorick/gyoto_utils.C @@ -334,6 +334,7 @@ extern "C" { Y_gyoto_MPI_Init(int argc) { #if defined HAVE_MPI + // Prepare argument for MPI_Init long int mpiargcl=0; char **mpiargv=NULL; long index=-1; @@ -343,7 +344,23 @@ extern "C" { if (!yarg_nil(0)) mpiargv=ygeta_q(0, &mpiargcl, NULL); } int mpiargc=mpiargcl; - ypush_long(MPI_Init(&mpiargc, &mpiargv)); + GYOTO_DEBUG_EXPR(mpiargc); + GYOTO_DEBUG_EXPR(mpiargv); + for (long int k=0; k=0) { long dims[]={1, mpiargc}; ystring_t * out=ypush_q(dims);