1 SUBROUTINE pcnepinfo( SUMMRY, NOUT, NMAT, NVAL, LDNVAL, NNB,
2 $ NBVAL, LDNBVAL, NGRIDS, PVAL, LDPVAL, QVAL,
3 $ LDQVAL, THRESH, WORK, IAM, NPROCS )
11 CHARACTER*( * ) SUMMRY
12 INTEGER IAM, LDNBVAL, LDNVAL, LDPVAL, LDQVAL, NGRIDS,
13 $ nmat, nnb, nout, nprocs
17 INTEGER NBVAL( LDNBVAL ), NVAL( LDNVAL ),
18 $ PVAL( LDPVAL ), QVAL( LDQVAL ), WORK( * )
108 PARAMETER ( NIN = 11 )
136 OPEN( nin, file =
'NEP.dat', status =
'OLD' )
137 READ( nin, fmt = * )summry
142 READ( nin, fmt = 9999 )usrinfo
146 READ( nin, fmt = * )summry
147 READ( nin, fmt = * )nout
148 IF( nout.NE.0 .AND. nout.NE.6 )
149 $
OPEN( nout, file = summry, status =
'UNKNOWN' )
155 READ( nin, fmt = * )nmat
156 IF( nmat.LT.1 .OR. nmat.GT.ldnval )
THEN
157 WRITE( nout, fmt = 9994 )
'N', ldnval
160 READ( nin, fmt = * )( nval( i ), i = 1, nmat )
164 READ( nin, fmt = * )nnb
165 IF( nnb.GT.ldnbval )
THEN
166 WRITE( nout, fmt = 9994 )
'NB', ldnbval
169 READ( nin, fmt = * )( nbval( i ), i = 1, nnb )
172 IF( nbval( i ).LT.6 )
THEN
173 WRITE( nout, fmt = 9992 )nbval( i )
181 IF( ngrids.LT.1 .OR. ngrids.GT.ldpval )
THEN
182 WRITE( nout, fmt = 9994 )
'Grids'
184 ELSE IF( ngrids.GT.ldqval )
THEN
185 WRITE( nout, fmt = 9994 )
'Grids', ldqval
191 READ( nin, fmt = * )( pval( i ), i = 1, ngrids )
192 READ( nin, fmt = * )( qval( i ), i = 1, ngrids )
196 READ( nin, fmt = * )thresh
205 IF( nprocs.LT.1 )
THEN
208 nprocs =
max( nprocs, pval( i )*qval( i ) )
210 CALL blacs_setup( iam, nprocs )
216 CALL blacs_get( -1, 0, ictxt )
221 eps = pslamch( ictxt, 'eps
' )
225 CALL SGEBS2D( ICTXT, 'all
', ' ', 1, 1, thresh, 1 )
230 CALL igebs2d( ictxt, 'all
', ' ', 3, 1, WORK, 3 )
233 CALL ICOPY( NMAT, NVAL, 1, WORK( I ), 1 )
235 CALL ICOPY( NNB, NBVAL, 1, WORK( I ), 1 )
237 CALL ICOPY( NGRIDS, PVAL, 1, WORK( I ), 1 )
239 CALL ICOPY( NGRIDS, QVAL, 1, WORK( I ), 1 )
241 CALL IGEBS2D( ICTXT, 'all
', ' ', I, 1, WORK, I )
245 WRITE( NOUT, FMT = 9999 )
246 $ 'scalapack qsq^h by schur decomposition.
'
247 WRITE( NOUT, FMT = 9999 )USRINFO
248 WRITE( NOUT, FMT = * )
249 WRITE( NOUT, FMT = 9999 )'tests of
the parallel ' //
250 $
'complex single precision Schur decomposition.'
251 WRITE( nout, fmt = 9999 )
'The following scaled residual ' //
252 $
'checks will be computed:'
253 WRITE( nout, fmt = 9999 )
254 $
' Residual = ||H-QSQ^H|| / ' //
255 $
'(||H|| * eps * N )'
256 WRITE( nout, fmt = 9999 )
257 $
' Orthogonality residual = ||I - Q^HQ|| / ' //
'( eps * N )'
258 WRITE( nout, fmt = 9999 )
'The matrix A is randomly ' //
259 $
'generated for each test.'
260 WRITE( nout, fmt = * )
261 WRITE( nout, fmt = 9999 )
'An explanation of the input/output '
262 $ //
'parameters follows:'
263 WRITE( nout, fmt = 9999 )
264 $
'TIME : Indicates whether WALL or ' //
265 $
'CPU time was used.'
267 WRITE( nout, fmt = 9999 )
268 $
'N : The number of columns in the ' //
'matrix A.'
269 WRITE( nout, fmt = 9999 )
270 $
'NB : The size of the square blocks the' //
271 $
' matrix A is split into.'
272 WRITE( nout, fmt = 9999 )
273 $
'P : The number of process rows.'
274 WRITE( nout, fmt = 9999 )
275 $
'Q : The number of process columns.'
276 WRITE( nout, fmt = 9999 )
277 $
'THRESH : If a residual value is less than' //
278 $
' THRESH, CHECK is flagged as PASSED'
279 WRITE( nout, fmt = 9999 )
280 $
'NEP time : Time in seconds to decompose the ' //
' matrix'
281 WRITE( nout, fmt = 9999 )
'MFLOPS : Rate of execution '
282 WRITE( nout, fmt = * )
283 WRITE( nout, fmt = 9999 )
284 $
'The following parameter values will be used:'
285 WRITE( nout, fmt = 9996 )
'N ',
286 $ ( nval( i ), i = 1,
min( nmat, 10 ) )
288 $
WRITE( nout, fmt = 9997 )( nval( i ), i = 11, nmat )
289 WRITE( nout, fmt = 9996 )
'NB ',
290 $ ( nbval( i ), i = 1,
min( nnb, 10 ) )
292 $
WRITE( nout, fmt = 9997 )( nbval( i ), i = 11, nnb )
293 WRITE( nout, fmt = 9996 )
'P ',
294 $ ( pval( i ), i = 1,
min( ngrids, 10 ) )
296 $
WRITE( nout, fmt = 9997 )( pval( i ), i = 11, ngrids )
297 WRITE( nout, fmt = 9996 )
'Q ',
298 $ ( qval( i ), i = 1,
min( ngrids, 10 ) )
300 $
WRITE( nout, fmt = 9997 )( qval( i ), i = 11, ngrids )
301 WRITE( nout, fmt = * )
302 WRITE( nout, fmt = 9995 )eps
303 WRITE( nout, fmt = 9998 )thresh
310 $
CALL blacs_setup( iam, nprocs )
315 CALL blacs_get( -1, 0, ictxt )
320 eps = pslamch( ictxt, 'eps
' )
322 CALL SGEBR2D( ICTXT, 'all
', ' ', 1, 1, THRESH, 1, 0, 0 )
323 CALL IGEBR2D( ICTXT, 'all
', ' ', 3, 1, WORK, 3, 0, 0 )
328 I = NMAT + NNB + 2*NGRIDS
329 CALL IGEBR2D( ICTXT, 'all
', ' ', I, 1, WORK, I, 0, 0 )
331 CALL ICOPY( NMAT, WORK( I ), 1, NVAL, 1 )
333 CALL ICOPY( NNB, WORK( I ), 1, NBVAL, 1 )
335 CALL ICOPY( NGRIDS, WORK( I ), 1, PVAL, 1 )
337 CALL ICOPY( NGRIDS, WORK( I ), 1, QVAL, 1 )
341 CALL BLACS_GRIDEXIT( ICTXT )
346 WRITE( NOUT, FMT = 9993 )
348.NE..AND..NE.
IF( NOUT6 NOUT0 )
350 CALL BLACS_ABORT( ICTXT, 1 )
355 9998 FORMAT( 'routines pass computational tests
if scaled residual
',
356 $ 'is less than
', G12.5 )
357 9997 FORMAT( ' ', 10I6 )
358 9996 FORMAT( 2X, A5, ' :
', 10I6 )
359 9995 FORMAT( 'relative machine precision(eps) is taken to be
',
361 9994 FORMAT( ' number of values of
', 5A,
362 $ ' is less than 1 or greater
', 'than
', I2 )
363 9993 FORMAT( ' illegal input in file
', 40A, '. aborting run.
' )
364 9992 FORMAT( ' blocking
size too small at
', I2, ' must be >=6.
' )
subroutine pcnepinfo(summry, nout, nmat, nval, ldnval, nnb, nbval, ldnbval, ngrids, pval, ldpval, qval, ldqval, thresh, work, iam, nprocs)