1HPL_indxg2lp(3)              HPL Library Functions             HPL_indxg2lp(3)
2
3
4

NAME

6       HPL_indxg2lp - Map a local index into a global one.
7

SYNOPSIS

9       #include "hpl.h"
10
11       void  HPL_indxg2lp(  int * IL, int * PROC, const int IG, const int INB,
12       const int NB, const int SRCPROC, const int NPROCS );
13

DESCRIPTION

15       HPL_indxg2lp computes the local index of a matrix entry pointed  to  by
16       the  global   index IG as well as the process coordinate which posseses
17       this entry. The local returned index is the same in all processes.
18

ARGUMENTS

20       IL      (output)                int *
21               On exit, IL specifies the local index corresponding to  IG.  IL
22               is at least zero.
23
24       PROC    (output)                int *
25               On  exit,   PROC  is the  coordinate of the process  owning the
26               entry specified by the global index IG. PROC is at  least  zero
27               and less than NPROCS.
28
29       IG      (input)                 const int
30               On  entry,  IG specifies the global index of the matrix  entry.
31               IG must be at least zero.
32
33       INB     (input)                 const int
34               On entry,  INB  specifies  the size of the first block  of  the
35               global matrix. INB must be at least one.
36
37       NB      (input)                 const int
38               On  entry,   NB specifies the blocking factor used to partition
39               and distribute the matrix A. NB must be larger than one.
40
41       SRCPROC (input)                 const int
42               On entry, if SRCPROC = -1, the data  is not   distributed   but
43               replicated,   in   which  case  this  routine returns IG in all
44               processes. Otherwise, the value of SRCPROC is ignored.
45
46       NPROCS  (input)                 const int
47               On entry,  NPROCS  specifies the total number of  process  rows
48               or  columns  over which the matrix is distributed.  NPROCS must
49               be at least one.
50

SEE ALSO

52       HPL_indxg2l (3),  HPL_indxg2p (3),   HPL_indxl2g (3),   HPL_numroc (3),
53       HPL_numrocI (3).
54
55
56
57HPL 2.1                        October 26, 2012                HPL_indxg2lp(3)
Impressum