-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node hours report #1053
base: dev
Are you sure you want to change the base?
Node hours report #1053
Conversation
Add core-hours and node-hours to the logfile for every step
fixed how things are calculated in Vlasiator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition to the output!
const double GiB = pow(2,30); | ||
const double TiB = pow(2,40); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are never actually used below, as far as I can see?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right these came from where we copied the rest of the code and can go indeed.
MPI_Comm_rank(interComm, &interRank); | ||
MPI_Comm_size(interComm, &nNodes); | ||
|
||
MPI_Comm_free(&interComm); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nodeComm is never freed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Instead in between we were freeing interComm twice. 😬
vlasiator.cpp
Outdated
logFile << "(TIME) total node-hours " << nNodes*(currentTime - startTime)/3600 << " h" << endl; | ||
#if _OPENMP | ||
logFile << "(TIME) total core-hours " << omp_get_max_threads()*mpiProcs*(currentTime - startTime)/3600 << " h" << endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change the wording to "current" or "cumulated" here, "total" at the end (our own copy-paste problem here :)).
vlasiator.cpp
Outdated
logFile << "\t (TIME) total node-hours " << nNodes*(after - startTime)/3600 << " h" << endl; | ||
#if _OPENMP | ||
logFile << "\t (TIME) total core-hours " << omp_get_max_threads()*mpiProcs*(after - startTime)/3600 << " h" << endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I would suggest to reorder and have all of these (above and here) say sth like "(TIME) total x.y node-hours" instead of "node-hours x.y h"
Reorder the sentence and add MPI_Comm_free for nodeComm
Add core-hours and node-hours to the logfile for every step
Fixed with Yann