SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
BI_Unpack.c
Go to the documentation of this file.
1#include "Bdef.h"
2
3void BI_Unpack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
4{
5 MpiInt i=0, info, one=1;
6
7/*
8 * Some versions of mpich and its derivitives cannot handle 0 byte typedefs,
9 * so we have set MPI_BYTE as a flag for a 0 byte message
10 */
11#ifdef ZeroByteTypeBug
12 if (Dtype == MPI_BYTE) return;
13#endif
14 info=MPI_Unpack(bp->Buff, bp->Len, &i, A, one, Dtype, ctxt->scp->comm);
15 info=MPI_Type_free(&Dtype);
16}
void BI_Unpack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
Definition BI_Unpack.c:3
#define MpiInt
Definition Bconfig.h:25
#define BVOID
Definition Bdef.h:136
Int Len
Definition Bdef.h:57
char * Buff
Definition Bdef.h:56
BLACSSCOPE * scp
Definition Bdef.h:26
MPI_Comm comm
Definition Bdef.h:15