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:

Both are must-read before reviewing.

In essence:

  • In vtkSISourceProxy, connect to the AbortCheckEvent (invoked by vtkAlgorithm::CheckAbort) to call ReduceAbort
  • In vtkSISourceProxy, connect to the CleanupAbortCheckEvent (invoked by vtkAlgorithm::CleanupCheckAbort) to call CleanupAbortRequests
  • vtkSISourceProxy::ReduceAbort, reduce abort flag from main rank to satellite ranks and then call SetAbortExecuteAndUpdateTime on 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

View data file

Edited by Mathieu Westphal (Kitware)

Merge request reports

Loading
Loading