<div dir="ltr"><div><div><div>Hello,<br>I am trying to use VTK's MPI communication from pvpython, running with OpenMPI's mpirun. It seems like ParaView hasn't enabled the MPI capabilities for VTK, although it was compiled from source with PARAVIEW_USE_MPI=ON and correctly found the system OpenMPI-2.0.0 libraries and includes.<br><br>I am running the short example below with the command "mpirun -n 2 pvpython test.py". The full output is also attached.<br>In short, both MPI processes report rank=0 and size=1 and their controller is a vtkDummyController although I expected rank=0..1, size=2 and a vtkMPIController.<br><br>Is it possible to determine the problem with the given information? Do I need extra CMake settings besides "PARAVIEW_USE_MPI=ON" to enable MPI for VTK?<br>ParaView by itself runs fine in parallel, and I can start several parallel pvservers using "mpirun -n 16 pvserver".<br><br>--- test.py: ---<br>import vtk<br><br>c = vtk.vtkMultiProcessController.GetGlobalController()<br><br>print "comm:",type(c)<br>rank = c.GetLocalProcessId()<br>print "rank:",rank<br>size = c.GetNumberOfProcesses()<br>print "size:",size<br><br>if rank == 0:<br> ssource = vtk.vtkSphereSource()<br> ssource.Update()<br> print " 0 sending."<br> c.Send(ssource.GetOutput(), 1, 1234)<br>else:<br> sphere = vtk.vtkPolyData()<br> print " 1 receiving."<br> c.Receive(sphere, 0, 1234)<br> print sphere<br><br>--- Test run: ---<br>$ mpirun -n 2 pvpython test.py <br>comm: <type 'vtkParallelCorePython.vtkDummyController'><br>rank: 0<br>size: 1<br> 0 sending.<br>Warning: In /home/user/.local/easybuild/build/ParaView/5.3.0/foss-2016b-mpi/ParaView-v5.3.0/VTK/Parallel/Core/vtkDummyCommunicator.h, line 47<br>vtkDummyCommunicator (0x1ff74e0): There is no one to send to.<br>[... 7 more times the same Warning...]<br><br>comm: <type 'vtkParallelCorePython.vtkDummyController'><br>rank: 0<br>size: 1<br> 0 sending.<br>Warning: In /home/user/.local/easybuild/build/ParaView/5.3.0/foss-2016b-mpi/ParaView-v5.3.0/VTK/Parallel/Core/vtkDummyCommunicator.h, line 47<br>vtkDummyCommunicator (0x22c14e0): There is no one to send to.<br>[... 7 more times the same Warning...]<br></div>--- end of output ---<br><br></div>Thank you!<br></div>Ephraim<br></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virenfrei. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>