|
ScaLAPACK 2.1
2.1
ScaLAPACK: Scalable Linear Algebra PACKage
|
Go to the documentation of this file.
4 #if (INTFACE == C_CALL)
5 void Czgsum2d(
int ConTxt,
char *scope,
char *top,
int m,
int n,
double *A,
6 int lda,
int rdest,
int cdest)
9 double *A,
int *lda,
int *rdest,
int *cdest)
59 void BI_ArgCheck(
int,
int,
char *,
char,
char,
char,
int,
int,
int,
int,
76 void BI_zMPI_sum(
void *,
void *,
int *, MPI_Datatype *);
83 int N, length, dest, tlda, trdest, ierr;
98 if (ttop ==
' ') ttop = DefCombTop;
100 if (
Mpval(cdest) == -1) trdest = -1;
101 else trdest =
Mpval(rdest);
102 #if (BlacsDebugLvl > 0)
107 else tlda =
Mpval(m);
112 if (trdest == -1) dest = -1;
113 else dest =
Mpval(cdest);
121 if (trdest == -1) dest = -1;
145 bp->
Buff = (
char *) A;
165 ierr=MPI_Op_create(
BI_zMPI_sum, length, &BlacComb);
170 if (ctxt->
scp->
Iam == dest)
175 ierr=MPI_Allreduce(bp->
Buff, bp2->
Buff, bp->
N, bp->
dtype, BlacComb,
179 ierr=MPI_Op_free(&BlacComb);
231 if ( (ctxt->
scp->
Iam == dest) || (dest == -1) )
BLACBUFF * BI_Pack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
void BI_BeComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2, int N, VVFUNPTR Xvvop)
BLACBUFF * BI_GetBuff(int length)
void BI_Unpack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
#define MGetConTxt(Context, ctxtptr)
void BI_zMPI_sum(void *in, void *inout, int *N, MPI_Datatype *dtype)
void(* VVFUNPTR)(int, char *, char *)
void BI_MringComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2, int N, VVFUNPTR Xvvop, int dest, int nrings)
#define BI_zvmcopy(m, n, A, lda, buff)
#define BI_zmvcopy(m, n, A, lda, buff)
void BI_TreeComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2, int N, VVFUNPTR Xvvop, int dest, int nbranches)
void BI_zvvsum(int N, char *vec1, char *vec2)
MPI_Datatype BI_GetMpiGeType(BLACSCONTEXT *ctxt, int m, int n, int lda, MPI_Datatype Dtype, int *N)
void BI_BlacsErr(int ConTxt, int line, char *file, char *form,...)
void BI_ArgCheck(int ConTxt, int RoutType, char *routine, char scope, char uplo, char diag, int m, int n, int lda, int nprocs, int *prows, int *pcols)
#define Mvkpnum(ctxt, prow, pcol)
F_VOID_FUNC zgsum2d_(int *ConTxt, F_CHAR scope, F_CHAR top, int *m, int *n, double *A, int *lda, int *rdest, int *cdest)
void BI_UpdateBuffs(BLACBUFF *Newbp)
int BI_BuffIsFree(BLACBUFF *bp, int Wait)