58{
59 void BI_ArgCheck(
Int,
Int,
char *,
char,
char,
char,
Int,
Int,
Int,
Int,
77
78
79
82 char ttop, tscope;
83 Int N, length, dest, tlda, trdest, ierr;
84 MPI_Op BlacComb;
87
93
94
95
96
97#ifdef DefCombTop
98 if (ttop == ' ') ttop = DefCombTop;
99#endif
100 if (
Mpval(cdest) == -1) trdest = -1;
101 else trdest =
Mpval(rdest);
102#if (BlacsDebugLvl > 0)
105#endif
107 else tlda =
Mpval(m);
108 switch(tscope)
109 {
110 case 'r':
112 if (trdest == -1) dest = -1;
113 else dest =
Mpval(cdest);
114 break;
115 case 'c':
117 dest = trdest;
118 break;
119 case 'a':
121 if (trdest == -1) dest = -1;
123 break;
124 default:
126 tscope);
127 }
128
129
130
131
132
133 if (ttop == ' ')
137
138
139
141 {
143 bp->
Buff = (
char *) A;
145 }
146
147
148
149 else
150 {
155 }
158
159 switch(ttop)
160 {
161 case ' ':
162 length = 1;
163 ierr=MPI_Op_create(
BI_cMPI_sum, length, &BlacComb);
164 if (dest != -1)
165 {
168 if (ctxt->
scp->
Iam == dest)
170 }
171 else
172 {
173 ierr=MPI_Allreduce(bp->
Buff, bp2->
Buff, bp->
N, bp->
dtype, BlacComb,
176 }
177 ierr=MPI_Op_free(&BlacComb);
179 return;
180 break;
181 case 'i':
183 break;
184 case 'd':
186 break;
187 case 's':
189 break;
190 case 'm':
192 break;
193 case '1':
194 case '2':
195 case '3':
196 case '4':
197 case '5':
198 case '6':
199 case '7':
200 case '8':
201 case '9':
203 break;
204 case 'f':
206 break;
207 case 't':
209 break;
210 case 'h':
211
212
213
216 else
218 break;
219 default :
221 ttop);
222 }
223
224
225
226
228 {
229 if ( (ctxt->
scp->
Iam == dest) || (dest == -1) )
232 }
233 else
234 {
237 }
238}
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)
void BI_BeComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2, Int N, VVFUNPTR Xvvop)
Int BI_BuffIsFree(BLACBUFF *bp, Int Wait)
BLACBUFF * BI_GetBuff(Int length)
MPI_Datatype BI_GetMpiGeType(BLACSCONTEXT *ctxt, Int m, Int n, Int lda, MPI_Datatype Dtype, Int *N)
void BI_MringComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2, Int N, VVFUNPTR Xvvop, Int dest, Int nrings)
BLACBUFF * BI_Pack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
void BI_TreeComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2, Int N, VVFUNPTR Xvvop, Int dest, Int nbranches)
void BI_Unpack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
void BI_UpdateBuffs(BLACBUFF *Newbp)
void BI_cMPI_sum(void *in, void *inout, MpiInt *N, MPI_Datatype *dtype)
void BI_cvvsum(Int N, char *vec1, char *vec2)
void BI_BlacsErr(Int ConTxt, Int line, char *file, char *form,...)
#define BI_cvmcopy(m, n, A, lda, buff)
#define Mvkpnum(ctxt, prow, pcol)
#define MGetConTxt(Context, ctxtptr)
void(* VVFUNPTR)(Int, char *, char *)
#define BI_cmvcopy(m, n, A, lda, buff)