Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Compiling both 32-bit and 64-bit?
From: Barrett, Brian W (bwbarre_at_[hidden])
Date: 2011-08-24 14:41:03


On 8/24/11 11:29 AM, "Dmitry N. Mikushin" <maemarcus_at_[hidden]> wrote:

>Quick question: is there an easy switch to compile and install both
>32-bit and 64-bit OpenMPI libraries into a single tree? E.g. 64-bit in
>/prefix/lib64 and 32-bit in /prefix/lib.

Quick answer: not easily.

Long answer: There's not an easy way, but there are some facilities to
help. I believe Oracle uses them when building binaries for Solaris.
There is some documentation available on our Trac wiki:

  https://svn.open-mpi.org/trac/ompi/wiki/MultiLib
  https://svn.open-mpi.org/trac/ompi/wiki/compilerwrapper3264

The difficulty is that it's up to the user/admin to make sure the correct
arguments are provided, as well as writing the wrapper script files to do
the sharing.

Brian

-- 
  Brian W. Barrett
  Dept. 1423: Scalable System Software
  Sandia National Laboratories