From 0449459712267d0a98a2ff0f5bef6a55d8478310 Mon Sep 17 00:00:00 2001 From: Joshua Hursey Date: Mon, 22 Aug 2022 15:22:39 -0500 Subject: [PATCH] DPM: Force 'hash' GDS component when singleton spawn * See https://github.com/openpmix/openpmix/issues/2705 Signed-off-by: Joshua Hursey (cherry picked from commit 245424ce375f4412d433d3c270d8f506946c633e) --- ompi/dpm/dpm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ompi/dpm/dpm.c b/ompi/dpm/dpm.c index 032b27fefa5..2fb97d31833 100644 --- a/ompi/dpm/dpm.c +++ b/ompi/dpm/dpm.c @@ -23,6 +23,7 @@ * Copyright (c) 2021 Nanook Consulting. All rights reserved. * Copyright (c) 2018-2022 Triad National Security, LLC. All rights * reserved. + * Copyright (c) 2022 IBM Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -1610,6 +1611,11 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[], OPAL_LIST_DESTRUCT(&job_info); if (ompi_singleton) { + /* The GDS 'hash' component is known to work for singleton, so + * recommend it. The user may set this envar to override the setting. + */ + setenv("PMIX_MCA_gds", "hash", 0); + /* Start the DVM */ rc = start_dvm(hostfiles, dash_host); if (OPAL_SUCCESS != rc) { if (NULL != pinfo) {