On 2/19/21 12:23 PM, Zachary Streeter wrote:
I have created a PETSc::MPI::SparseMatrix that has a global matrix
distributed across all the processes.  I then pass it to SLEPc to solve for
its spectrum.  I get the correct spectrum so I am pretty sure everything is
correct.  My question is regarding strange behavior with more cores.

For a relatively small problem, my program runs fine with 1 or 2 cores.
But the program will hang if I try it with 3 cores.

If I increase the problem (make a denser grid etc.) my program may work
with 3 and 4 cores (which is faster) but it hangs now with 5 cores. (Note
this is all the test I’v done so far.)

Each time my program hangs on the SLEPc solve part.  This leads me to think
there are communications in the solver that are slowing everything down.
Though I would imagine collective communications to slow down the program
and not have it hang indefinitely (at least as long as my patience lasted).
I am using SLEPcWrappers::SolverKyrlovSchur, FYI.

Since my program hangs on the Slepc Solver from dealii I wanted to ask
everyone here what they think.  Have any of you seen this before?

This behavior is a bottleneck on the number of cores I can use and that is
not ideal, of course.  So any suggestions on how to investigate/ remedy
would be appreciated.

Right, hanging programs are a nuisance ;-)

The approach to debug deadlocks is to attach a debugger and see where exactly your program is stuck and why. I believe that there is a video lecture on debugging parallel programs that shows how to use a debugger in such contexts.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/38ce4c19-ff03-fab8-3e5d-4f5fc051aff3%40colostate.edu.

Reply via email to