Skip to content

Commit

Permalink
PMI: allow user overriding KEY VAL length
Browse files Browse the repository at this point in the history
Fixes #6924.
  • Loading branch information
yfguo committed May 22, 2024
1 parent 2f98250 commit d5adec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/mpir_pmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ int MPIR_pmi_init(void)
mpi_errno = pmix_init(&has_parent, &rank, &size, &appnum));
MPIR_ERR_CHECK(mpi_errno);

/* allowing user to override default KEY VAL size for certain system setups */
MPL_env2int("PMI_MAX_KEY_SIZE", &pmi_max_key_size);
MPL_env2int("PMI_MAX_VAL_SIZE", &pmi_max_val_size);

unsigned world_id = 0;
if (pmi_kvs_name) {
HASH_FNV(pmi_kvs_name, strlen(pmi_kvs_name), world_id);
Expand Down

0 comments on commit d5adec2

Please sign in to comment.