Ticket #180 (closed docs: fixed)
MPID_Comm->remote_size vs MPID_Comm->local_size
| Reported by: | goodell | Owned by: | goodell |
|---|---|---|---|
| Priority: | minor | Milestone: | mpich2-1.1a2 |
| Component: | mpich2 | Keywords: | |
| Cc: |
Description
The values for these two variables are clearly defined in the case that the communicator is an MPID_INTERCOMM, but unclear in the case of an MPID_INTRACOMM. The collective utility routines such as MPIR_Bcast all use local_size as the size of the communicator. However it looks like some places use remote_size instead. It also looks like most code paths that create intracommunicators set the remote_size=local_size, so that the inconsistent usage doesn't matter.
I recently got burned by this when I failed to set the local_size in a routine that creates communicators. I suspect that the right thing to do is to set local_size=remote_size and get on with things. We should figure this out and make sure it's clear in the code and comments.
-Dave
