root / www / HPL_reduce.html @ 7
Historique | Voir | Annoter | Télécharger (2,14 ko)
1 |
<HTML>
|
---|---|
2 |
<HEAD>
|
3 |
<TITLE>HPL_reduce HPL 2.0 Library Functions September 10, 2008</TITLE> |
4 |
</HEAD>
|
5 |
|
6 |
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099" |
7 |
ALINK = "#ffff00"> |
8 |
|
9 |
<H1>Name</H1> |
10 |
<B>HPL_reduce</B> Reduce operation. |
11 |
|
12 |
<H1>Synopsis</H1> |
13 |
<CODE>#include "hpl.h"</CODE><BR><BR> |
14 |
<CODE>int</CODE> |
15 |
<CODE>HPL_reduce(</CODE> |
16 |
<CODE>void *</CODE> |
17 |
<CODE>BUFFER</CODE>, |
18 |
<CODE>const int</CODE> |
19 |
<CODE>COUNT</CODE>, |
20 |
<CODE>const HPL_T_TYPE</CODE> |
21 |
<CODE>DTYPE</CODE>, |
22 |
<CODE>const HPL_T_OP </CODE> |
23 |
<CODE>OP</CODE>, |
24 |
<CODE>const int</CODE> |
25 |
<CODE>ROOT</CODE>, |
26 |
<CODE>MPI_Comm</CODE> |
27 |
<CODE>COMM</CODE> |
28 |
<CODE>);</CODE> |
29 |
|
30 |
<H1>Description</H1> |
31 |
<B>HPL_reduce</B> |
32 |
performs a global reduce operation across all processes of |
33 |
a group. Note that the input buffer is used as workarray and in all |
34 |
processes but the accumulating process corrupting the original data. |
35 |
|
36 |
<H1>Arguments</H1> |
37 |
<PRE>
|
38 |
BUFFER (local input/output) void * |
39 |
On entry, BUFFER points to the buffer to be reduced. On |
40 |
exit, and in process of rank ROOT this array contains the |
41 |
reduced data. This buffer is also used as workspace during |
42 |
the operation in the other processes of the group. |
43 |
</PRE>
|
44 |
<PRE>
|
45 |
COUNT (global input) const int |
46 |
On entry, COUNT indicates the number of entries in BUFFER. |
47 |
COUNT must be at least zero. |
48 |
</PRE>
|
49 |
<PRE>
|
50 |
DTYPE (global input) const HPL_T_TYPE |
51 |
On entry, DTYPE specifies the type of the buffers operands. |
52 |
</PRE>
|
53 |
<PRE>
|
54 |
OP (global input) const HPL_T_OP |
55 |
On entry, OP is a pointer to the local combine function. |
56 |
</PRE>
|
57 |
<PRE>
|
58 |
ROOT (global input) const int |
59 |
On entry, ROOT is the coordinate of the accumulating process. |
60 |
</PRE>
|
61 |
<PRE>
|
62 |
COMM (global/local input) MPI_Comm |
63 |
The MPI communicator identifying the process collection. |
64 |
</PRE>
|
65 |
|
66 |
<H1>See Also</H1> |
67 |
<A HREF="HPL_broadcast.html">HPL_broadcast</A>, |
68 |
<A HREF="HPL_all_reduce.html">HPL_all_reduce</A>, |
69 |
<A HREF="HPL_barrier.html">HPL_barrier</A>, |
70 |
<A HREF="HPL_min.html">HPL_min</A>, |
71 |
<A HREF="HPL_max.html">HPL_max</A>, |
72 |
<A HREF="HPL_sum.html">HPL_sum</A>. |
73 |
|
74 |
</BODY>
|
75 |
</HTML>
|