root / www / HPL_grid_info.html
Historique | Voir | Annoter | Télécharger (1,91 ko)
1 |
<HTML>
|
---|---|
2 |
<HEAD>
|
3 |
<TITLE>HPL_grid_info 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_grid_info</B> Retrieve grid information. |
11 |
|
12 |
<H1>Synopsis</H1> |
13 |
<CODE>#include "hpl.h"</CODE><BR><BR> |
14 |
<CODE>int</CODE> |
15 |
<CODE>HPL_grid_info(</CODE> |
16 |
<CODE>const HPL_T_grid *</CODE> |
17 |
<CODE>GRID</CODE>, |
18 |
<CODE>int *</CODE> |
19 |
<CODE>NPROW</CODE>, |
20 |
<CODE>int *</CODE> |
21 |
<CODE>NPCOL</CODE>, |
22 |
<CODE>int *</CODE> |
23 |
<CODE>MYROW</CODE>, |
24 |
<CODE>int *</CODE> |
25 |
<CODE>MYCOL</CODE> |
26 |
<CODE>);</CODE> |
27 |
|
28 |
<H1>Description</H1> |
29 |
<B>HPL_grid_info</B> |
30 |
returns the grid shape and the coordinates in the grid |
31 |
of the calling process. Successful completion is indicated by the |
32 |
returned error code MPI_SUCCESS. Other error codes depend on the MPI |
33 |
implementation. |
34 |
|
35 |
<H1>Arguments</H1> |
36 |
<PRE>
|
37 |
GRID (local input) const HPL_T_grid * |
38 |
On entry, GRID points to the data structure containing the |
39 |
process grid information. |
40 |
</PRE>
|
41 |
<PRE>
|
42 |
NPROW (global output) int * |
43 |
On exit, NPROW specifies the number of process rows in the |
44 |
grid. NPROW is at least one. |
45 |
</PRE>
|
46 |
<PRE>
|
47 |
NPCOL (global output) int * |
48 |
On exit, NPCOL specifies the number of process columns in |
49 |
the grid. NPCOL is at least one. |
50 |
</PRE>
|
51 |
<PRE>
|
52 |
MYROW (global output) int * |
53 |
On exit, MYROW specifies my row process coordinate in the |
54 |
grid. MYROW is greater than or equal to zero and less than |
55 |
NPROW. |
56 |
</PRE>
|
57 |
<PRE>
|
58 |
MYCOL (global output) int * |
59 |
On exit, MYCOL specifies my column process coordinate in the |
60 |
grid. MYCOL is greater than or equal to zero and less than |
61 |
NPCOL. |
62 |
</PRE>
|
63 |
|
64 |
<H1>See Also</H1> |
65 |
<A HREF="HPL_pnum.html">HPL_pnum</A>, |
66 |
<A HREF="HPL_grid_init.html">HPL_grid_init</A>, |
67 |
<A HREF="HPL_grid_exit.html">HPL_grid_exit</A>. |
68 |
|
69 |
</BODY>
|
70 |
</HTML>
|