Replies: 1 comment 3 replies
-
The multigrid will be presented in PPAM2022. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed there is an implementation of algebraic multigrid based on AmgX. It is not mentioned in your papers so it is probably more recent. Is it considered complete or still work in progress? Do you plan to implement more smoothers or coarsening methods (like "classical" or smoothed aggregation)?
I'm asking because I tried using Ginkgo's AMG in my PDE solver and it performed very poorly. I can reproduce the problem on a simple Poisson equation in 2D (5-point stencil) and 3D (7-point stencil) which can be compared with Hypre:
The actual results (iterations of AMG-preconditioned conjugate gradients):
On the 1024x1024 grid, Ginkgo-Jacobi needed about 25 seconds to solve the system, but Ginkgo-AmgX needed about 72 seconds and Hypre needed just about 2 seconds (which includes even time to convert the matrix to the Hypre data structure). On the 256^3 grid it's 201 sec vs 490 sec vs 53 sec. (benchmarked on Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz using 8 OpenMP threads)
Obviously the problem seems to be that this AmgX configuration does not provide (nearly) grid independent convergence rate, but stays similar to Jacobi (the iterations count with AmgX is almost double on the next grid).
Also note that Hypre can be configured to show info about the multigrid hierarchy, which is very useful for performance tuning. It would be nice if Ginkgo could do something similar:
Beta Was this translation helpful? Give feedback.
All reactions