[Paraview] MPI-aware reader plugin only has rank 0

Schlottke, Michael M.Schlottke at aia.rwth-aachen.de
Mon Apr 13 09:22:27 EDT 2015


Hi there,

I’m having trouble getting my custom ParaView reader plugin to work correctly with MPI. ParaView was built with MPI enabled. After starting the server with

mpirun -n NN pvserver

I connect to it from a GUI client and try to load a datafile with the parallel reader plugin. To debug & test MPI first, I added the following lines to the RequestData method or the reader plugin:

int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
std::cout << “rank/size: “ << rank << “/“ << size << std::endl;

The expected output on the pvserver shell would be something like this:

rank/size: 1/4
rank/size: 2/4
rank/size: 3/4
rank/size: 0/4

However, all I ever get is the last line, i.e. the output from rank 0. It thus seems like the communicator size is determined correctly, but only one process is really active. What am I doing wrong, or what do I have to do to get MPI to work as expected?

Thank you very much in advance

Michael

P.S.:

After starting the server and connecting to it, I get the following warning once per rank:

Warning: In /home/mic/.pool/.src/ParaView-v4.3.1-source/ParaViewCore/ClientServerCore/Rendering/vtkPVClientServerSynchronizedRenderers.cxx, line 170
vtkPVClientServerSynchronizedRenderers (0x1e000f0): Could not create the compressor by name .

Maybe this is related to the problem described above? I also get this warning on the client side, although only once or twice.

--
Michael Schlottke

Chair of Fluid Mechanics and Institute of Aerodynamics
RWTH Aachen University
Wüllnerstraße 5a
52062 Aachen
Germany

Phone: +49 (241) 80 95188
Fax: +49 (241) 80 92257
Mail: m.schlottke at aia.rwth-aachen.de<mailto:m.schlottke at aia.rwth-aachen.de>
Web: http://www.aia.rwth-aachen.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150413/9ed43c1a/attachment.html>


More information about the ParaView mailing list