Skip to content

Commit 6d7a780

Browse files
author
Ralph Castain
authored
Merge pull request #4341 from rhc54/topic/foo
Ensure that the pmix server system-level rendezvous file is only output by the HNP
2 parents b75ed83 + 6ffb0d0 commit 6d7a780

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

contrib/scaling/scaling.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
my @options = ("", "", "", "-mca mpi_add_procs_cutoff 0 -mca pmix_base_async_modex 1", "-mca mpi_add_procs_cutoff 0 -mca pmix_base_async_modex 1 -mca async_mpi_init 1 -mca async_mpi_finalize 1");
2828
my @starterlist = qw(mpirun prun srun aprun);
2929
my @starteroptionlist = (" --novm",
30-
"",
30+
" --system-server-only",
3131
" --distribution=cyclic --ntasks-per-node=",
3232
" -N");
3333

@@ -267,7 +267,7 @@ ()
267267
# if we are going to use the dvm, then we
268268
if ($starter eq "prun") {
269269
# need to start it
270-
$cmd = "orte-dvm -mca pmix_system_server 1 2>&1 &";
270+
$cmd = "orte-dvm --system_server 2>&1 &";
271271
if ($myresults) {
272272
print FILE "\n\n$cmd\n";
273273
}
@@ -341,7 +341,7 @@ ()
341341
}
342342
if ($havedvm) {
343343
if (!$SHOWME) {
344-
$cmd = "prun --terminate";
344+
$cmd = "prun --system-server-only --terminate";
345345
system($cmd);
346346
}
347347
$havedvm = 0;

orte/orted/pmix/pmix_server.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,10 @@ int pmix_server_init(void)
273273
}
274274

275275
/* if requested, tell the server to drop a system-level
276-
* PMIx connection point */
277-
if (orte_pmix_server_globals.system_server) {
276+
* PMIx connection point - only do this for the HNP as, in
277+
* at least one case, a daemon can be colocated with the
278+
* HNP and would overwrite the server rendezvous file */
279+
if (orte_pmix_server_globals.system_server && ORTE_PROC_IS_HNP) {
278280
kv = OBJ_NEW(opal_value_t);
279281
kv->key = strdup(OPAL_PMIX_SERVER_SYSTEM_SUPPORT);
280282
kv->type = OPAL_BOOL;

0 commit comments

Comments
 (0)