Loading
Abort: Add distributed support
Add support for aborting in distributed client/server mode.
Also improve greatly the AbortTesting plugin with:
- Setting to control the "AutoAbort" behavior
- Setting to control the "AutoAbort" value
- Add a "SleepTime" property to control how slow the filter should be
Also add doc and proper distributed testing.
Technical notes
Must read before reviewing:
- vtk/vtk#18463 (closed)
- https://discourse.paraview.org/t/paraview-client-server-communication-and-abort-support/17430
Both are must-read before reviewing.
In essence:
- In
vtkSISourceProxy, connect to theAbortCheckEvent(invoked byvtkAlgorithm::CheckAbort) to callReduceAbort - In
vtkSISourceProxy, connect to theCleanupAbortCheckEvent(invoked byvtkAlgorithm::CleanupCheckAbort) to callCleanupAbortRequests vtkSISourceProxy::ReduceAbort, reduce abort flag from main rank to satellite ranks and then callSetAbortExecuteAndUpdateTimeon all processes if needed (only in MPI mode)vtkSISourceProxy::CleanupAbortRequests, clear all remaining MPI message on all ranks and then abort one last time if needed
Here is how to test the feature:
- distributed paraview
- Wavelet, -1000,1000,-1000,1000,-100,100, Apply
- Wait for a progress event to come in
- Press abort button multiple times until it get registered
- Abort should work and the filter should stop
- You can press apply again to apply the filter again
To check:
- distributed c/s
- distributed c/r/s
- uneven distribution
- empty node distri: hangs bot considered invalid input
- check each filter from vtk/vtk#18463 (closed): Another MR
- check each important filter: Another MR
Needs:
Data in this Merge Request
unbalanced.vtkhdf
Edited by Mathieu Westphal (Kitware)