From 184ea64365969019b520c721c4e30f19b45cf1b0 Mon Sep 17 00:00:00 2001 From: "philip.marshall" Date: Thu, 17 Oct 2024 12:40:29 -0700 Subject: [PATCH] src: Fix bug in shmem_team_split_2d --- src/shmem_team.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shmem_team.c b/src/shmem_team.c index 56c6a9a0..5fc039cd 100644 --- a/src/shmem_team.c +++ b/src/shmem_team.c @@ -457,7 +457,7 @@ int shmem_internal_team_split_2d(shmem_internal_team_t *parent_team, int xrange, shmem_internal_team_t *my_xteam; int xsize = (i == num_xteams - 1 && parent_size % xrange) ? parent_size % xrange : xrange; - ret = shmem_internal_team_split_strided(parent_team, start, parent_stride, + ret = shmem_internal_team_split_strided(parent_team, start, 1, xsize, xaxis_config, xaxis_mask, &my_xteam); if (ret) { RAISE_ERROR_MSG("Creation of x-axis team %d of %d failed\n", i+1, num_xteams); @@ -478,7 +478,7 @@ int shmem_internal_team_split_2d(shmem_internal_team_t *parent_team, int xrange, int yrange = parent_size / xrange; int ysize = (remainder && i < remainder) ? yrange + 1 : yrange; - ret = shmem_internal_team_split_strided(parent_team, start, xrange*parent_stride, + ret = shmem_internal_team_split_strided(parent_team, start, xrange, ysize, yaxis_config, yaxis_mask, &my_yteam); if (ret) { RAISE_ERROR_MSG("Creation of y-axis team %d of %d failed\n", i+1, num_yteams);