Skip to content

Commit 6896aeb

Browse files
author
rhc54
committed
Merge pull request open-mpi#806 from jsquyres/pr/v1.10/mpi-testsome-man-page-update
v1.10: mpi testsome man page update
2 parents 34694cd + 261ce9c commit 6896aeb

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

ompi/mpi/man/man3/MPI_Testsome.3in

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" -*- nroff -*-
22
.\" Copyright 2006-2008 Sun Microsystems, Inc.
33
.\" Copyright (c) 1996 Thinking Machines Corporation
4-
.\" Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
4+
.\" Copyright (c) 2011-2015 Cisco Systems, Inc. All rights reserved.
55
.\" $COPYRIGHT$
66
.TH MPI_Testsome 3 "#OMPI_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
77
.SH NAME
@@ -13,7 +13,8 @@
1313
.nf
1414
#include <mpi.h>
1515
int MPI_Testsome(int \fIincount\fP, MPI_Request \fIarray_of_requests[]\fP,
16-
int\fI *outcount\fP, int\fI array_of_indices[]\fP, MPI_Status\fI array_of_statuses[]\fP)
16+
int\fI *outcount\fP, int\fI array_of_indices[]\fP,
17+
MPI_Status\fI array_of_statuses[]\fP)
1718

1819
.fi
1920
.SH Fortran Syntax
@@ -29,8 +30,9 @@ MPI_TESTSOME(\fIINCOUNT, ARRAY_OF_REQUESTS, OUTCOUNT,
2930
.SH C++ Syntax
3031
.nf
3132
#include <mpi.h>
32-
static int Request::Testsome(int \fIincount\fP, Request
33-
\fIarray_of_requests\fP[], int \fIarray_of_indices\fP[], Status \fIarray_of_statuses\fP[])
33+
static int Request::Testsome(int \fIincount\fP, Request
34+
\fIarray_of_requests\fP[], int \fIarray_of_indices\fP[],
35+
Status \fIarray_of_statuses\fP[])
3436

3537
static int Request::Testsome(int \fIincount\fP, Request
3638
\fIarray_of_requests\fP[], int \fIarray_of_indices\fP[])
@@ -63,7 +65,20 @@ Fortran only: Error status (integer).
6365

6466
.SH DESCRIPTION
6567
.ft R
66-
Behaves like MPI_Waitsome, except that it returns immediately. If no operation has completed it returns outcount = 0. If there is no active handle in the list, it returns outcount = MPI_UNDEFINED.
68+
Behaves like MPI_Waitsome, except that it returns immediately.
69+
.sp
70+
Returns in outcount the number of requests from the list
71+
array_of_requests that have completed. Returns in the first outcount
72+
locations of the array array_of_indices the indices of these
73+
operations (index within the array array_of_requests; the array is
74+
indexed from 0 in C and from 1 in Fortran). Returns in the first
75+
outcount locations of the array array_of_status the status for these
76+
completed operations. If a request that completed was allocated by a
77+
nonblocking communication call, then it is deallocated, and the
78+
associated handle is set to MPI_REQUEST_NULL.
79+
.sp
80+
If no operation has completed it returns outcount = 0. If there is no
81+
active handle in the list, it returns outcount = MPI_UNDEFINED.
6782
.sp
6883
MPI_Testsome is a local operation, which returns immediately, whereas MPI_Waitsome blocks until a communication completes, if it was passed a list that contains at least one active handle. Both calls fulfill a fairness requirement: If a request for a receive repeatedly appears in a list of requests passed to MPI_Waitsome or MPI_Testsome, and a matching send has been posted, then the receive will eventually succeed unless the send is satisfied by another receive; send requests also fulfill this fairness requirement.
6984
.sp

0 commit comments

Comments
 (0)