Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Absolute/relative paths of orted
From: Ralph Castain (rhc_at_[hidden])
Date: 2012-04-22 14:50:55

How did you configure OMPI on your servers? By default, ORTE should be using strictly a relative path name - the only times it doesn't are when you configure --enable-orterun-prefix-by-default, or have an environ param that indicates we should apply the prefix.

I'm also a little surprised to see the Mac's path being picked up by the Linux mpirun command. Any chance you have an NSF mounted directory across the two, and that the "mpirun" being picked up by your linuxserver cmd is actuality the Mac version?

You might try doing a "which mpirun" to ensure you are getting the one you thought on linuxserver.

On Apr 22, 2012, at 12:11 PM, McGehee, Robert wrote:

> Hello,
> I've installed openmpi 1.5.5 on both my Mac and Linux servers using the ssh/rsh process manager. I can successfully run a program across both servers from my Mac, but not from my Linux server as the Linux server seems to be trying to run orted using an absolute path rather than a relative one. Quick question is: how can I get my Linux server to use a relative path, rather than absolute path, for orted?
> First, let's verify that orted can be found in each computer's path in a remote login:
> [macserver]~> ssh linuxserver which orted
> /opt/local/lib/openmpi/bin/orted
> [linuxserver]~> ssh macserver which orted
> /data/gentoo/usr/bin/orted
> Initiating mpirun from the Mac works fine:
> [macserver]~> mpirun -n 2 -H macserver,linuxserver hostname
> macserver
> linuxserver
> But not from Linux:
> [linuxserver]~> mpirun -n 2 -H macserver,linuxserver hostname
> bash: /data/gentoo/usr/bin/orted: No such file or directory
> <snip>
> Also, the launch-agent argument doesn't help any as the launch-agent is still expected in the /data/... path:
> [linuxserver]~> mpirun -launch-agent XYZ -n 2 -H macserver,linuxserver hostname
> bash: /data/gentoo/usr/bin/XYZ: No such file or directory
> <snip>
> If I create a /data/gentoo/usr/bin directory on the Mac with an orted symlink to the correct location, mpi will run correctly when started from Linux. However, (aside from being inelegant) I intend to use openmpi on a heterogeneous cluster in which orted may be installed in multiple non-standard locations. I will neither have root access to all computers nor do I want to manage a network of symlinks on every computer in the cluster.
> So, my simple question is, how can I get my Linux server to look for orted in the Mac's PATH, rather than it specifying an absolute path that isn't there?
> Thanks, Robert
> _______________________________________________
> users mailing list
> users_at_[hidden]