root / man / man3 / HPL_reduce.3 @ 1
Historique | Voir | Annoter | Télécharger (1,61 ko)
1 |
.TH HPL_reduce 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions" |
---|---|
2 |
.SH NAME |
3 |
HPL_reduce \- Reduce operation. |
4 |
.SH SYNOPSIS |
5 |
\fB\&#include "hpl.h"\fR |
6 |
|
7 |
\fB\&int\fR |
8 |
\fB\&HPL_reduce(\fR |
9 |
\fB\&void *\fR |
10 |
\fI\&BUFFER\fR, |
11 |
\fB\&const int\fR |
12 |
\fI\&COUNT\fR, |
13 |
\fB\&const HPL_T_TYPE\fR |
14 |
\fI\&DTYPE\fR, |
15 |
\fB\&const HPL_T_OP \fR |
16 |
\fI\&OP\fR, |
17 |
\fB\&const int\fR |
18 |
\fI\&ROOT\fR, |
19 |
\fB\&MPI_Comm\fR |
20 |
\fI\&COMM\fR |
21 |
\fB\&);\fR |
22 |
.SH DESCRIPTION |
23 |
\fB\&HPL_reduce\fR |
24 |
performs a global reduce operation across all processes of |
25 |
a group. Note that the input buffer is used as workarray and in all |
26 |
processes but the accumulating process corrupting the original data. |
27 |
.SH ARGUMENTS |
28 |
.TP 8 |
29 |
BUFFER (local input/output) void * |
30 |
On entry, BUFFER points to the buffer to be reduced. On |
31 |
exit, and in process of rank ROOT this array contains the |
32 |
reduced data. This buffer is also used as workspace during |
33 |
the operation in the other processes of the group. |
34 |
.TP 8 |
35 |
COUNT (global input) const int |
36 |
On entry, COUNT indicates the number of entries in BUFFER. |
37 |
COUNT must be at least zero. |
38 |
.TP 8 |
39 |
DTYPE (global input) const HPL_T_TYPE |
40 |
On entry, DTYPE specifies the type of the buffers operands. |
41 |
.TP 8 |
42 |
OP (global input) const HPL_T_OP |
43 |
On entry, OP is a pointer to the local combine function. |
44 |
.TP 8 |
45 |
ROOT (global input) const int |
46 |
On entry, ROOT is the coordinate of the accumulating process. |
47 |
.TP 8 |
48 |
COMM (global/local input) MPI_Comm |
49 |
The MPI communicator identifying the process collection. |
50 |
.SH SEE ALSO |
51 |
.BR HPL_broadcast \ (3), |
52 |
.BR HPL_all_reduce \ (3), |
53 |
.BR HPL_barrier \ (3), |
54 |
.BR HPL_min \ (3), |
55 |
.BR HPL_max \ (3), |
56 |
.BR HPL_sum \ (3). |