63 INTEGER totmem, realsz, nin
64 parameter( totmem = 2000000, realsz = 8, nin = 11 )
66 parameter( memsiz = totmem / realsz )
70 CHARACTER*80 summry, usrinfo
71 INTEGER context, iam, info, isieee, maxnodes, nnocheck,
72 $ nout, npassed, nprocs, nskipped, ntests
85 EXTERNAL blacs_exit, blacs_get, blacs_gridexit,
86 $ blacs_gridinit, blacs_pinfo, blacs_setup,
87 $ igamn2d, pslachkieee, pslasnbt,
pssepreq
93 CALL blacs_pinfo( iam, nprocs )
100 OPEN( unit = nin, file =
'SEP.dat', status =
'OLD' )
101 READ( nin, fmt = * )summry
106 READ( nin, fmt = 9999 )usrinfo
110 READ( nin, fmt = * )summry
111 READ( nin, fmt = * )nout
112 IF( nout.NE.0 .AND. nout.NE.6 )
113 $
OPEN( nout, file = summry, status =
'UNKNOWN' )
114 READ( nin, fmt = * )maxnodes
115 READ( nin, fmt = * )hetero
118 IF( nprocs.LT.1 )
THEN
119 CALL blacs_setup( iam, maxnodes )
123 CALL blacs_get( -1, 0, context )
124 CALL blacs_gridinit( context,
'R', 1, nprocs )
126 CALL pslasnbt( isieee )
128 CALL igamn2d( context,
'a',
' ', 1, 1, isieee, 1, 1, 1, -1, -1,
131 IF( ( isieee.NE.0 ) )
THEN
133 WRITE( nout, fmt = 9998 )
134 WRITE( nout, fmt = 9997 )
135 WRITE( nout, fmt = 9996 )
136 WRITE( nout, fmt = 9995 )
137 WRITE( nout, fmt = 9994 )
138 WRITE( nout, fmt = 9993 )
139 WRITE( nout, fmt = 9992 )
140 WRITE( nout, fmt = 9991 )
141 WRITE( nout, fmt = 9990 )
144 CALL pslachkieee( isieee,
slamch(
'O' ),
slamch(
'U' ) )
146 CALL igamn2d( context,
'a',
' ', 1, 1, isieee, 1, 1, 1, -1, -1,
149 IF( isieee.EQ.0 )
THEN
151 WRITE( nout, fmt = 9989 )
152 WRITE( nout, fmt = 9988 )
153 WRITE( nout, fmt = 9987 )
159 WRITE( nout, fmt = 9986 )
165 WRITE( nout, fmt = 9999 )
166 $
'SCALAPACK symmetric Eigendecomposition routines.'
167 WRITE( nout, fmt = 9999 )usrinfo
168 WRITE( nout, fmt = 9999 )
' '
169 WRITE( nout, fmt = 9999 )
'Running tests of the parallel ' //
170 $
'symmetric eigenvalue routine: PSSYEVX & PSSYEV & ' //
172 WRITE( nout, fmt = 9999 )
'The following scaled residual ' //
173 $
'checks will be computed:'
174 WRITE( nout, fmt = 9999 )
' ||AQ - QL|| ' //
175 $
'/ ((abstol + ||A|| * eps) * N)'
176 WRITE( nout, fmt = 9999 )
' ||Q^T*Q - I|| ' //
'/ (N * eps)'
177 WRITE( nout, fmt = 9999 )
178 WRITE( nout, fmt = 9999 )
'An explanation of the ' //
179 $
'input/output parameters follows:'
180 WRITE( nout, fmt = 9999 )
'RESULT : passed; or ' //
181 $
'an indication of which eigen request test failed'
182 WRITE( nout, fmt = 9999 )
183 $
'N : The number of rows and columns ' //
185 WRITE( nout, fmt = 9999 )
186 $
'P : The number of process rows.'
187 WRITE( nout, fmt = 9999 )
188 $
'Q : The number of process columns.'
189 WRITE( nout, fmt = 9999 )
190 $
'NB : The size of the square blocks' //
191 $
' the matrix A is split into.'
192 WRITE( nout, fmt = 9999 )
193 $
'THRESH : If a residual value is less ' //
194 $
'than THRESH, RESULT is flagged as PASSED.'
195 WRITE( nout, fmt = 9999 )
196 $
' : the QTQ norm is allowed to exceed THRESH' //
197 $
' for those eigenvectors'
198 WRITE( nout, fmt = 9999 )
' : which could not be ' //
199 $
'reorthogonalized for lack of workspace.'
200 WRITE( nout, fmt = 9999 )
201 $
'TYP : matrix type (see PSSEPtst.f).'
202 WRITE( nout, fmt = 9999 )
'SUB : Subtests ' //
204 WRITE( nout, fmt = 9999 )
'CHK : ||AQ - QL|| ' //
205 $
'/ ((abstol + ||A|| * eps) * N)'
206 WRITE( nout, fmt = 9999 )
'QTQ : ||Q^T*Q - I||/ (N * eps)'
207 WRITE( nout, fmt = 9999 )
208 $
' : when the adjusted QTQ exceeds THRESH',
209 $
' the adjusted QTQ norm is printed'
210 WRITE( nout, fmt = 9999 )
211 $
' : otherwise the true QTQ norm is printed'
212 WRITE( nout, fmt = 9999 )
213 $
' If NT>1, CHK and QTQ are the max over all ' //
214 $
'eigen request tests'
215 WRITE( nout, fmt = 9999 )
216 $
'TEST : EVX - testing PSSYEVX, EV - testing PSSYEV'
217 WRITE( nout, fmt = 9999 )
' '
226 WRITE( nout, fmt = 9979 )
227 WRITE( nout, fmt = 9978 )
237 CALL pssepreq( hetero, nin, mem, memsiz, nout, iseed, ntests,
238 $ nskipped, nnocheck, npassed, info )
243 WRITE( nout, fmt = 9985 )ntests
244 WRITE( nout, fmt = 9984 )npassed
245 WRITE( nout, fmt = 9983 )nnocheck
246 WRITE( nout, fmt = 9982 )nskipped
247 WRITE( nout, fmt = 9981 )ntests - npassed - nskipped -
249 WRITE( nout, fmt = * )
250 WRITE( nout, fmt = * )
251 WRITE( nout, fmt = 9980 )
263 IF( nout.NE.6 .AND. nout.NE.0 )
267 CALL blacs_gridexit( context )
274 9998
FORMAT(
' I am about to check to make sure that overflow' )
275 9997
FORMAT(
' is handled in the ieee default manner. If this' )
276 9996
FORMAT(
' is the last output you see, you should assume' )
277 9995
FORMAT(
' that overflow caused a floating point exception.' )
278 9994
FORMAT(
' In that case, we recommend that you add -DNO_IEEE' )
279 9993
FORMAT(
' to the CDEFS line in SLmake.inc.' )
280 9992
FORMAT(
' Alternatively, you could set CDEFS in SLmake.inc ' )
281 9991
FORMAT(
' to enable the default ieee behaviour, However, this' )
282 9990
FORMAT(
' may result in good or very bad performance.' )
283 9989
FORMAT(
' Either signed zeroes or signed infinities ' )
284 9988
FORMAT(
' work incorrectly or your system. Change your' )
285 9987
FORMAT(
' SLmake.inc as suggested above.' )
287 9986
FORMAT(
' Your system appears to handle ieee overflow.' )
289 9985
FORMAT(
'Finished ', i6,
' tests, with the following results:' )
290 9984
FORMAT( i5,
' tests completed and passed residual checks.' )
291 9983
FORMAT( i5,
' tests completed without checking.' )
292 9982
FORMAT( i5,
' tests skipped for lack of memory.' )
293 9981
FORMAT( i5,
' tests completed and failed.' )
294 9980
FORMAT(
'END OF TESTS.' )
295 9979
FORMAT(
' N NB P Q TYP SUB WALL CPU ',
296 $
' CHK QTQ CHECK TEST' )
297 9978
FORMAT(
' ----- --- --- --- --- --- -------- --------',
298 $
' --------- --------- ----- ----' )