Statistiques
| Révision :

root / www / HPL_grid_init.html @ 1

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

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_grid_init 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_init</B> Create a process grid.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>int</CODE>
15
<CODE>HPL_grid_init(</CODE>
16
<CODE>MPI_Comm</CODE>
17
<CODE>COMM</CODE>,
18
<CODE>const HPL_T_ORDER</CODE>
19
<CODE>ORDER</CODE>,
20
<CODE>const int</CODE>
21
<CODE>NPROW</CODE>,
22
<CODE>const int</CODE>
23
<CODE>NPCOL</CODE>,
24
<CODE>HPL_T_grid *</CODE>
25
<CODE>GRID</CODE>
26
<CODE>);</CODE>
27

    
28
<H1>Description</H1>
29
<B>HPL_grid_init</B>
30
creates a NPROW x NPCOL  process  grid using column- or
31
row-major ordering from an initial collection of processes identified
32
by an  MPI  communicator.  Successful  completion is indicated by the
33
returned error code MPI_SUCCESS.  Other error codes depend on the MPI
34
implementation. The coordinates of processes that are not part of the
35
grid are set to values outside of [0..NPROW) x [0..NPCOL).
36

    
37
<H1>Arguments</H1>
38
<PRE>
39
COMM    (global/local input)          MPI_Comm
40
        On entry,  COMM  is  the  MPI  communicator  identifying  the
41
        initial  collection  of  processes out of which  the  grid is
42
        formed.
43
</PRE>
44
<PRE>
45
ORDER   (global input)                const HPL_T_ORDER
46
        On entry, ORDER specifies how the processes should be ordered
47
        in the grid as follows:
48
           ORDER = HPL_ROW_MAJOR    row-major    ordering;
49
           ORDER = HPL_COLUMN_MAJOR column-major ordering;
50
</PRE>
51
<PRE>
52
NPROW   (global input)                const int
53
        On entry,  NPROW  specifies the number of process rows in the
54
        grid to be created. NPROW must be at least one.
55
</PRE>
56
<PRE>
57
NPCOL   (global input)                const int
58
        On entry,  NPCOL  specifies  the number of process columns in
59
        the grid to be created. NPCOL must be at least one.
60
</PRE>
61
<PRE>
62
GRID    (local input/output)          HPL_T_grid *
63
        On entry,  GRID  points  to the data structure containing the
64
        process grid information to be initialized.
65
</PRE>
66

    
67
<H1>See Also</H1>
68
<A HREF="HPL_pnum.html">HPL_pnum</A>,
69
<A HREF="HPL_grid_info.html">HPL_grid_info</A>,
70
<A HREF="HPL_grid_exit.html">HPL_grid_exit</A>.
71

    
72
</BODY>
73
</HTML>