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
No related branches found
No related tags found
2 merge requests!136Master,!121Gpart mpi io
...@@ -102,6 +102,9 @@ int main(int argc, char *argv[]) { ...@@ -102,6 +102,9 @@ int main(int argc, char *argv[]) {
/* Choke on FP-exceptions. */ /* Choke on FP-exceptions. */
// feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW ); // feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
/* Initialize CPU frequency, this also starts time. */
clocks_set_cpufreq(cpufreq);
#ifdef WITH_MPI #ifdef WITH_MPI
/* Start by initializing MPI. */ /* Start by initializing MPI. */
int res, prov; int res, prov;
...@@ -132,9 +135,6 @@ int main(int argc, char *argv[]) { ...@@ -132,9 +135,6 @@ int main(int argc, char *argv[]) {
&initial_partition.grid[1], &initial_partition.grid[0]); &initial_partition.grid[1], &initial_partition.grid[0]);
#endif #endif
/* Initialize CPU frequency, this also starts time. */
clocks_set_cpufreq(cpufreq);
/* Greeting message */ /* Greeting message */
if (myrank == 0) greetings(); 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