Sometimes, depending on the process launcher being used by MPI you don&#39;t get the same environment in your current shell as you get from the mpiexeced environment, since interactive shells behave differently than non-interactive shells in regards to what dot files they read and/or don&#39;t read.  <div>
<br></div><div>you should try an</div><div>ssh ldd <span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">/home/dersh/projects/ParaView-bin/bin/pvserver</span></div>
<div>or</div><div>rsh ldd <span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">/home/dersh/projects/ParaView-bin/bin/pvserver</span></div><div><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">if you get the same output as </span></div>
<div><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">ldd </span><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">/home/dersh/projects/ParaView-bin/bin/pvserver</span></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">I&#39;m barking up the wrong tree.</span></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><br>
</span></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">Good Luck,</span></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">--John.</span></font></div>
<div><div><br><div class="gmail_quote">On Tue, Apr 17, 2012 at 1:02 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are there multiple version of MPI installed by any chance?<br>
<br>
Utkarsh<br>
<br>
On Tue, Apr 17, 2012 at 2:51 PM, Adam Dershowitz<br>
<div class="HOEnZb"><div class="h5">&lt;<a href="mailto:adershowitz@exponent.com">adershowitz@exponent.com</a>&gt; wrote:<br>
&gt; Attached are the results of ldd libvtkParallel.so (looks to me like it is<br>
&gt; linking MPI stuff).  And also CMakeCache.txt<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: Utkarsh Ayachit [mailto:<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>]<br>
&gt; Sent: Tue 4/17/2012 6:14 AM<br>
&gt; To: Adam Dershowitz<br>
&gt; Cc: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
&gt; Subject: Re: [Paraview] MPI Socket in use<br>
&gt;<br>
&gt; Do you mind posting your CMakeCache.txt file? Also do a &quot;ldd<br>
&gt; libvtkParallel.so&quot;. Let&#39;s verify that vtkParallel is linking against<br>
&gt; MPI libs.<br>
&gt;<br>
&gt; Utkarsh<br>
&gt;<br>
&gt; On Tue, Apr 17, 2012 at 12:26 AM, Adam Dershowitz, Ph.D., P.E.<br>
&gt; &lt;<a href="mailto:adershowitz@exponent.com">adershowitz@exponent.com</a>&gt; wrote:<br>
&gt;&gt; I am sure that I use ccmake and changed PARAVIEW_USE_MPI to ON, (I also<br>
&gt;&gt; enabled python and pointed to the open mpi compiler, so that it then filled<br>
&gt;&gt; in most of the variables for MPI, as the note explains).  Then I did<br>
&gt;&gt; configure and generate.  Finally I did make, and sudo make install.  All<br>
&gt;&gt; seemed to work fine, and paraview runs fine, with a single processor.<br>
&gt;&gt; I even went so far and to make a new, empty directory, and rebuilt it<br>
&gt;&gt; there.  With the same results.<br>
&gt;&gt; I have also tried to explicitly put in the correct path, just to make sure<br>
&gt;&gt; that there isn&#39;t some other pvserver around:<br>
&gt;&gt; mpirun -np 3 /home/dersh/projects/ParaView-bin/bin/pvserver<br>
&gt;&gt; with exactly the same results.<br>
&gt;&gt; I have gone back, and now I see that MPIEXEC_MAX_NUMPROCS and<br>
&gt;&gt; VTK_MPI_MAX_NUMPROCS are set to 2.  But, I get the same error if I try to<br>
&gt;&gt; run it with -np 2, so clearly just using MPI is failing.  A<br>
&gt;&gt;<br>
&gt;&gt; I realized that the problem is consistent with it not being built with<br>
&gt;&gt; MPI, but I definitely set it on.  Are there some other variables that have<br>
&gt;&gt; to be set?  Clearly something is not being built correctly, but I am not<br>
&gt;&gt; sure what it is.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; --Adam<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Apr 16, 2012, at 7:09 PM, Utkarsh Ayachit wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; You may want to verify PARAVIEW_USE_MPI flag again and ensure that the<br>
&gt;&gt;&gt; pvserver you&#39;re running is indeed the one that has PARAVIEW_USE_MPI<br>
&gt;&gt;&gt; set to ON. The problem you&#39;re seeing is typical when ParaView not<br>
&gt;&gt;&gt; built with MPI.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Utkarsh<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Mon, Apr 16, 2012 at 8:10 PM, Adam Dershowitz<br>
&gt;&gt;&gt; &lt;<a href="mailto:adershowitz@exponent.com">adershowitz@exponent.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; I just built paraview on an opensuse linux box.  When I use the GUI, and<br>
&gt;&gt;&gt;&gt; a<br>
&gt;&gt;&gt;&gt; single connection it seems to work fine.  But, if I try to use multiple<br>
&gt;&gt;&gt;&gt; CPUs, or run with mpi, it fails.<br>
&gt;&gt;&gt;&gt; I do have OpenMPI installed.<br>
&gt;&gt;&gt;&gt; When I first started getting the error, I googled around some and found<br>
&gt;&gt;&gt;&gt; that<br>
&gt;&gt;&gt;&gt; maybe &quot;make install&quot; would help (I had been running it just in the build<br>
&gt;&gt;&gt;&gt; directory).  But I am getting the same error after installing.  I also<br>
&gt;&gt;&gt;&gt; added<br>
&gt;&gt;&gt;&gt; my openmpi libraries to LD_LIBRARY_PATH (when I first tried to run it I<br>
&gt;&gt;&gt;&gt; had<br>
&gt;&gt;&gt;&gt; other errors about a shared library).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I did build with PARAVIEW_USE_MPI set to on.  It looks as though one<br>
&gt;&gt;&gt;&gt; pvserver will run, but any additional ones finds a port in use.  Clearly<br>
&gt;&gt;&gt;&gt; something is not right about how MPI is being handled, but I am not sure<br>
&gt;&gt;&gt;&gt; how<br>
&gt;&gt;&gt;&gt; to fix it.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; If I try mpirun, here is error I get:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; mpiexec -np 3  pvserver<br>
&gt;&gt;&gt;&gt; Waiting for client...<br>
&gt;&gt;&gt;&gt; Connection URL: cs://cfd:11111<br>
&gt;&gt;&gt;&gt; Accepting connection(s): cfd:11111<br>
&gt;&gt;&gt;&gt; Waiting for client...<br>
&gt;&gt;&gt;&gt; Connection URL: cs://cfd:11111<br>
&gt;&gt;&gt;&gt; ERROR: In<br>
&gt;&gt;&gt;&gt; /home/dersh/projects/ParaView-3.14.1-Source/VTK/Common/vtkSocket.cxx,<br>
&gt;&gt;&gt;&gt; line<br>
&gt;&gt;&gt;&gt; 206<br>
&gt;&gt;&gt;&gt; vtkServerSocket (0xebd970): Socket error in call to bind. Address<br>
&gt;&gt;&gt;&gt; already in<br>
&gt;&gt;&gt;&gt; use.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ERROR: In<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; /home/dersh/projects/ParaView-3.14.1-Source/ParaViewCore/ClientServerCore/vtkTCPNetworkAccessManager.cxx,<br>
&gt;&gt;&gt;&gt; line 343<br>
&gt;&gt;&gt;&gt; vtkTCPNetworkAccessManager (0x661800): Failed to set up server socket.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Exiting...<br>
&gt;&gt;&gt;&gt; Waiting for client...<br>
&gt;&gt;&gt;&gt; Connection URL: cs://cfd:11111<br>
&gt;&gt;&gt;&gt; ERROR: In<br>
&gt;&gt;&gt;&gt; /home/dersh/projects/ParaView-3.14.1-Source/VTK/Common/vtkSocket.cxx,<br>
&gt;&gt;&gt;&gt; line<br>
&gt;&gt;&gt;&gt; 206<br>
&gt;&gt;&gt;&gt; vtkServerSocket (0xebd970): Socket error in call to bind. Address<br>
&gt;&gt;&gt;&gt; already in<br>
&gt;&gt;&gt;&gt; use.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ERROR: In<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; /home/dersh/projects/ParaView-3.14.1-Source/ParaViewCore/ClientServerCore/vtkTCPNetworkAccessManager.cxx,<br>
&gt;&gt;&gt;&gt; line 343<br>
&gt;&gt;&gt;&gt; vtkTCPNetworkAccessManager (0x661800): Failed to set up server socket.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Exiting...<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -----------------------------------------------------------------------------<br>
&gt;&gt;&gt;&gt; It seems that [at least] one of the processes that was started with<br>
&gt;&gt;&gt;&gt; mpirun did not invoke MPI_INIT before quitting (it is possible that<br>
&gt;&gt;&gt;&gt; more than one process did not invoke MPI_INIT -- mpirun was only<br>
&gt;&gt;&gt;&gt; notified of the first one, which was on node n0).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; mpirun can *only* be used with MPI programs (i.e., programs that<br>
&gt;&gt;&gt;&gt; invoke MPI_INIT and MPI_FINALIZE).  You can use the &quot;lamexec&quot; program<br>
&gt;&gt;&gt;&gt; to run non-MPI programs over the lambooted nodes.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -----------------------------------------------------------------------------<br>
&gt;&gt;&gt;&gt; mpirun failed with exit status 252<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; And suggestions would be greatly appreciated.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; thanks,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --Adam<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt;&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div></div>