Re: [OMPI users] [EXTERNAL] Using Open MPI with multiple versions of GCC and G++

2016-10-06 Thread Simon Hammond
Can you try setting the environment variable OMPI_CXX=

Then run:

mpicxx -v

and see what version it says its running. You may have to be careful mixing the 
versions too far apart.


S.

—
Si Hammond
Scalable Computer Architectures
Center for Computing Research
Sandia National Laboratories, NM, USA

> On Oct 6, 2016, at 7:56 AM, Aditya  wrote:
> 
> Hello,
> 
> I'm a senior year Computer Science student working on Parallel Clustering 
> Algorithms at BITS Pilani, India. I have a few questions about using mpicc 
> and mpicxx with multiple versions of gcc / g++. 
> 
> I am using Ubuntu 12.04 equipped with gcc 4.6.4. The currently installed 
> mpicc is bound to gcc4.6.4. I want mpicc to be bound with gcc-5 that I have 
> installed in my pc. 
> 
> Is there a way to do the binding to gcc as a compiler flag or something of 
> that sort. 
> 
> PS: Please do reply if you have a solution. I am unable to run a hybrid code 
> on my pc because of this issue. 
> 
> 
> Regards,
> Aditya.
> 
> 
> 
> 
> ___
> users mailing list
> users@lists.open-mpi.org
> https://rfd.newmexicoconsortium.org/mailman/listinfo/users

___
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users

Re: [OMPI users] PROBLEM WITH MPIRUN

2010-11-29 Thread Simon Hammond
Hi,

This isn't usually an error - you get this by using conventional
Fortran exit methods. The Fortran stop means the program hit the exit
statements in the code. I have only had this with PGI.



--
Si Hammond

Research Fellow & Knowledge Transfer Associate
Performance Computing & Visualisation
Department of Computer Science
University of Warwick, UK, CV4 7AL
--



On 29 November 2010 04:56, Tushar Andriyas  wrote:
> Hi there,
> I have posted before about the problems that I am facing with mpirun. I have
> gotten some help but right now i am stuck with an error message.FORTRAN
> STOP when I invoke mpirun..can someone help PLEASE!!
> I m using openmpi-1.2.7-pgi and pgi-7.2 compiler.
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>


[OMPI users] OpenMPI and Port Range

2007-08-30 Thread Simon Hammond
Hi all,

Is there anyway to specify the ports that OpenMPI can use?

I'm using a TCP/IP network in a closed environment, only certain ports
can be used.


Thanks,

Si Hammond
University of Warwick


Re: [OMPI users] OpenMPI and Port Range

2007-08-31 Thread Simon Hammond
On 31/08/2007, Lev Givon  wrote:
> Received from George Bosilca on Thu, Aug 30, 2007 at 07:42:52PM EDT:
> > I have a patch for this, but I never felt a real need for it, so I
> > never push it in the trunk. I'm not completely convinced that we need
> > it, except in some really strange situations (read grid). Why do you
> > need a port range ? For avoiding firewalls ?

We are planning on using OpenMPI as the basis for running MPI jobs
across a series of workstations overnight. The workstations are locked
down so that only a small number of ports are available for use. If we
try to use anything else its disaster.

Unfortunately this is really an organizational policy above anything
else and its very difficult to get it to change.


Si Hammond
University of Warwick

> >
> >Thanks,
> >  george.
>
> I imagine that allowing for more security-conscious firewall
> configurations would be the main motivation (although I suspect that
> there are more folks who run MPI on tightly coupled clusters linked by
> a secure/private network than on grids of machines spread across an
> insecure network).
>
> L.G.
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>


Re: [OMPI users] OpenMPI and Port Range

2007-08-31 Thread Simon Hammond
On 31/08/2007, Gleb Natapov  wrote:
> On Fri, Aug 31, 2007 at 08:04:00AM +0100, Simon Hammond wrote:
> > On 31/08/2007, Lev Givon  wrote:
> > > Received from George Bosilca on Thu, Aug 30, 2007 at 07:42:52PM EDT:
> > > > I have a patch for this, but I never felt a real need for it, so I
> > > > never push it in the trunk. I'm not completely convinced that we need
> > > > it, except in some really strange situations (read grid). Why do you
> > > > need a port range ? For avoiding firewalls ?
> >
> > We are planning on using OpenMPI as the basis for running MPI jobs
> > across a series of workstations overnight. The workstations are locked
> > down so that only a small number of ports are available for use. If we
> > try to use anything else its disaster.
> >
> > Unfortunately this is really an organizational policy above anything
> > else and its very difficult to get it to change.
> >
> >
> As workaround you can write application that will bind to all ports that
> are not allowed to be used by MPI before running MPI job.

Sounds very drastic, thanks for the advice. I'll give it a go. Do you
think it might be easy to add this to the source code at sometime
though?

Thanks for your advice guys,

Si Hammond
University of Warwick

>
> --
> Gleb.
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>


Re: [OMPI users] OpenMPI and Port Range

2007-08-31 Thread Simon Hammond
On 31/08/2007, Gleb Natapov  wrote:
> On Fri, Aug 31, 2007 at 10:49:10AM +0200, Sven Stork wrote:
> > On Friday 31 August 2007 09:07, Gleb Natapov wrote:
> > > On Fri, Aug 31, 2007 at 08:04:00AM +0100, Simon Hammond wrote:
> > > > On 31/08/2007, Lev Givon  wrote:
> > > > > Received from George Bosilca on Thu, Aug 30, 2007 at 07:42:52PM EDT:
> > > > > > I have a patch for this, but I never felt a real need for it, so I
> > > > > > never push it in the trunk. I'm not completely convinced that we 
> > > > > > need
> > > > > > it, except in some really strange situations (read grid). Why do you
> > > > > > need a port range ? For avoiding firewalls ?
> > > >
> > > > We are planning on using OpenMPI as the basis for running MPI jobs
> > > > across a series of workstations overnight. The workstations are locked
> > > > down so that only a small number of ports are available for use. If we
> > > > try to use anything else its disaster.
> > > >
> > > > Unfortunately this is really an organizational policy above anything
> > > > else and its very difficult to get it to change.
> > > >
> > > >
> > > As workaround you can write application that will bind to all ports that
> > > are not allowed to be used by MPI before running MPI job.
> >
> > Another option could be (if that match your policy) to limit the dynamic 
> > port
> > range that is used by your OS. By this all application (unless they ask for
> > an specific port) will get ports in this limited port range. If so the
> > following link might be interesting for you:
> >
> > http://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html
> >
> I was sure it is possible to set a port range on Linux, but didn't know how.
> This is much better workaround.

Thanks guys, I'll give this a try.


Si Hammond

>
> --
> Gleb.
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>


Re: [OMPI users] Problems with program-execution with OpenMPI: Orted: command not found

2008-04-22 Thread Simon Hammond
Hi,

Have you checked the .bashrc or /etc/bash.bashrc file on the machine. We
have seen this problem before on both Debian and Ubuntu systems. If you find
the following line:

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

It means that the remainder of the file is not processed (which may include
setting up your PATH/LD_LIBRARY_PATH) if you are connecting via a
non-interactive login. Since this command only works for non-interactive
logins the user falsely gets the idea that the PATH/LD_LIBRARY_PATH when
they log in over SSH.

We commented this line out and it worked for us, so just an idea.



Si Hammond

Performance Modelling and Analysis Team,
Department of Computer Science,
University of Warwick, UK


On 22/04/2008, Jeff Squyres  wrote:
>
> Make sure you're using the "right" mpirun.  If you have both MPICH and
> Open MPI installed, you need to install them into the different
> directories.
>
> As for not finding the "orted" on the remote nodes, it simply means
> that your PATH / LD_LIBRARY_PATH is not set properly on the remote
> nodes.  See:
>
> http://www.open-mpi.org/faq/?category=running#run-prereqs
> http://www.open-mpi.org/faq/?category=running#adding-ompi-to-path
> http://www.open-mpi.org/faq/?category=running#mpirun-prefix
>
> A few notes about your command line syntax:
>
> - "-np X" specifies how many processes to launch (where X is an
> integer).  If you don't specify this, OMPI defaults to as many slots
> are defined in your hostfile.
>
>  mpirun -np 4 
>
> - "--host LIST", where LIST is a comma-delimited list of hostnames to
> launch on (*instead* of specifying a hostfile).
>
>  mpirun --host host1,host2,host3,host4 
>
> - "--hostfile FILENAME", where FILENAME is a list of a hostfile as
> described in the FAQ.
>
>  mpirun --hostfile my_hostfile.txt ...
>
> You can't mix and match these params, like your example:
>
>
>  mpirun --host -np 2 node0,node1 /bin/hostname
>
>
>
>
> On Apr 22, 2008, at 4:40 AM, gildo@gmx.de wrote:
>
> > Hi Jodi,
> >
> > thanks for the quick answer!
> >
> >> Have you tried the command ompi_info?
> >> What is its output?
> >
> > No, I haven't. I can try this evening, when I'm back home from work.
> >
> >>
> >> Furthermore, the command you gave
> >>>  mpirun -np 2 --hostfile /home/stephan/mpd.hosts
> >> is incomplete. There is no executable.
> >
> > Sorry, it should correctly be
> >
> > mpirun -np 2 --hostfile /home/stephan/mpd.hosts /bin/hostname
> >
> > The output shows, that the program is only executed on the local
> > machine. This is the same on each of the machines.
> >
> >>
> >> Try to make sure wether your host file has the correct
> >> format. If i remember correctly  Open-MPI does not use
> >> the same format for hostfiles as MPICH.
> >
> > Yes, thats true according to the documentation. There is a
> > possibility to define the number of slots and the max-number of
> > slots in OpenMPI, which I haven't seen in MPICH so far (at least not
> > within the hostfile).
> > But when I use a hostfile without a specification regarding the
> > slots, e.g.
> >
> > shell$ cat my-hosts
> > node0
> > node1
> >
> > (which is the same as in MPICH), it should interpret the default
> > values, i.e. slots=1 and max_slots=unlimited). That should work for
> > that simple test.
> >
> >> See the FAQ for more info
> >> http://www.open-mpi.org/faq/?category=running#mpirun-scheduling
> >
> > I also tried the way to specify the hosts in the command, e.g.
> >
> > mpirun --host -np 2 node0,node1 /bin/hostname
> >
> > but the result is the same. The program runs only on one host.
> >>
> >> If you don't use a hostfile, mpirun will start
> >> all processes on the local machine.
> >
> > Yes, that's what it obviously does. It doesn't recognise the cluster
> > partner in each direction...
> >
> > Kind Regards
> >
> > Stephan
> >
> >> On Tue, Apr 22, 2008 at 8:56 AM,   wrote:
> >>> Dear all,
> >>>
> >>> I wanted to compare MPICH and OpenMPI. MPICH works fine. So I
> >>> installed
> >> OpenMPI the same way (configure, make, make install). The commands
> >> are
> >> found in the OpenMPI installation directory.
> >>>
> >>> When I tried to run programs I was a little bit confused, that there
> >> seems not to be a default hosts-file like in MPICH. I included it
> >> in the
> >> command with "--hostfile".
> >>>
> >>> When I now want to run my first test with
> >>>
> >>>  mpirun -np 2 --hostfile /home/stephan/mpd.hosts
> >>>
> >>> I get the error-message:
> >>>
> >>>  orted: command not found
> >>>
> >>> The "orted"-executable resides as well as the "mpirun"- and
> >> "mpiexec"-executables in the directory /home/stephan/openmpi-
> >> install. "orted" is also
> >> found by "which orted".
> >>>
> >>> What might be the problem? How does "orted" work? I'm not conscious
> >> about anything equivalent in MPICH...
> >>>
> >>> Thanks in advance for your help!
> >>>
> >>> Kind Regards
> >>>
> >>> Stephan
> >
> > --
> > Pt! Schon vom neuen GMX MultiM

Re: [OMPI users] where is mpif.h ?

2008-09-23 Thread Simon Hammond
Yes, it should be there.

Have you configured OpenMPI with Fortran during the build?



Si Hammond
High Performance Systems Group
University of Warwick
Coventry, UK

2008/9/23 Shafagh Jafer :
> Does openmpi have any "mpif.h" ?? if yes, where? in openmpi_dir/include ??!!
>
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>


Re: [OMPI users] mpirun (signal 15 Termination)

2009-01-14 Thread Simon Hammond
Do you get anything else in the output? We sometimes get this but it
means the execution has proceeded sucessfully.


Si Hammond

High Performance Systems Group
Department of Computer Science
University of Warwick

2009/1/14 Hana Milani :
> Dear all,
>
> I have to run my code in parallel, therefore, I have installed openmpi-1.2.8
> on a core2quad system with suse 11.0 linux and gfortran compiler. I have
> also downloaded blacs and scalapack from:
> http://www.netlib.org/scalapack/scalapack_installer.tgz.
>
> Everything has gone smoothly in installing the code and enabling mpi for it,
> but when I want to run my test I receive the following error:
>
>  mpirun noticed that job rank 0 with PID 2407 on node linux-4pel exited on
> signal 15 (Terminated).
>
> Regards,
> Hana
>
>
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>