Skip to content
Snippets Groups Projects
Commit 0d96b833 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Start the clock before MPI

parent 0dab2629
Branches
Tags
2 merge requests!136Master,!121Gpart mpi io
......@@ -102,6 +102,9 @@ int main(int argc, char *argv[]) {
/* Choke on FP-exceptions. */
// feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
/* Initialize CPU frequency, this also starts time. */
clocks_set_cpufreq(cpufreq);
#ifdef WITH_MPI
/* Start by initializing MPI. */
int res, prov;
......@@ -132,9 +135,6 @@ int main(int argc, char *argv[]) {
&initial_partition.grid[1], &initial_partition.grid[0]);
#endif
/* Initialize CPU frequency, this also starts time. */
clocks_set_cpufreq(cpufreq);
/* Greeting message */
if (myrank == 0) greetings();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment