Commit 43d8a2eb authored by AGULLO Emmanuel's avatar AGULLO Emmanuel
Browse files

Fix maphys ctest to allow tests with more MPI processes than cores

Allow tests with more MPI processes than available CPU cores during the ctest
process, which otherwise is not allowed by default by OpenMPI.
parent 1e956ad3
......@@ -105,7 +105,14 @@ area (CPUs-GPUs, distributed nodes).")
'(#:configure-flags '("-DMAPHYS_BUILD_TESTS=ON"
"-DMAPHYS_SDS_MUMPS=ON"
"-DMAPHYS_SDS_PASTIX=ON")
))
#:phases (modify-phases %standard-phases
(add-before 'check 'prepare-test-environment
(lambda _
;; Allow tests with more MPI processes than available CPU cores,
;; which is not allowed by default by OpenMPI
(setenv "OMPI_MCA_rmaps_base_oversubscribe" "1"))))))
(inputs `(("hwloc" ,hwloc "lib")
("openmpi" ,openmpi)
("ssh" ,openssh)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment