Statistiques
| Révision :

root / www / HPL_sdrv.html

Historique | Voir | Annoter | Télécharger (2,37 ko)

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_sdrv 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_sdrv</B> Send and receive a message.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>int</CODE>
15
<CODE>HPL_sdrv(</CODE>
16
<CODE>double *</CODE>
17
<CODE>SBUF</CODE>,
18
<CODE>int</CODE>
19
<CODE>SCOUNT</CODE>,
20
<CODE>int</CODE>
21
<CODE>STAG</CODE>,
22
<CODE>double *</CODE>
23
<CODE>RBUF</CODE>,
24
<CODE>int</CODE>
25
<CODE>RCOUNT</CODE>,
26
<CODE>int</CODE>
27
<CODE>RTAG</CODE>,
28
<CODE>int</CODE>
29
<CODE>PARTNER</CODE>,
30
<CODE>MPI_Comm</CODE>
31
<CODE>COMM</CODE>
32
<CODE>);</CODE>
33

    
34
<H1>Description</H1>
35
<B>HPL_sdrv</B>
36
is a simple wrapper around MPI_Sendrecv. Its main purpose is
37
to allow for some experimentation and tuning of this simple function.
38
Messages  of  length  less than  or  equal to zero  are not sent  nor
39
received.  Successful completion  is  indicated by the returned error
40
code HPL_SUCCESS.
41

    
42
<H1>Arguments</H1>
43
<PRE>
44
SBUF    (local input)                 double *
45
        On entry, SBUF specifies the starting address of buffer to be
46
        sent.
47
</PRE>
48
<PRE>
49
SCOUNT  (local input)                 int
50
        On entry,  SCOUNT  specifies  the number  of double precision
51
        entries in SBUF. SCOUNT must be at least zero.
52
</PRE>
53
<PRE>
54
STAG    (local input)                 int
55
        On entry,  STAG  specifies the message tag to be used for the
56
        sending communication operation.
57
</PRE>
58
<PRE>
59
RBUF    (local output)                double *
60
        On entry, RBUF specifies the starting address of buffer to be
61
        received.
62
</PRE>
63
<PRE>
64
RCOUNT  (local input)                 int
65
        On entry,  RCOUNT  specifies  the number  of double precision
66
        entries in RBUF. RCOUNT must be at least zero.
67
</PRE>
68
<PRE>
69
RTAG    (local input)                 int
70
        On entry,  RTAG  specifies the message tag to be used for the
71
        receiving communication operation.
72
</PRE>
73
<PRE>
74
PARTNER (local input)                 int
75
        On entry,  PARTNER  specifies  the rank of the  collaborative
76
        process in the communication space defined by COMM.
77
</PRE>
78
<PRE>
79
COMM    (local input)                 MPI_Comm
80
        The MPI communicator identifying the communication space.
81
</PRE>
82

    
83
<H1>See Also</H1>
84
<A HREF="HPL_send.html">HPL_send</A>,
85
<A HREF="HPL_recv.html">HPL_recv</A>.
86

    
87
</BODY>
88
</HTML>