SCALAPACK
2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
BI_Srecv.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
void
BI_Srecv
(
BLACSCONTEXT
*ctxt,
Int
src,
Int
msgid,
BLACBUFF
*bp)
4
{
5
Int
i, info;
6
extern
MPI_Status *
BI_Stats
;
7
8
info=MPI_Recv(bp->
Buff
, bp->
N
, bp->
dtype
, src, msgid, ctxt->
scp
->
comm
,
BI_Stats
);
9
/*
10
* If we are doing our own buffering, need to determine the true length of
11
* the message just received
12
*/
13
#ifndef MpiBuffGood
14
if
(bp->
dtype
== MPI_PACKED)
15
{
16
info=MPI_Get_count(
BI_Stats
, MPI_PACKED, &i);
17
if
(i != MPI_UNDEFINED) bp->
N
= i;
18
else
BI_BlacsWarn
(
BI_ContxtNum
(ctxt), __LINE__, __FILE__,
19
"MPI_Get_count returned MPI_UNDEFINED.\n"
);
20
}
21
#endif
22
}
BI_Stats
MPI_Status * BI_Stats
Definition
BI_GlobalVars.c:14
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
BI_ContxtNum
Int BI_ContxtNum(BLACSCONTEXT *ctxt)
Definition
BI_ContxtNum.c:3
BI_BlacsWarn
void BI_BlacsWarn(Int ConTxt, Int line, char *file, char *form,...)
Definition
BI_BlacsWarn.c:3
Bdef.h
bLaCbUfF::N
Int N
Definition
Bdef.h:61
bLaCbUfF::dtype
MPI_Datatype dtype
Definition
Bdef.h:60
bLaCbUfF::Buff
char * Buff
Definition
Bdef.h:56
bLaCbUfF
Definition
Bdef.h:55
bLaCsCoNtExT::scp
BLACSSCOPE * scp
Definition
Bdef.h:26
bLaCsCoNtExT
Definition
Bdef.h:24
bLaCsScOpE::comm
MPI_Comm comm
Definition
Bdef.h:15
BLACS
SRC
BI_Srecv.c
Generated on Sun Jan 12 2025 15:58:37 for SCALAPACK by
1.9.8