Resent-Message-Id: <199911241558.JAA68522@XXXXXXXXXXX>Date: Wed, 24 Nov 1999 10:36:28 -0500 From: "Patrick H. Worley" Reply-To: worleyph@XXXXXXXX Organization: Oak Ridge National Laboratory X-Mailer: Mozilla 4.6 (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 To: mpi-comments@XXXXXXXXXXXXX Subject: problem with MPI_Get_count and MPI_Probe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-mpi-comments@XXXXXXXXXXX Precedence: bulk Resent-To: gropp@XXXXXXXXXXX Resent-Date: Wed, 24 Nov 1999 10:00:26 -0600 Resent-From: Rusty Lusk Haven't since this is an errata or correction document .... 1) MPI_Get_count(MPI_Status *status, MPI_Datatype datatype, int *count) Returns the number of entries received. (Again, we count entries, each of type datatype, not bytes.) The datatype argument should match the argument provided by the receive call that set the status variable. ... The datatype argument is passed to MPI_GET_COUNT so as to improve performance. A message might be received without counting the number of elements it contains, and the count value is often not needed. Also, this allows the same function to be used after a call to MPI_PROBE. 2) int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status *status) ... The call matches the same message that would have been received by a call to MPI_RECV(..., source,tag, comm, status) executed at the same point in the program, and returns in status the same value that would have been returned by MPI_RECV(). ... the content of the status object can be subsequently accessed as described in section Return status to find the source, tag and length of the probed message. Problem: What datatype should be specified to MPI_Get_count when requesting the length of the message found by an MPI_Probe? There is no "matching" argument in MPI_Probe. Is it legal (by the standard) to specify MPI_BYTE? Thanks. Pat Worley