Skip to content

Commit d65e429

Browse files
committed
Reduce n_compute_elements and n_io_elements to avoid OpenMPI bug
The OpenMPI library has a bug on macOS in which large messages cause the code to hang; see, e.g., open-mpi/ompi#6568 This commit reduces the size of some arrays used in unit tests for SMIOL_create_decomp to work around this issue.
1 parent 23f6fc2 commit d65e429

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

smiol_runner.F90

+2-2
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ function test_decomp(test_log) result(ierrcount)
608608

609609
! Large number of Compute and IO Elements
610610
write(test_log,'(a)',advance='no') 'Everything OK for SMIOLf_create_decomp large number of elements: '
611-
n_compute_elements = 10000000
612-
n_io_elements = 10000000
611+
n_compute_elements = 1000000
612+
n_io_elements = 1000000
613613
allocate(compute_elements(n_compute_elements))
614614
allocate(io_elements(n_io_elements))
615615
ierr = SMIOLf_create_decomp(context, n_compute_elements, compute_elements, n_io_elements, io_elements, decomp)

smiol_runner.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ int test_decomp(FILE *test_log)
703703

704704
/* Create and Free Decomp with large amount of elements */
705705
fprintf(test_log, "Everything OK (SMIOL_create_decomp) with large amount of elements: ");
706-
n_compute_elements = 100000000;
707-
n_io_elements = 100000000;
706+
n_compute_elements = 1000000;
707+
n_io_elements = 1000000;
708708
compute_elements = malloc(sizeof(SMIOL_Offset) * n_compute_elements);
709709
io_elements = malloc(sizeof(SMIOL_Offset) * n_io_elements);
710710
ierr = SMIOL_create_decomp(context, n_compute_elements, compute_elements, n_io_elements, io_elements, &decomp);

0 commit comments

Comments
 (0)