You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As written, the compiled benchmarks don't measure the time taken for a n-body simulation. For example, the Fortran compiles (GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)) to
The loop from 400640 to 40064c corresponds to the time = time + half_time_step lines only i.e. the entire n-body simulation is optimised away. For these benchmarks to be at all useful, you must ensure that the compiler is unable to prove that virtually all the work is unnecessary. The easiest way to do this is to e.g. write out the results at the end, and measure only the computation time if that's what's of interest to you.
The text was updated successfully, but these errors were encountered:
As written, the compiled benchmarks don't measure the time taken for a n-body simulation. For example, the Fortran compiles (GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)) to
The loop from 400640 to 40064c corresponds to the
time = time + half_time_step
lines only i.e. the entire n-body simulation is optimised away. For these benchmarks to be at all useful, you must ensure that the compiler is unable to prove that virtually all the work is unnecessary. The easiest way to do this is to e.g. write out the results at the end, and measure only the computation time if that's what's of interest to you.The text was updated successfully, but these errors were encountered: