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

◆ pb_inquire()

double precision function pb_inquire ( character*1  tmtype,
integer  i 
)

Definition at line 3128 of file pblastim.f.

3129*
3130* -- PBLAS test routine (version 2.0) --
3131* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
3132* and University of California, Berkeley.
3133* April 1, 1998
3134*
3135* .. Scalar Arguments ..
3136 CHARACTER*1 TMTYPE
3137 INTEGER I
3138* ..
3139*
3140* Purpose
3141* =======
3142*
3143* PB_INQUIRE returns wall or cpu time that has accumulated in timer I.
3144*
3145* Arguments
3146* =========
3147*
3148* TMTYPE (global input) CHARACTER
3149* On entry, TMTYPE specifies what time will be returned as fol-
3150* lows
3151* = 'W': wall clock time is returned,
3152* = 'C': CPU time is returned (default).
3153*
3154* I (global input) INTEGER
3155* On entry, I specifies the timer to return.
3156*
3157* -- Written on April 1, 1998 by
3158* R. Clint Whaley, University of Tennessee, Knoxville 37996, USA.
3159*
3160* =====================================================================
3161*
3162* .. Parameters ..
3163 INTEGER NTIMER
3164 parameter( ntimer = 64 )
3165 DOUBLE PRECISION ERRFLAG
3166 parameter( errflag = -1.0d+0 )
3167* ..
3168* .. Local Scalars ..
3169 DOUBLE PRECISION TIME
3170* ..
3171* .. External Functions ..
3172 LOGICAL LSAME
3173 DOUBLE PRECISION DCPUTIME00, DWALLTIME00
3174 EXTERNAL dcputime00, dwalltime00, lsame
3175* ..
3176* .. Common Blocks ..
3177 LOGICAL DISABLED
3178 DOUBLE PRECISION CPUSEC( NTIMER ), CPUSTART( NTIMER ),
3179 $ WALLSEC( NTIMER ), WALLSTART( NTIMER )
3180 COMMON /sltimer00/ cpusec, wallsec, cpustart, wallstart, disabled
3181* ..
3182* .. Executable Statements ..
3183*
3184 IF( lsame( tmtype, 'W' ) ) THEN
3185*
3186* If walltime not available on this machine, return -1 flag
3187*
3188 IF( dwalltime00().EQ.errflag ) THEN
3189 time = errflag
3190 ELSE
3191 time = wallsec( i )
3192 END IF
3193 ELSE
3194 IF( dcputime00().EQ.errflag ) THEN
3195 time = errflag
3196 ELSE
3197 time = cpusec( i )
3198 END IF
3199 END IF
3200*
3201 pb_inquire = time
3202*
3203 RETURN
3204*
3205* End of PB_INQUIRE
3206*
double precision function pb_inquire(tmtype, i)
Definition pblastim.f:3129
logical function lsame(ca, cb)
Definition tools.f:1724
Here is the call graph for this function:
Here is the caller graph for this function: