Skip to content

Question: MPI_Dims_create - is 'as close to each other as possible' a requirement? #683

@jeffhammond

Description

@jeffhammond

Regarding MPI_Dims_create, is the following a required semantic or just a quality of implementation issue?

The dimensions are set to be as close to each other as possible, using an appropriate divisibility algorithm.

When I run the MPICH test of this function with Open-MPI, it fails because 6x12 is not the ideal factorization of 72. I can't tell if this is an incorrect implementation or not?

https://github.com/pmodels/mpich/blob/main/test/mpi/topo/dims5.c

~/mukautuva/mpich-testsuite-4.1/topo$ ./dims5
soname = /usr/lib/x86_64-linux-gnu/libmpi.so
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Open-MPI
72 in 2d: 12 x 6 != 9 x 8
180 in 2d: 18 x 10 != 15 x 12
240 in 2d: 20 x 12 != 16 x 15
288 in 2d: 24 x 12 != 18 x 16
336 in 2d: 24 x 14 != 21 x 16
420 in 2d: 28 x 15 != 21 x 20
450 in 2d: 30 x 15 != 25 x 18
504 in 2d: 28 x 18 != 24 x 21
540 in 2d: 30 x 18 != 27 x 20
 Found 74352 errors

Metadata

Metadata

Labels

chap-topologiesProcess Topologies Chapter Committeehad readingCompleted the formal proposal readingmpi-nextFor inclusion in the MPI 5.1 or 6.0 standard

Type

No type

Projects

Status

In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions