SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ ztrsd2d_()

F_VOID_FUNC ztrsd2d_ ( Int ConTxt,
F_CHAR  uplo,
F_CHAR  diag,
Int m,
Int n,
double *  A,
Int lda,
Int rdest,
Int cdest 
)

Definition at line 7 of file ztrsd2d_.c.

58{
59 void BI_ArgCheck(Int, Int, char *, char, char, char, Int, Int, Int, Int,
60 Int *, Int *);
61 MPI_Datatype BI_GetMpiTrType(BLACSCONTEXT *, char, char, Int, Int, Int,
62 MPI_Datatype, Int *);
63 BLACBUFF *BI_Pack(BLACSCONTEXT *, BVOID *, BLACBUFF *, MPI_Datatype);
69
70 char tuplo, tdiag;
71 Int dest, length, tlda, ierr;
72 BLACBUFF *bp;
73 BLACSCONTEXT *ctxt;
74 MPI_Datatype MatTyp;
76
77 MGetConTxt(Mpval(ConTxt), ctxt);
78 tuplo = F2C_CharTrans(uplo);
79 tdiag = F2C_CharTrans(diag);
80 tuplo = Mlowcase(tuplo);
81 tdiag = Mlowcase(tdiag);
82
83#if (BlacsDebugLvl > 0)
84 BI_ArgCheck(Mpval(ConTxt), RT_SD, "ZTRSD2D", 'a', tuplo, tdiag, Mpval(m),
85 Mpval(n), Mpval(lda), 1, Mpaddress(rdest), Mpaddress(cdest));
86#endif
87 if (Mpval(lda) < Mpval(m)) tlda = Mpval(m);
88 else tlda = Mpval(lda);
89 dest = Mvkpnum(ctxt, Mpval(rdest), Mpval(cdest));
90 ctxt->scp = &ctxt->pscp;
91
92 MatTyp = BI_GetMpiTrType(ctxt, tuplo, tdiag, Mpval(m), Mpval(n), tlda,
93 MPI_DOUBLE_COMPLEX, &BI_AuxBuff.N);
94#ifdef SndIsLocBlk
95 BI_AuxBuff.Buff = (char *) A;
96 BI_AuxBuff.dtype = MatTyp;
97 BI_Ssend(ctxt, dest, PT2PTID, &BI_AuxBuff);
98#else
99 bp = BI_Pack(ctxt, (BVOID *) A, NULL, MatTyp);
100 BI_Asend(ctxt, Mkpnum(ctxt, Mpval(rdest), Mpval(cdest)), PT2PTID, bp);
101#endif
102 ierr=BI_MPI_TYPE_FREE(&MatTyp);
103
104/*
105 * Having started the async send, update the buffers (reform links, check if
106 * active buffers have become inactive, etc.)
107 */
108#ifdef SndIsLocBlk
109 if (BI_ActiveQ) BI_UpdateBuffs(NULL);
110#else
111 BI_UpdateBuffs(bp);
112#endif
113} /* end of ztrsd2d */
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)
Definition BI_ArgCheck.c:4
void BI_Asend(BLACSCONTEXT *ctxt, Int dest, Int msgid, BLACBUFF *bp)
Definition BI_Asend.c:3
Int BI_BuffIsFree(BLACBUFF *bp, Int Wait)
BLACBUFF * BI_GetBuff(Int length)
Definition BI_GetBuff.c:37
MPI_Datatype BI_GetMpiTrType(BLACSCONTEXT *ctxt, char uplo, char diag, Int m, Int n, Int lda, MPI_Datatype Dtype, Int *N)
BLACBUFF * BI_ActiveQ
BLACBUFF BI_AuxBuff
BLACBUFF * BI_Pack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
Definition BI_Pack.c:2
void BI_Ssend(BLACSCONTEXT *ctxt, Int dest, Int msgid, BLACBUFF *bp)
Definition BI_Ssend.c:3
void BI_UpdateBuffs(BLACBUFF *Newbp)
#define Int
Definition Bconfig.h:22
#define BI_MPI_TYPE_FREE(t)
Definition Bdef.h:305
#define F2C_CharTrans(c)
Definition Bdef.h:246
#define Mvkpnum(ctxt, prow, pcol)
Definition Bdef.h:174
#define MGetConTxt(Context, ctxtptr)
Definition Bdef.h:200
#define Mpaddress(para)
Definition Bdef.h:262
#define Mpval(para)
Definition Bdef.h:261
#define Mkpnum(ctxt, prow, pcol)
Definition Bdef.h:173
#define RT_SD
Definition Bdef.h:105
#define PT2PTID
Definition Bdef.h:77
#define Mlowcase(C)
Definition Bdef.h:145
#define BVOID
Definition Bdef.h:136
Int N
Definition Bdef.h:61
MPI_Datatype dtype
Definition Bdef.h:60
char * Buff
Definition Bdef.h:56
BLACSSCOPE pscp
Definition Bdef.h:25
BLACSSCOPE * scp
Definition Bdef.h:26
Here is the call graph for this function: