From 42f916ec599faa1abf4661036738b18bdcf7bea7 Mon Sep 17 00:00:00 2001 From: Laurent Chardon Date: Sun, 21 Jun 2026 08:07:38 -0400 Subject: [PATCH] Allocate the auxiliary arrays needed for MPIIO builds With CHECK_RESULTS enabled, IMB-IO-openmpi P_Write_Shared crashes on the first non-zero message size because IMB_chk_distr() uses reccnt, while IMB_init_pointers() leaves it NULL for MPIIO builds. Signed-off-by: Laurent Chardon --- src_c/IMB_mem_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_c/IMB_mem_manager.c b/src_c/IMB_mem_manager.c index a46d154df..c65a567a4 100644 --- a/src_c/IMB_mem_manager.c +++ b/src_c/IMB_mem_manager.c @@ -424,7 +424,7 @@ In/Out : c_info | struct comm_info* | see comm_info.h IMB_i_alloc(int, c_info->g_ranks, c_info->w_num_procs, "Init_Pointers 1"); IMB_i_alloc(int, c_info->g_sizes, c_info->w_num_procs, "Init_Pointers 2"); -#if (defined MPI1 || defined NBC || defined MPI4) +#if (defined MPI1 || defined NBC || defined MPI4 || defined MPIIO) IMB_i_alloc(int, c_info->sndcnt, c_info->w_num_procs, "Init_Pointers 3"); IMB_i_alloc(int, c_info->sdispl, c_info->w_num_procs, "Init_Pointers 4");