[Paraview] Non-blocking coprocessing

Gallagher, Timothy P tim.gallagher at gatech.edu
Mon Oct 24 18:56:51 EDT 2016


Hello again!


I'm looking at using coprocessing for something that may take awhile to actually compute, so I would like to do it in a non-blocking fashion. Essentially I am going to be extracting data from the simulation into some numpy arrays (so once copied, the original data in the pipeline can change) and then send it to the root processor to do some global operations.


The global operations may take some time (not minutes, but longer than I want my simulation to wait for it to complete). Is there a way to do part of the pipeline in a non-blocking fashion, where the script calls a function that will write out a data file when processing and then returns control to the simulation prior to the function completion? Will I have to do something in native-python, like spawn a new thread to do the function call, or is there a way to do it with how Paraview operates?


On a related note, I may not want to have the root processor of the coprocessing to have any simulation code running on it. If I am running my simulation on N cores, is it possible to have N+1 cores running the coprocessor pipeline where the extra core receives the global data reduction from the N cores and does the crunching? Or am I starting to ask for too much there?


Thanks as always,


Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20161024/88d56195/attachment.html>


More information about the ParaView mailing list