Re: [OMPI users] Shared Libraries

2016-06-24 Thread Gilles Gouaillardet
Also, I recommend you do not name your library libmpi.so, since this name is already used by Open MPI Cheers, Gilles On Saturday, June 25, 2016, Jeff Squyres (jsquyres) wrote: > On Jun 24, 2016, at 4:39 PM, Richard C. Wagner > wrote: > > > >

Re: [OMPI users] Shared Libraries

2016-06-24 Thread Jeff Squyres (jsquyres)
On Jun 24, 2016, at 4:39 PM, Richard C. Wagner wrote: > > Then I try to compile the library file in 32-bit mode. The first command is: > > mpicc -fPIC -m32 -c libtest.c > > Then the second is: > > mpicc -shared -m32 -o libmpi.so libtest.o > > As you can see below, compiling

Re: [OMPI users] Shared Libraries

2016-06-24 Thread Richard C. Wagner
Ralph and Jeff: Thanks for your replies to my questions about compiling a 32-bit MPI library for Forth. Ralph wrote: IIRC, you would need to write a wrapper to let Forth access C-based functions, yes? You could configure and build OMPI as a 32-bit library, and libmpi.so is C, so that isn?t

Re: [OMPI users] tcp_peer_send_blocking: send() to socket 9 failed: Broken pipe (32) on openvz containers

2016-06-24 Thread Jeff Squyres (jsquyres)
Ok, great. I've opened up https://github.com/open-mpi/ompi/pull/1814 to track the issue. This hack around certainly isn't going to ship in an Open MPI production tarball; we should probably do something more formal / correct. > On Jun 24, 2016, at 10:31 AM, kna...@gmail.com wrote: > > Jeff,

Re: [OMPI users] tcp_peer_send_blocking: send() to socket 9 failed: Broken pipe (32) on openvz containers

2016-06-24 Thread knawnd
Jeff, It works now! Thank you so much! [user@ct110 hello]$ /opt/openmpi/1.10.3-1/bin/mpirun --mca btl self,tcp --mca btl_tcp_if_include venet0:0 --mca oob_tcp_if_include venet0:0 -npernode 1 -np 2 --hostfile mpi_hosts.txt hostname ct110 ct111 [user@ct110 hello]$

Re: [OMPI users] tcp_peer_send_blocking: send() to socket 9 failed: Broken pipe (32) on openvz containers

2016-06-24 Thread Jeff Squyres (jsquyres)
On Jun 24, 2016, at 7:26 AM, kna...@gmail.com wrote: > >> mpirun --mca btl_tcp_if_include venet0:0 --mca oob_tcp_if_include >> venet0:0 ... > > See if that works. > Jeff, thanks a lot for such prompt reply, detailed explanation and > suggestion! But unfortunately the error is still the

Re: [OMPI users] tcp_peer_send_blocking: send() to socket 9 failed: Broken pipe (32) on openvz containers

2016-06-24 Thread knawnd
Jeff Squyres (jsquyres) wrote on 24/06/16 13:43: Nikolay -- Thanks for all the detail! That helps a tremendous amount. Open MPI actually uses IP networks in *two* ways: 1. for command and control 2. for MPI communications Your use of btl_tcp_if_include regulates #2, but not #1 -- you need

[OMPI users] tcp_peer_send_blocking: send() to socket 9 failed: Broken pipe (32) on openvz containers

2016-06-24 Thread knawnd
Hi all! I am trying to build a cluster for MPI jobs using OpenVZ containers (https://openvz.org/Main_Page). I've been successfully using openvz+openmpi during many years but can't make it work with OpenMPI 1.10.x. So I have a server with openvz support enabled. The output of it's ifconfig: