Fix Spack-test failure (#4878)

This commit is contained in:
SY Wang 2026-02-26 17:32:47 +08:00 committed by GitHub
parent ed9ef77eae
commit 10ea07553d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1227,9 +1227,11 @@ ln -sf cp2k."${VERSION}" cp2k."${VERSION/smp/opt}"
ln -sf cp2k."${VERSION}" cp2k_shell
cd "${CP2K_ROOT}" || ${EXIT_CMD} 1
# Allow to run as root within a container with OpenMPI
# Allow to run as root with OpenMPI
if [[ "${MPI_MODE}" == "openmpi" ]]; then
OMPI_VARS="export OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 OMPI_MCA_plm_rsh_agent=/bin/false"
else
OMPI_VARS=""
fi
export OMPI_VARS