[petsc-users] MatAssemblyEnd taking too long

Junchao Zhang junchao.zhang at gmail.com
Thu Aug 20 10:22:36 CDT 2020


See if you could reproduce the problem on another machine, e.g., a Linux
workstation with MPICH?

--Junchao Zhang


On Wed, Aug 19, 2020 at 7:32 PM Manav Bhatia <bhatiamanav at gmail.com> wrote:

> Hi,
>
>    I have an application that uses the KSP solver and I am looking at the
> performance with increasing system size. I am currently running on MacBook
> Pro with 32 GB memory and Petsc obtained from GitHub (commit
> df0e43005dbe6ff47eff22a32b336a6c37d02c3a).
>
>    The application runs fine till about 2e6 DoFs using gamg without any
> problems.
>
>    However, when I try a larger system size, in this case with 5.4e6 DoFs,
> the application hangs for an hour and I have to kill the MPI processes.
>
>    I tried to use Xcode Instruments to profile the 8 MPI processes and I
> have attached a screenshot of the recorded results from each process. All
> processes are stuck inside MatAssemblyEnd, but at different function calls.
>
>    I am not sure how to debug this issue, and would greatly appreciate any
> guidance.
>
>    For reference, I am calling PETSc with the following options:
>   -ksp_type gmres -pc_type gamg -mat_block_size 3 -mg_levels_ksp_max_it 4
> -ksp_monitor -ksp_converged_reason
>
> Regards,
> Manav
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-08-19 at 7.16.08 PM.png
Type: image/png
Size: 211493 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-08-19 at 7.16.06 PM.png
Type: image/png
Size: 202337 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-08-19 at 7.16.04 PM.png
Type: image/png
Size: 184314 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-08-19 at 7.16.02 PM.png
Type: image/png
Size: 185896 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-08-19 at 7.15.59 PM.png
Type: image/png
Size: 804446 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-08-19 at 7.15.57 PM.png
Type: image/png
Size: 851646 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-08-19 at 7.15.55 PM.png
Type: image/png
Size: 787467 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-08-19 at 7.15.52 PM.png
Type: image/png
Size: 966045 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200820/0cf4685e/attachment-0015.png>


More information about the petsc-users mailing list