SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ memoryblocksize() [2/2]

Int memoryblocksize ( MDESC a)

Definition at line 173 of file pgemraux.c.

174{
175 Int myprow, mypcol, p, q;
176 /* Compute the (myprow,mypcol) indices of processor mypnum in P0xQ0 We
177 * assume the row-major ordering of the BLACS */
178 Cblacs_gridinfo(a->ctxt, &p, &q, &myprow, &mypcol);
179 myprow = SHIFT(myprow, a->sprow, p);
180 mypcol = SHIFT(mypcol, a->spcol, q);
181 assert(myprow >= 0 && mypcol >= 0);
182 return localsize(myprow, p, a->nbrow, a->m) *
183 localsize(mypcol, q, a->nbcol, a->n);
184}
#define Int
Definition Bconfig.h:22
#define SHIFT(row, sprow, nbrow)
Definition pgemraux.c:41
Int localsize()
void Cblacs_gridinfo()
Int m
Definition pcgemr.c:166
Int spcol
Definition pcgemr.c:171
Int nbcol
Definition pcgemr.c:169
Int sprow
Definition pcgemr.c:170
Int nbrow
Definition pcgemr.c:168
Int ctxt
Definition pcgemr.c:165
Int n
Definition pcgemr.c:167
Here is the call graph for this function: