3 SUBROUTINE pdsepreq( HETERO, NIN, MEM, MEMSIZE, NOUT, ISEED,
4 $ NTESTS, NSKIPPED, NNOCHECK, NPASSED, INFO )
13 INTEGER INFO, MEMSIZE, NIN, NNOCHECK, NOUT, NPASSED,
18 DOUBLE PRECISION MEM( MEMSIZE )
76 INTEGER BLOCK_CYCLIC_2D, DLEN_, DTYPE_, CTXT_, M_, N_,
77 $ mb_, nb_, rsrc_, csrc_, lld_
78 parameter( block_cyclic_2d = 1, dlen_ = 9, dtype_ = 1,
79 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
80 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
81 INTEGER DBLESZ, INTGSZ
82 parameter( dblesz = 8, intgsz = 4 )
84 parameter( maxsetsize = 50 )
88 INTEGER CONTEXT, IAM, IMIDPAD, INITCON, IPOSTPAD,
89 $ iprepad, isizesubtst, isizesyevx, isizetst,
90 $ lda, llwork, matsize, mattype, mycol, myrow, n,
91 $ nb, nmatsizes, nmattypes, nnodes, np, npcol,
92 $ npconfigs, nprow, nq, nuplos, order, pconfig,
93 $ ptra, ptrcopya, ptrgap, ptriclus, ptrifail,
94 $ ptriwrk, ptrw, ptrw2, ptrwork, ptrz, res,
95 $ sizechk, sizemqrleft, sizemqrright, sizeqrf,
96 $ sizeqtq, sizesubtst, sizesyev, sizesyevx,
97 $ sizetms, sizetst, uplo, isizesyevd, sizesyevd
99 DOUBLE PRECISION ABSTOL, THRESH
103 INTEGER DESCA( DLEN_ ), MATSIZES( MAXSETSIZE ),
104 $ mattypes( maxsetsize ), nbs( maxsetsize ),
105 $ npcols( maxsetsize ), nprows( maxsetsize )
108 INTEGER ICEIL, NUMROC
109 EXTERNAL iceil, numroc
112 EXTERNAL blacs_abort, blacs_get, blacs_gridexit,
113 $ blacs_gridinfo, blacs_gridinit, blacs_pinfo,
121 IF( block_cyclic_2d*csrc_*ctxt_*dlen_*dtype_*lld_*mb_*m_*nb_*n_*
124 CALL blacs_pinfo( iam, nnodes )
125 CALL blacs_get( -1, 0, initcon )
126 CALL blacs_gridinit( initcon,
'R', 1, nnodes )
128 CALL pdsepinfo( initcon, iam, nin, nout, maxsetsize, nmatsizes,
129 $ matsizes, nuplos, uplos, npconfigs, nprows,
130 $ npcols, nbs, nmattypes, mattypes, 22, subtests,
131 $ thresh, order, abstol, info )
133 CALL blacs_gridexit( initcon )
138 DO 40 matsize = 1, nmatsizes
140 DO 30 pconfig = 1, npconfigs
142 DO 20 mattype = 1, nmattypes
144 DO 10 uplo = 1, nuplos
146 n = matsizes( matsize )
149 nprow = nprows( pconfig )
150 npcol = npcols( pconfig )
153 np = numroc( n, nb, 0, 0, nprow )
154 nq = numroc( n, nb, 0, 0, npcol )
155 iprepad =
max( nb, np )
157 ipostpad =
max( nb, nq )
159 lda =
max( np, 1 ) + imidpad
161 CALL blacs_get( -1, 0, context )
162 CALL blacs_gridinit( context,
'R', nprow, npcol )
163 CALL blacs_gridinfo( context, nprow, npcol, myrow,
166 IF( myrow.GE.0 )
THEN
167 CALL descinit( desca, n, n, nb, nb, 0, 0,
168 $ context, lda, info )
170 $ sizemqrleft, sizemqrright,
171 $ sizeqrf, sizetms, sizeqtq,
172 $ sizechk, sizesyevx,
173 $ isizesyevx, sizesyev,
174 $ sizesyevd, isizesyevd,
175 $ sizesubtst, isizesubtst,
176 $ sizetst, isizetst )
179 ptrz = ptra + lda*nq + iprepad + ipostpad
180 ptrcopya = ptrz + lda*nq + iprepad + ipostpad
181 ptrw = ptrcopya + lda*nq + iprepad + ipostpad
182 ptrw2 = ptrw +
max( n, 1 ) + iprepad + ipostpad
183 ptrgap = ptrw2 +
max( n, 1 ) + iprepad +
185 ptrifail = ptrgap + nprow*npcol + iprepad +
187 ptriclus = ptrifail + iceil( n+iprepad+ipostpad,
189 ptriwrk = ptriclus + iceil( 2*nprow*npcol+
190 $ iprepad+ipostpad, dblesz / intgsz )
191 ptrwork = ptriwrk + iceil( isizetst+iprepad+
192 $ ipostpad, dblesz / intgsz )
193 llwork = memsize - ptrwork + 1
197 IF( llwork.LT.sizetst )
THEN
198 nskipped = nskipped + 1
200 CALL pdseptst( desca, uplos( uplo ), n,
201 $ mattypes( mattype ), subtests,
202 $ thresh, n, abstol, iseed,
203 $ mem( ptra ), mem( ptrcopya ),
204 $ mem( ptrz ), lda, mem( ptrw ),
205 $ mem( ptrw2 ), mem( ptrifail ),
207 $ mem( ptrgap ), iprepad,
208 $ ipostpad, mem( ptrwork ),
209 $ llwork, mem( ptriwrk ),
210 $ isizetst, hetero, nout, res )
213 npassed = npassed + 1
214 ELSE IF( res.EQ.2 )
THEN
215 nnocheck = nnocheck + 1
216 ELSE IF( res.EQ.3 )
THEN
217 nskipped = nskipped + 1
218 WRITE( nout, fmt = * )
' PDSEPREQ failed'
219 CALL blacs_abort( context, -1 )
222 CALL blacs_gridexit( context )