From 3142f8f617df85b5384881014e04446cbaa546c4 Mon Sep 17 00:00:00 2001 From: Bruce J Palmer Date: Tue, 14 Dec 2021 07:19:23 -0800 Subject: [PATCH] Modified check on size of proc grid for LAPACK-style distributions so that they work on processor groups. --- global/src/base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/global/src/base.c b/global/src/base.c index 7ea397cbf..d74d32bf8 100644 --- a/global/src/base.c +++ b/global/src/base.c @@ -1807,7 +1807,7 @@ void pnga_set_block_cyclic_proc_grid(Integer g_a, Integer *dims, Integer *proc_g GA[ga_handle].nblock[i] = proc_grid[i]; tot *= proc_grid[i]; } - if (tot != GAnproc) + if (tot != pnga_pgroup_nnodes(GA[ga_handle].p_handle)) pnga_error("Number of processors in processor grid must equal available processors",0); /* evaluate number of blocks in each dimension */ for (i=0; i