We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb65c3f commit 043051fCopy full SHA for 043051f
opal/mca/common/pmi/common_pmi.c
@@ -58,7 +58,10 @@ bool mca_common_pmi_init (void) {
58
}
59
/* depending on slurm versions, we may get bad rank/size or bad jobid */
60
if (size < 0 || rank < 0 || PMI2_SUCCESS != PMI2_Job_GetId(buf, PMI2_MAX_VALLEN)) {
61
- opal_show_help("help-common-pmi.txt", "pmi2-init-returned-bad-values", true);
+ /* When no srun (singloton) fail quietly */
62
+ if (NULL != getenv("SLURM_STEP_NUM_TASKS")) {
63
+ opal_show_help("help-common-pmi.txt", "pmi2-init-returned-bad-values", true);
64
+ }
65
mca_common_pmi_init_count--;
66
return false;
67
0 commit comments