|
ScaLAPACK 2.1
2.1
ScaLAPACK: Scalable Linear Algebra PACKage
|
Go to the documentation of this file.
4 #if (INTFACE == C_CALL)
5 void Cdgsum2d(
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,
82 int N, length, dest, tlda, trdest, ierr;
96 if (ttop ==
' ') ttop = DefCombTop;
98 if (
Mpval(cdest) == -1) trdest = -1;
99 else trdest =
Mpval(rdest);
100 #if (BlacsDebugLvl > 0)
105 else tlda =
Mpval(m);
110 if (trdest == -1) dest = -1;
111 else dest =
Mpval(cdest);
119 if (trdest == -1) dest = -1;
136 length = N *
sizeof(double);
143 bp->
Buff = (
char *) A;
166 if (ctxt->
scp->
Iam == dest)
171 ierr=MPI_Allreduce(bp->
Buff, bp2->
Buff, bp->
N, bp->
dtype, MPI_SUM,
226 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)
F_VOID_FUNC dgsum2d_(int *ConTxt, F_CHAR scope, F_CHAR top, int *m, int *n, double *A, int *lda, int *rdest, int *cdest)
void(* VVFUNPTR)(int, char *, char *)
void BI_MringComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2, int N, VVFUNPTR Xvvop, int dest, int nrings)
void BI_dvmcopy(int m, int n, double *A, int lda, double *buff)
void BI_dvvsum(int N, char *vec1, char *vec2)
void BI_TreeComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2, int N, VVFUNPTR Xvvop, int dest, int nbranches)
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)
void BI_UpdateBuffs(BLACBUFF *Newbp)
int BI_BuffIsFree(BLACBUFF *bp, int Wait)
void BI_dmvcopy(int m, int n, double *A, int lda, double *buff)