ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
BI_Asend.c
Go to the documentation of this file.
1 #include "Bdef.h"
2 
3 void BI_Asend(BLACSCONTEXT *ctxt, int dest, int msgid, BLACBUFF *bp)
4 {
5  int i, info, errclass;
6 
7  info=MPI_Isend(bp->Buff, bp->N, bp->dtype, dest, msgid, ctxt->scp->comm,
8  &bp->Aops[bp->nAops]);
9  while(info != MPI_SUCCESS)
10  {
11  i=MPI_Error_class(info, &errclass);
12  if ( (errclass != MPI_ERR_UNKNOWN) && (errclass != MPI_ERR_OTHER) &&
13  (errclass != MPI_ERR_INTERN) )
14  {
15  Mmpierror(info, "MPI_Isend", ctxt, __LINE__, __FILE__);
16  BI_BlacsErr(BI_ContxtNum(ctxt), __LINE__, __FILE__,
17  "MPI error %d on call to MPI_Isend", info);
18  }
19 #if (BlacsDebugLvl > 0)
20  else BI_BlacsWarn(BI_ContxtNum(ctxt), __LINE__, __FILE__,
21 "MPI error %d assumed to mean out of non-blocking resources on call to MPI_Isend",
22  info);
23 #endif
24  info=MPI_Isend(bp->Buff, bp->N, bp->dtype, dest, msgid, ctxt->scp->comm,
25  &bp->Aops[bp->nAops]);
26  }
27  bp->nAops++;
28 }
bLaCbUfF::Buff
char * Buff
Definition: Bdef.h:56
BI_Asend
void BI_Asend(BLACSCONTEXT *ctxt, int dest, int msgid, BLACBUFF *bp)
Definition: BI_Asend.c:3
Mmpierror
#define Mmpierror(ierr, rout, ctxt, line, file)
Definition: Bdef.h:217
bLaCbUfF
Definition: Bdef.h:54
bLaCbUfF::N
int N
Definition: Bdef.h:61
bLaCbUfF::Aops
MPI_Request * Aops
Definition: Bdef.h:59
bLaCsCoNtExT
Definition: Bdef.h:23
bLaCbUfF::nAops
int nAops
Definition: Bdef.h:58
bLaCsCoNtExT::scp
BLACSSCOPE * scp
Definition: Bdef.h:26
Bdef.h
bLaCsScOpE::comm
MPI_Comm comm
Definition: Bdef.h:15
bLaCbUfF::dtype
MPI_Datatype dtype
Definition: Bdef.h:60
BI_BlacsErr
void BI_BlacsErr(int ConTxt, int line, char *file, char *form,...)
Definition: BI_BlacsErr.c:3
BI_BlacsWarn
void BI_BlacsWarn(int ConTxt, int line, char *file, char *form,...)
Definition: BI_BlacsWarn.c:3
BI_ContxtNum
int BI_ContxtNum(BLACSCONTEXT *ctxt)
Definition: BI_ContxtNum.c:3