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

NAME

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

SYNOPSIS

9       #include "hpl.h"
10
11       int  HPL_indxg2l(  const int IG, const int INB, const int NB, const int
12       SRCPROC, const int NPROCS );
13

DESCRIPTION

15       HPL_indxg2l computes  the local index of a matrix entry pointed  to  by
16       the   global  index IG.  This  local  returned index is the same in all
17       processes.
18

ARGUMENTS

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

SEE ALSO

43       HPL_indxg2lp (3),   HPL_indxg2p (3),  HPL_indxl2g (3),  HPL_numroc (3),
44       HPL_numrocI (3).
45
46
47
48HPL 2.1                        October 26, 2012                 HPL_indxg2l(3)
Impressum