Skip to content

Commit

Permalink
drop commented call to pmi2_getjobid
Browse files Browse the repository at this point in the history
TEST_CHECKPATCH_SKIP_FILES="client/src/preload.c"
  • Loading branch information
adammoody committed Oct 10, 2022
1 parent cdd9cc5 commit 4e67166
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions common/src/unifyfs_keyval.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,24 +186,13 @@ int unifyfs_pmi2_init(void)
pmi2_has_nameserv = val;
}

char pmi_jobid[64];
memset(pmi_jobid, 0, sizeof(pmi_jobid));
/*
rc = PMI2_Job_GetId(pmi_jobid, sizeof(pmi_jobid));
if (rc != PMI2_SUCCESS) {
unifyfs_pmi2_errstr(rc);
LOGERR("PMI2_Job_GetId() failed: %s", pmi2_errstr);
return (int)UNIFYFS_ERROR_PMI;
}
*/

kv_myrank = pmi_world_rank;
kv_nranks = pmi_world_nprocs;

glb_pmi_rank = kv_myrank;
glb_pmi_size = kv_nranks;

LOGDBG("PMI2 Job Id: %s, Rank: %d of %d, hasNameServer=%d", pmi_jobid,
LOGDBG("PMI2 Rank: %d of %d, hasNameServer=%d",
kv_myrank, kv_nranks, pmi2_has_nameserv);

pmi2_initialized = 1;
Expand Down

0 comments on commit 4e67166

Please sign in to comment.