Skip to content

Commit

Permalink
teams: warn if non-null config with 0 config_mask
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ozog committed May 1, 2024
1 parent 2c498da commit e9e7f59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shmem_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ int shmem_internal_team_split_strided(shmem_internal_team_t *parent_team, int PE
myteam->size = PE_size;

if (config_mask == 0) {
if (config != NULL) {
RAISE_WARN_MSG("%s %s\n", "team_split_strided operation encountered an unexpected",
"non-NULL config structure passed with a config_mask of 0.");
}
shmem_team_config_t defaults;
myteam->config_mask = 0;
myteam->contexts_len = 0;
Expand Down

0 comments on commit e9e7f59

Please sign in to comment.