edoddridge / aronnax

An idealised isopycnal model that can be run either with n+1/2 layers, or with n layers and variable bathymetry.
http://aronnax.readthedocs.io/en/latest/
MIT License
24 stars 5 forks source link

Pursuant to Issue #48, hack together basic hardware event counting for MIM runs. #79

Closed axch closed 7 years ago

axch commented 7 years ago

This is presumably OS-specific, in that, on the advice of http://www.bnikolic.co.uk/blog/hpc-howto-measure-flops.html, it uses perf stat, which relies on a Linux API for measuring CPU events. On Ubuntu, perf can be obtained by installing the linux-tools-generic package.

That weird number 530010 is a hex code for "floating point operation" for my particular CPU, which I discovered through the somewhat annoying process of building perfmon2/libpfm4 from source, per the instructions on http://askubuntu.com/questions/637144/how-to-install-perfmon2-on-ubuntu, and then running the resulting showevtinfo and check_events programs, as advised in http://www.bnikolic.co.uk/blog/hpc-prof-events.html.