Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Program prefix for OpenMPI binaries?
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2012-09-10 08:33:30


Sorry, there are definite reasons we don't support --program-prefix: it has caused issues in the past. Here's where we added the warning message in configure:

    http://www.open-mpi.org/community/lists/devel/2009/09/6750.php

The short version is that --program-prefix doesn't do what you want, anyway: even if you want to have multiple different MPI's installed in a single --prefix, prefixing the executables isn't enough. I.e., even if you have ompi-mpirun, ompi-mpicc, etc., what about mpi.h and mpif.h? Your MPI installations, by definition, *must* name their versions of those files with the same names.

Most people install MPI implementations into different directories and either use environment modules to select which one to use, or use the alternatives system (or something like it).

That's what I remember off the top of my head, but I think there are subtler issues, too -- I seem to recall having deep, long, complicated discussions with Brian (my main partner in crime with OMPI's configure/build system) about program-prefix and friends. I can try to dig back a bit further in my memory, if needed...

On Sep 9, 2012, at 1:29 PM, Dmitry N. Mikushin wrote:

> Great, thank you!
>
> - D.
>
> 2012/9/9 Ralph Castain <rhc_at_[hidden]>:
>> I see - I was trying to understand your question as I don't recall ever encountering such a request before - to my knowledge, we have never supported that option as it was never requested.
>>
>> I don't know how hard it would be to implement, but it looks like something we could do for future releases, perhaps starting in the 1.7 series. I'll have to look into it and discuss with a few people here and then get back to you on it.
>>
>>
>> On Sep 9, 2012, at 8:02 AM, Dmitry N. Mikushin <maemarcus_at_[hidden]> wrote:
>>
>>> Dear Ralph,
>>>
>>> I'm working on trunk, or close to it. When configuring with
>>> --program-prefix=someprefix I get:
>>>
>>> configure: WARNING: *** The Open MPI configure script does not support
>>> --program-prefix, --program-suffix or --program-transform-name. Users
>>> are recommended to instead use --prefix with a unique directory and
>>> make symbolic links as desired for renaming.
>>> configure: error: *** Cannot continue
>>>
>>> This is what I meant by "disabled".
>>>
>>> And how --enable-orterun-prefix-by-default is involved? We just need
>>> an installation kept in separate folder to have uniquely named
>>> user-level wrappers, e.g. mpicc -> prefix-mpicc, etc., which correctly
>>> link to their local orte-wrapper.
>>>
>>> Thanks,
>>> - D.
>>>
>>> 2012/9/9 Ralph Castain <rhc_at_[hidden]>:
>>>>
>>>> On Sep 8, 2012, at 1:14 PM, "Dmitry N. Mikushin" <maemarcus_at_[hidden]> wrote:
>>>>
>>>>> Dear all,
>>>>>
>>>>> Setting program prefix is disabled for OpenMPI compilation, could you
>>>>> please explain why?
>>>>
>>>> I'm not sure I understand - setting the prefix is most definitely enabled and working. What version of OMPI are you concerned about?
>>>>
>>>>>
>>>>> Consider we want to make a package containing OpenMPI packed together
>>>>> with our open-source compiler, that is installable on arbitrary Linux
>>>>> system. In this case, it would be very handy to add some program
>>>>> prefix to guarantee no confusion with other possibly installed MPI
>>>>> implementations visible through $PATH.
>>>>
>>>>
>>>> Are you saying that --enable-orterun-prefix-by-default is inadequate? This is the reason it exists - to avoid path confusion. If something further is required, please let us know and we'll see what can be done.
>>>>
>>>>
>>>>>
>>>>> Thanks,
>>>>> - D.
>>>>> _______________________________________________
>>>>> devel mailing list
>>>>> devel_at_[hidden]
>>>>> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>>>>
>>>>
>>>> _______________________________________________
>>>> devel mailing list
>>>> devel_at_[hidden]
>>>> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>>> _______________________________________________
>>> devel mailing list
>>> devel_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>>
>>
>> _______________________________________________
>> devel mailing list
>> devel_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/devel
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/