Skip to content

Weak scaling instrumentation file#125

Open
fdrmrc wants to merge 2 commits intomainfrom
weak_scaling_app
Open

Weak scaling instrumentation file#125
fdrmrc wants to merge 2 commits intomainfrom
weak_scaling_app

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

@fdrmrc fdrmrc added test 🧪 This issue is related to tests parallel Related to distributed computing labels Aug 14, 2025
@fdrmrc fdrmrc force-pushed the main branch 2 times, most recently from 9c5ab95 to f9a49bb Compare December 13, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parallel Related to distributed computing test 🧪 This issue is related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants