GEOS icon indicating copy to clipboard operation
GEOS copied to clipboard

feat: hypre improvements

Open victorapm opened this issue 1 year ago • 7 comments

  • Replace internal GEOS SDC implementation with hypre's
  • Remove tracking of certain SDC times
  • Add hypre log level support
  • Update hypre umpire pools naming
  • Add missing coarse solver options in AMG
  • Remove unused SDC variables in GEOS data structures
  • Add separateComponents option to mechanics solver setup in MGR
  • Move addCommaSeparators to StringUtilities
  • Add unknowns and nonzeros info to linear solver message, e.g.:
Linear Solver | Success | Unknowns: 645,162 | Nonzeros: 42,898,950 | Iterations: 39 | Final Rel Res: 9.4042e-05 | Setup Time: 0.538 s | Solve Time: 0.933 s

Requires https://github.com/GEOS-DEV/thirdPartyLibs/pull/286

victorapm avatar Sep 09 '24 13:09 victorapm

Here is a quick test I ran on a version of SPE10 with burdens, compositional poromechanics, though with homogeneous properties, (so its just a high perm slab between two low perm boxes). Should be about 40 million DoF, and I ran on Dane.

Here were the results with develop a few weeks ago

Mpi ranks Total Run Time (s) Linear Solver Setup (s) Linear Solver Solve (s) Total GMRES Iterations (always 43 Total Newton iters)
64 2087 523 1966 1850
128 1451 343 1381 1833
256 963 234 662 1890
512 624 182 404 1974

Here are the results with the new Hypre

Mpi ranks Total Run Time (s) Linear Solver Setup (s) Linear Solver Solve (s) Total GMRES Iterations (always 43 Total Newton iters)
64 1568 233 1162 2281
128 1115 139 865 2229
256 723 85 572 2293
512 470 85 347 2366

Note that this does not double the number of nodes for each test, I will do that now

ryar9534 avatar Sep 10 '24 19:09 ryar9534

Old results for heterogeneous SPE10 compositional poromechanics on CPU (dane)

Dane cores (Mpi ranks) Total Run Time (s) Linear Solver Setup (s) Linear Solver Solve (s) Time steps/Nonlin iters / Lin iters
2 (224) 2409 488 1764 24/76/3464
4 (448) 1440 380 977 24/76/3862
8 (896) 1075 447 583 24/76/4286

New results for heterogeneous SPE10 compositional poromechanics on CPU (dane)

Dane cores (Mpi ranks) Total Run Time (s) Linear Solver Setup (s) Linear Solver Solve (s) Time steps/Nonlin iters / Lin iters
2 (224) 1770 185 1425 24/76/3882
4 (448) 952 152 719 24/76/3960
8 (896) 686 225 417 24/76/4228

ryar9534 avatar Sep 11 '24 16:09 ryar9534

We are investigating a few convergence issues with Poromechanics runs using this branch. @drmichaeltcvx, please you can put your tests on hold until the issue is sorted out

victorapm avatar Oct 10 '24 21:10 victorapm

@paveltomin this should work for SEQ runs now

victorapm avatar Oct 22 '24 17:10 victorapm

[like] Thomadakis, Michael reacted to your message:


From: Victor A. P. Magri @.> Sent: Thursday, October 10, 2024 9:29:13 PM To: GEOS-DEV/GEOS @.> Cc: Thomadakis, Michael @.>; Mention @.> Subject: [EXTERNAL] Re: [GEOS-DEV/GEOS] feat: hypre improvements (PR #3339)

Be aware this external email contains an attachment and/or link. Ensure the email and contents are expected. If there are concerns, please submit suspicious messages to the Cyber Intelligence Center using the Report Phishing button.

We are investigating a few convergence issues with Poromechanics runs using this branch. @drmichaeltcvxhttps://github.com/drmichaeltcvx, please you can put your tests on hold until the issue is sorted out

— Reply to this email directly, view it on GitHubhttps://github.com/GEOS-DEV/GEOS/pull/3339#issuecomment-2406069968, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS6ZG2RPWTBYKN45GHRDVELZ23WSTAVCNFSM6AAAAABN4TL2HKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWGA3DSOJWHA. You are receiving this because you were mentioned.Message ID: @.***>

drmichaeltcvx avatar Oct 22 '24 17:10 drmichaeltcvx

[like] Thomadakis, Michael reacted to your message:


From: Victor A. P. Magri @.> Sent: Tuesday, October 22, 2024 5:23:58 PM To: GEOS-DEV/GEOS @.> Cc: Thomadakis, Michael @.>; Mention @.> Subject: [EXTERNAL] Re: [GEOS-DEV/GEOS] feat: hypre improvements (PR #3339)

Be aware this external email contains an attachment and/or link. Ensure the email and contents are expected. If there are concerns, please submit suspicious messages to the Cyber Intelligence Center using the Report Phishing button.

@paveltominhttps://github.com/paveltomin this should work for SEQ runs now

— Reply to this email directly, view it on GitHubhttps://github.com/GEOS-DEV/GEOS/pull/3339#issuecomment-2429848059, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS6ZG2S5RJU3QN4QOIMEZB3Z42C25AVCNFSM6AAAAABN4TL2HKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRZHA2DQMBVHE. You are receiving this because you were mentioned.Message ID: @.***>

drmichaeltcvx avatar Oct 22 '24 17:10 drmichaeltcvx

Codecov Report

Attention: Patch coverage is 19.04762% with 68 lines in your changes missing coverage. Please review.

Project coverage is 57.50%. Comparing base (4bcf7df) to head (bea64ed). Report is 64 commits behind head on develop.

Files with missing lines Patch % Lines
...es/hypre/mgrStrategies/MultiphasePoromechanics.hpp 0.00% 14 Missing :warning:
...e/mgrStrategies/ThermalMultiphasePoromechanics.hpp 0.00% 14 Missing :warning:
...onents/linearAlgebra/interfaces/hypre/HypreMGR.hpp 0.00% 8 Missing :warning:
...ysics/CompositionalMultiphaseReservoirAndWells.cpp 44.44% 5 Missing :warning:
...ntact/SolidMechanicsAugmentedLagrangianContact.cpp 0.00% 4 Missing :warning:
...nts/linearAlgebra/interfaces/hypre/HypreSolver.cpp 0.00% 2 Missing :warning:
...e/mgrStrategies/HybridSinglePhasePoromechanics.hpp 0.00% 2 Missing :warning:
...a/interfaces/hypre/mgrStrategies/Hydrofracture.hpp 0.00% 2 Missing :warning:
...hypre/mgrStrategies/LagrangianContactMechanics.hpp 0.00% 2 Missing :warning:
...s/hypre/mgrStrategies/SinglePhasePoromechanics.hpp 0.00% 2 Missing :warning:
... and 9 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3339      +/-   ##
===========================================
- Coverage    57.55%   57.50%   -0.05%     
===========================================
  Files         1135     1134       -1     
  Lines        97850    97830      -20     
===========================================
- Hits         56316    56257      -59     
- Misses       41534    41573      +39     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Oct 22 '24 21:10 codecov[bot]

@CusiniM @rrsettgast Could you do a new LC build and create the LvArray PR?

Can we put this on the merge queue?

Thanks!

victorapm avatar Oct 31 '24 16:10 victorapm

@castelletto1 @CusiniM @rrsettgast Can you guys take it from here? It seems there's nothing else I can do. Thanks!

victorapm avatar Nov 08 '24 01:11 victorapm

@castelletto1 @CusiniM @rrsettgast Can you guys take it from here? It seems there's nothing else I can do. Thanks!

is this basically ready? I mean it clearly needs an LvArray PR and a rebaseline but is it ready otherwise?

CusiniM avatar Nov 12 '24 23:11 CusiniM

Right, it's ready. Needs a LvArray PR and LC build, which I can't do. Rebaseline is due to field value change (amgNumFunctions)

victorapm avatar Nov 12 '24 23:11 victorapm