[firedrake] Hardware counters for Firedrake

Lawrence Mitchell lawrence.mitchell at imperial.ac.uk
Thu Jul 16 15:30:41 BST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16/07/15 15:09, Justin Chang wrote:
> Lawrence
> 
> 1) Okay that makes sense. Don't know why I didn't see this
> earlier.
> 
> 2) Okay thanks,
> 
> 3) The only reason I wanted that function was to get &real_time.
> Unless there's a more efficient way (or "firedrake" way) of getting
> this metric? In my case, I only want the time from SNESSolve()

You could just use time.time() from the python time library

I have also pushed an update to PyPAPI to wrap PAPI_get_real_cyc and
PAPI_get_real_usec, the latter of which will give you the equivalent
of real_time.

Cheers,

Lawrence
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVp8ANAAoJECOc1kQ8PEYv8hIIANA4Ux1VL2+LKAgYGE0IPp4Z
xY1uFPMP1uEgr2S4gLl90Ws1SiFvn7w97IBQqqqia547Xiq2wTR8m1+Va2pY4nLT
O2306hJZxZMPm6ngi1xglfOk/Jxtp0CWbS6zhych2g066WmsrSKJwSx3FL8c25eR
qWTjMHyM5Kn7URHdnQNIGyvXIaM77xk+1uHwIY7PnNlCwodgLgnHWItRYxRlsvy0
gnFE9kSAgAA4XHnpcQ7Gundq2+JKeNwW5SG7orxFNRM1+ru7UHergj70byX9ZCS0
SmPCjHJEiI6FSyigp+BWg9RI46rU3VU9GBYNXRKCVAvvbtuPEzpb8mla8A6IJdY=
=Edfm
-----END PGP SIGNATURE-----



More information about the firedrake mailing list