Yes, it works for me...  :-\

With initial install dir of /home/jsquyres/bogus (in my $path and $LD_LIBRARY_PATH already):

[11:30] svbu-mpi:~/mpi % mpicc hello.c -o hello
[11:30] svbu-mpi:~/mpi % mpirun -np 2 hello
stdout: Hello, world!  I am 0 of 2 (svbu-mpi.cisco.com)
stdout: Hello, world!  I am 1 of 2 (svbu-mpi.cisco.com)
stderr: Hello, world!  I am 0 of 2 (svbu-mpi.cisco.com)
stderr: Hello, world!  I am 1 of 2 (svbu-mpi.cisco.com)

Now let's move it

[11:30] svbu-mpi:~/mpi % cd
[11:31] svbu-mpi:~ % cd /home/jsquyres/
[11:31] svbu-mpi:/home/jsquyres % mv bogus bogus-bogus
[11:31] svbu-mpi:/home/jsquyres % set path = (/home/jsquyres/bogus- bogus/bin $path) [11:31] svbu-mpi:/home/jsquyres % setenv LD_LIBRARY_PATH /home/ jsquyres/bogus-bogus/lib:$LD_LIBRARY_PATH
[11:31] svbu-mpi:/home/jsquyres % cd

Confirm that it's broken:

[11:31] svbu-mpi:~ % cd mpi
[11:31] svbu-mpi:~/mpi % !mpir
mpirun -np 2 hello
--------------------------------------------------------------------------
Sorry!  You were supposed to get help about:
    opal_init:startup:internal-failure
from the file:
    help-opal-runtime.txt
But I couldn't find any file matching that name.  Sorry!
--------------------------------------------------------------------------
[svbu-mpi.cisco.com:23042] [[INVALID],INVALID] ORTE_ERROR_LOG: Not found in file runtime/orte_init.c at line 77 [svbu-mpi.cisco.com:23042] [[INVALID],INVALID] ORTE_ERROR_LOG: Not found in file orterun.c at line 493

Now try with OPAL_PREFIX:

[11:31] svbu-mpi:~/mpi % setenv OPAL_PREFIX /home/jsquyres/bogus-bogus
[11:31] svbu-mpi:~/mpi % mpirun -np 2 hello
stdout: Hello, world!  I am 0 of 2 (svbu-mpi.cisco.com)
stderr: Hello, world!  I am 0 of 2 (svbu-mpi.cisco.com)
stdout: Hello, world!  I am 1 of 2 (svbu-mpi.cisco.com)
stderr: Hello, world!  I am 1 of 2 (svbu-mpi.cisco.com)
[11:31] svbu-mpi:~/mpi %

I don't know what you'd like from config.log -- I configured it with a simple:

      $ ./configure --prefix=/home/jsquyres/bogus



On Dec 22, 2008, at 12:42 PM, Ethan Mallove wrote:

Can anyone get OPAL_PREFIX to work on Linux? A simple test is to see
if the following works for any mpicc/mpirun:

 $ mv <openmpi-installation> /tmp/foo
 $ set OPAL_PREFIX /tmp/foo
 $ mpicc ...
 $ mpirun ...

If you are able to get the above to run successfully, I'm interested
in your config.log file.

Thanks,
Ethan


On Thu, Dec/18/2008 11:03:25AM, Ethan Mallove wrote:
Hello,

The below FAQ lists instructions on how to use a relocated Open MPI
installation:

 http://www.open-mpi.org/faq/?category=building#installdirs

On Solaris, OPAL_PREFIX and friends (documented in the FAQ) work for
me with both MPI (hello_c) and non-MPI (hostname) programs. On Linux,
I can only get the non-MPI case to work. Here are the environment
variables I am setting:

 $ cat setenv_opal_prefix.csh
 set opal_prefix = "/opt/openmpi-relocated"

 setenv OPAL_PREFIX         $opal_prefix
 setenv OPAL_BINDIR         $opal_prefix/bin
 setenv OPAL_SBINDIR        $opal_prefix/sbin
 setenv OPAL_DATAROOTDIR    $opal_prefix/share
 setenv OPAL_SYSCONFDIR     $opal_prefix/etc
 setenv OPAL_SHAREDSTATEDIR $opal_prefix/com
 setenv OPAL_LOCALSTATEDIR  $opal_prefix/var
 setenv OPAL_LIBDIR         $opal_prefix/lib
 setenv OPAL_INCLUDEDIR     $opal_prefix/include
 setenv OPAL_INFODIR        $opal_prefix/info
 setenv OPAL_MANDIR         $opal_prefix/man

 setenv PATH $opal_prefix/bin:$PATH
 setenv LD_LIBRARY_PATH $opal_prefix/lib:$opal_prefix/lib/64

Here is the error I get:

 $ mpirun -np 2 hello_c
-------------------------------------------------------------------------- It looks like opal_init failed for some reason; your parallel process is
 likely to abort.  There are many reasons that a parallel process can
 fail during opal_init; some of which are due to configuration or
environment problems. This failure appears to be an internal failure;
 here's some additional information (which may only be relevant to an
 Open MPI developer):

   opal_carto_base_select failed
   --> Returned value -13 instead of OPAL_SUCCESS
-------------------------------------------------------------------------- [burl-ct-v20z-0:27737] [[INVALID],INVALID] ORTE_ERROR_LOG: Not found in file runtime/orte_init.c at line 77

Any ideas on what's going on?

Thanks,
Ethan
_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users


--
Jeff Squyres
Cisco Systems

Reply via email to