ScaLAPACK 2.1
2.1
ScaLAPACK: Scalable Linear Algebra PACKage
BI_IdringBR.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
void
BI_IdringBR
(
BLACSCONTEXT
*ctxt,
BLACBUFF
*bp,
SDRVPTR
send,
int
src,
int
step)
4
{
5
void
BI_Srecv
(
BLACSCONTEXT
*,
int
,
int
,
BLACBUFF
*);
6
int
Np, Iam, msgid, dest;
7
8
Np = ctxt->
scp
->
Np
;
9
Iam = ctxt->
scp
->
Iam
;
10
dest = (Np + Iam + step) % Np;
11
msgid =
Mscopeid
(ctxt);
12
BI_Srecv
(ctxt,
BANYNODE
, msgid, bp);
13
if
(dest != src) send(ctxt, dest, msgid, bp);
14
}
bLaCbUfF
Definition:
Bdef.h:54
BI_IdringBR
void BI_IdringBR(BLACSCONTEXT *ctxt, BLACBUFF *bp, SDRVPTR send, int src, int step)
Definition:
BI_IdringBR.c:3
bLaCsScOpE::Iam
int Iam
Definition:
Bdef.h:17
Mscopeid
#define Mscopeid(ctxt)
Definition:
Bdef.h:179
bLaCsCoNtExT
Definition:
Bdef.h:23
SDRVPTR
void(* SDRVPTR)(BLACSCONTEXT *, int, int, BLACBUFF *)
Definition:
Bdef.h:69
bLaCsCoNtExT::scp
BLACSSCOPE * scp
Definition:
Bdef.h:26
Bdef.h
BI_Srecv
void BI_Srecv(BLACSCONTEXT *ctxt, int src, int msgid, BLACBUFF *bp)
Definition:
BI_Srecv.c:3
bLaCsScOpE::Np
int Np
Definition:
Bdef.h:17
BANYNODE
#define BANYNODE
Definition:
Bdef.h:76
BLACS
SRC
BI_IdringBR.c
Generated by
1.8.16