Skip to content
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

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

Conversation

ArnaudLalague
Copy link
Contributor

Add core-hours and node-hours to the logfile for every step
Fixed with Yann

Add core-hours and node-hours to the logfile for every step
fixed how things are calculated in Vlasiator
Copy link
Contributor

@ursg ursg left a 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!

Comment on lines +428 to +429
const double GiB = pow(2,30);
const double TiB = pow(2,40);
Copy link
Contributor

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?

Copy link
Contributor

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);
Copy link
Contributor

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.

Copy link
Contributor

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
Comment on lines 912 to 914
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;
Copy link
Contributor

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
Comment on lines 1394 to 1396
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;
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants