<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [Paraview] MPI Socket in use</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Attached are the results of ldd libvtkParallel.so (looks to me like it is linking MPI stuff). And also CMakeCache.txt<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Utkarsh Ayachit [<A HREF="mailto:utkarsh.ayachit@kitware.com">mailto:utkarsh.ayachit@kitware.com</A>]<BR>
Sent: Tue 4/17/2012 6:14 AM<BR>
To: Adam Dershowitz<BR>
Cc: paraview@paraview.org<BR>
Subject: Re: [Paraview] MPI Socket in use<BR>
<BR>
Do you mind posting your CMakeCache.txt file? Also do a "ldd<BR>
libvtkParallel.so". Let's verify that vtkParallel is linking against<BR>
MPI libs.<BR>
<BR>
Utkarsh<BR>
<BR>
On Tue, Apr 17, 2012 at 12:26 AM, Adam Dershowitz, Ph.D., P.E.<BR>
<adershowitz@exponent.com> wrote:<BR>
> I am sure that I use ccmake and changed PARAVIEW_USE_MPI to ON, (I also enabled python and pointed to the open mpi compiler, so that it then filled in most of the variables for MPI, as the note explains). Then I did configure and generate. Finally I did make, and sudo make install. All seemed to work fine, and paraview runs fine, with a single processor.<BR>
> I even went so far and to make a new, empty directory, and rebuilt it there. With the same results.<BR>
> I have also tried to explicitly put in the correct path, just to make sure that there isn't some other pvserver around:<BR>
> mpirun -np 3 /home/dersh/projects/ParaView-bin/bin/pvserver<BR>
> with exactly the same results.<BR>
> I have gone back, and now I see that MPIEXEC_MAX_NUMPROCS and VTK_MPI_MAX_NUMPROCS are set to 2. But, I get the same error if I try to run it with -np 2, so clearly just using MPI is failing. A<BR>
><BR>
> I realized that the problem is consistent with it not being built with MPI, but I definitely set it on. Are there some other variables that have to be set? Clearly something is not being built correctly, but I am not sure what it is.<BR>
><BR>
> Thanks,<BR>
><BR>
> --Adam<BR>
><BR>
><BR>
><BR>
> On Apr 16, 2012, at 7:09 PM, Utkarsh Ayachit wrote:<BR>
><BR>
>> You may want to verify PARAVIEW_USE_MPI flag again and ensure that the<BR>
>> pvserver you're running is indeed the one that has PARAVIEW_USE_MPI<BR>
>> set to ON. The problem you're seeing is typical when ParaView not<BR>
>> built with MPI.<BR>
>><BR>
>> Utkarsh<BR>
>><BR>
>> On Mon, Apr 16, 2012 at 8:10 PM, Adam Dershowitz<BR>
>> <adershowitz@exponent.com> wrote:<BR>
>>> I just built paraview on an opensuse linux box. When I use the GUI, and a<BR>
>>> single connection it seems to work fine. But, if I try to use multiple<BR>
>>> CPUs, or run with mpi, it fails.<BR>
>>> I do have OpenMPI installed.<BR>
>>> When I first started getting the error, I googled around some and found that<BR>
>>> maybe "make install" would help (I had been running it just in the build<BR>
>>> directory). But I am getting the same error after installing. I also added<BR>
>>> my openmpi libraries to LD_LIBRARY_PATH (when I first tried to run it I had<BR>
>>> other errors about a shared library).<BR>
>>><BR>
>>> I did build with PARAVIEW_USE_MPI set to on. It looks as though one<BR>
>>> pvserver will run, but any additional ones finds a port in use. Clearly<BR>
>>> something is not right about how MPI is being handled, but I am not sure how<BR>
>>> to fix it.<BR>
>>><BR>
>>><BR>
>>> If I try mpirun, here is error I get:<BR>
>>><BR>
>>><BR>
>>> mpiexec -np 3 pvserver<BR>
>>> Waiting for client...<BR>
>>> Connection URL: cs://cfd:11111<BR>
>>> Accepting connection(s): cfd:11111<BR>
>>> Waiting for client...<BR>
>>> Connection URL: cs://cfd:11111<BR>
>>> ERROR: In<BR>
>>> /home/dersh/projects/ParaView-3.14.1-Source/VTK/Common/vtkSocket.cxx, line<BR>
>>> 206<BR>
>>> vtkServerSocket (0xebd970): Socket error in call to bind. Address already in<BR>
>>> use.<BR>
>>><BR>
>>> ERROR: In<BR>
>>> /home/dersh/projects/ParaView-3.14.1-Source/ParaViewCore/ClientServerCore/vtkTCPNetworkAccessManager.cxx,<BR>
>>> line 343<BR>
>>> vtkTCPNetworkAccessManager (0x661800): Failed to set up server socket.<BR>
>>><BR>
>>> Exiting...<BR>
>>> Waiting for client...<BR>
>>> Connection URL: cs://cfd:11111<BR>
>>> ERROR: In<BR>
>>> /home/dersh/projects/ParaView-3.14.1-Source/VTK/Common/vtkSocket.cxx, line<BR>
>>> 206<BR>
>>> vtkServerSocket (0xebd970): Socket error in call to bind. Address already in<BR>
>>> use.<BR>
>>><BR>
>>> ERROR: In<BR>
>>> /home/dersh/projects/ParaView-3.14.1-Source/ParaViewCore/ClientServerCore/vtkTCPNetworkAccessManager.cxx,<BR>
>>> line 343<BR>
>>> vtkTCPNetworkAccessManager (0x661800): Failed to set up server socket.<BR>
>>><BR>
>>> Exiting...<BR>
>>> -----------------------------------------------------------------------------<BR>
>>> It seems that [at least] one of the processes that was started with<BR>
>>> mpirun did not invoke MPI_INIT before quitting (it is possible that<BR>
>>> more than one process did not invoke MPI_INIT -- mpirun was only<BR>
>>> notified of the first one, which was on node n0).<BR>
>>><BR>
>>> mpirun can *only* be used with MPI programs (i.e., programs that<BR>
>>> invoke MPI_INIT and MPI_FINALIZE). You can use the "lamexec" program<BR>
>>> to run non-MPI programs over the lambooted nodes.<BR>
>>> -----------------------------------------------------------------------------<BR>
>>> mpirun failed with exit status 252<BR>
>>><BR>
>>> And suggestions would be greatly appreciated.<BR>
>>><BR>
>>> thanks,<BR>
>>><BR>
>>> --Adam<BR>
>>><BR>
>>><BR>
>>> _______________________________________________<BR>
>>> Powered by www.kitware.com<BR>
>>><BR>
>>> Visit other Kitware open-source projects at<BR>
>>> <A HREF="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR>
>>><BR>
>>> Please keep messages on-topic and check the ParaView Wiki at:<BR>
>>> <A HREF="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</A><BR>
>>><BR>
>>> Follow this link to subscribe/unsubscribe:<BR>
>>> <A HREF="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</A><BR>
>>><BR>
><BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>