Skip to content
Snippets Groups Projects
Commit 3a085e82 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Start time at beginning to tidy up log output

parent 3eb8bfec
No related branches found
No related tags found
1 merge request!8Draft: RDMA version with wrapped infinity calls
......@@ -469,6 +469,10 @@ static void usage(char *argv[]) {
*/
int main(int argc, char *argv[]) {
/* Start time for logging. This will be reset to restart time. */
clocks_set_cpufreq(0);
cpufreq = clocks_get_cpufreq();
/* Initiate MPI. */
int prov = 0;
int res = MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &prov);
......@@ -553,11 +557,7 @@ int main(int argc, char *argv[]) {
}
}
/* Time to start time. Try to make it synchronous across the ranks.
* Note we reset this once more when the startup costs have been
* done. */
clocks_set_cpufreq(0);
cpufreq = clocks_get_cpufreq();
/* Make synchronous across the ranks. */
MPI_Barrier(MPI_COMM_WORLD);
clocks_set_cpufreq(cpufreq);
if (myrank == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment