SCALAPACK
2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
BI_HypBR.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
Int
BI_HypBR
(
BLACSCONTEXT
*ctxt,
BLACBUFF
*bp,
SDRVPTR
send,
Int
src)
4
{
5
void
BI_Srecv
(
BLACSCONTEXT
*,
Int
,
Int
,
BLACBUFF
*);
6
Int
relnode, bit, Np, Iam, msgid;
7
8
Np = ctxt->
scp
->
Np
;
9
Iam = ctxt->
scp
->
Iam
;
10
msgid =
Mscopeid
(ctxt);
11
12
for
(bit=2; bit < Np; bit <<= 1);
13
if
(bit^Np)
return
(
NPOW2
);
/* not a power of 2 */
14
relnode = Iam ^ src;
15
16
BI_Srecv
(ctxt,
BANYNODE
, msgid, bp);
17
for
(bit=1; (bit^Np); bit <<= 1)
18
if
(bit > relnode) send(ctxt, Iam^bit, msgid, bp);
19
20
return
(0);
21
}
BI_HypBR
Int BI_HypBR(BLACSCONTEXT *ctxt, BLACBUFF *bp, SDRVPTR send, Int src)
Definition
BI_HypBR.c:3
BI_Srecv
void BI_Srecv(BLACSCONTEXT *ctxt, Int src, Int msgid, BLACBUFF *bp)
Definition
BI_Srecv.c:3
Int
#define Int
Definition
Bconfig.h:22
Mscopeid
#define Mscopeid(ctxt)
Definition
Bdef.h:179
NPOW2
#define NPOW2
Definition
Bdef.h:88
SDRVPTR
void(* SDRVPTR)(BLACSCONTEXT *, Int, Int, BLACBUFF *)
Definition
Bdef.h:69
BANYNODE
#define BANYNODE
Definition
Bdef.h:76
Bdef.h
bLaCbUfF
Definition
Bdef.h:55
bLaCsCoNtExT::scp
BLACSSCOPE * scp
Definition
Bdef.h:26
bLaCsCoNtExT
Definition
Bdef.h:24
bLaCsScOpE::Np
Int Np
Definition
Bdef.h:17
bLaCsScOpE::Iam
Int Iam
Definition
Bdef.h:17
BLACS
SRC
BI_HypBR.c
Generated on Sun Jan 12 2025 15:58:37 for SCALAPACK by
1.9.8