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

Weak scaling instrumentation file #125

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Weak scaling instrumentation file #125

wants to merge 2 commits into from

Conversation

fdrmrc
Copy link
Owner

@fdrmrc fdrmrc commented Aug 30, 2024

This PR adds an instrumentation file to show the weak scaling. It solves an elliptic 3D problem with polynomial degree $p=2$ by increasing simultaneously:

  • the size of the underlying grid by a round of global refinement
  • the number of agglomerates by a factor of $8$ ($2^d$, $d=3$).

Runs with 256 processors on CINECA are as follows. Processors to the right of the red vertical line have more than $10^5$ DoFs, showing the classical trend shown in the "Distributed Computing paper" Algorithms and Data Structures for Massively Parallel Generic Finite Element Codes (fig. 10) in the case of standard shapes. @luca-heltai

weak_scaling

@luca-heltai
Copy link
Collaborator

This is very nice, but it is actually a strong scaling example... :D

To do a weak scaling plot, you have to increase also the number of processors when you increase the degrees of freedom, i.e., run a 8 times bigger problem on 8 times more processors. If you ran this same test on 8, 64, 512, and 4096 procs, and putting on the same plot all of the results (for each stage), you'd get both strong and weak scaling.

@fdrmrc
Copy link
Owner Author

fdrmrc commented Sep 1, 2024

Sure. Let me be more precise here: I was mimicking what was done in the paper (see the next figure on the left) by fixing the number of processors and varying the problem's size incrementally as done here. We already had a strong scaling example (such as the one the right, with a fixed problem's size), and I have not reported that in this PR.

Screenshot 2024-09-02 at 00 53 31

@fdrmrc
Copy link
Owner Author

fdrmrc commented Sep 1, 2024

If you ran this same test on 8, 64, 512, and 4096 procs, and putting on the same plot all of the results (for each stage), you'd get both strong and weak scaling.

The classical weak scaling plot looks like this: (with 8,64, and 512 procs). All the new components (i.e. everything besides the AMG preconditioner) are scaling weakly

immagine

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.

2 participants