timing: try to directly retrieve gmx_cycles_calibrate() from the hardware
authorGilles Gouaillardet <gilles@rist.or.jp>
Tue, 3 Nov 2020 11:23:27 +0000 (11:23 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 3 Nov 2020 11:23:27 +0000 (11:23 +0000)
commit3c69c468704938f75afeb75bfded4663db8689c4
tree01766d8b8721c34e00a54c86a130cd5759022f07
parentafac7a2e54392d8a4dc6256879928ed039053933
timing: try to directly retrieve gmx_cycles_calibrate() from the hardware

The timer period can be directly retrieved from the hardware on ARMv8
and recent x86_64 platforms.
Try this first, and fall back on the current guessestimate on older x86_64 platforms
src/gromacs/nbnxm/benchmark/bench_setup.cpp
src/gromacs/nbnxm/benchmark/bench_setup.h
src/gromacs/nbnxm/benchmark/bench_system.cpp
src/gromacs/nbnxm/benchmark/bench_system.h
src/gromacs/timing/cyclecounter.cpp
src/programs/mdrun/nonbonded_bench.cpp