Results 1 to 5 of 5

Thread: Whats wrong with the openmpi packages?

  1. #1
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    503

    Default Whats wrong with the openmpi packages?

    Ok i do not know if this is tumbleweed related but i post it with the prefix anyway.
    My problem is about openmpi and it is ongoing since the beginning of the year, i already made two posts about it:
    https://forums.opensuse.org/showthre...RRAY-reference
    and
    https://forums.opensuse.org/showthre...ere-a-week-ago

    Basically after anything changes in the openmpi packages or gcc (i do not know to be honest), the $PATH is missing the correct binary path for the openmpi compilers!
    Normaly this should be handled by whatever the mpi-selector tool/command does, but it does not.
    The bug is, that the current openmpi binary path is not registered.
    If i call
    Code:
    mpi-selector --list
    i get nothing, if i call:
    Code:
    mpi-selector --query
    i get my last manual selection back:
    Code:
    default:openmpi-1.10.3
    level:user
    and when i call
    Code:
    mpi-selector-menu
    to select a registered openmpi version, i get this error
    Code:
    Can't use an undefined value as an ARRAY reference at /usr/bin/mpi-selector-menu line 189.
    To solve this problem i have to manually call this, to register the current installed version of openmpi:
    Code:
    sudo mpi-selector --register openmpi-1.10.3 --source-dir /usr/lib64/mpi/gcc/openmpi/bin
    Then mpi-selector and mpi-selector-menu work again, but to have this taking any effect, i have to restart the system and that is not what i want.

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,806
    Blog Entries
    1

    Default Re: Whats wrong with the openmpi packages?

    Well,
    For that kind of problem...

    1. If you <really> believe it's a problem, then you should create a bug at http://bugzilla.opensuse.org
    Simply creating Forum threads is not enough to ensure any kind of action.

    2. If your path is destroyed with updates and upgrades, then you're not setting your path correctly. There are many ways to add a path which wouldn't survive updates and upgrades, but there are known ways to make permanent changes to your system. My preference is to create a file /etc/profile.local which contains any environmental settings I want, like exporting a path. You can also create a script and place it in the directory /etc/profile/. These two methods create settings that are not User specific, and will apply to any User who logs on to your system.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,806
    Blog Entries
    1

    Default Re: Whats wrong with the openmpi packages?

    Expounding a bit, and perhaps to make the principles of what I described as easy and clear as possible...

    Any time you create a new file that doesn't exist, and in this case for the purpose of extending or replacing functionality in another file (in this case creating the file /etc/profile.local), your new creation is part of the standard distribution so has a very high likelihood of surviving any standardized modifications to your system.

    If you make any modifications to /etc/profile directly, that file <will> be replaced at some time (as its internal comments warn).
    If you make modifications to bashrc (which is one of the main methods described in various guides), you're relying that files won't be replaced or permissions changed, both which are not guaranteed.

    You should be able to apply the same principle to other scenaros like creating your own systemd Unit files, uninstalling applications, more.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #4
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    503

    Default Re: Whats wrong with the openmpi packages?

    mpi-selector is a tool made for managing different versions of mpi-packages/versions, normaly this tool handles changing the path, but the problem is, that after updates, the tool is not even usable!
    Normaly the current installed openmpi version gets registered during the installation and should stay there, any updates that change anything should reregister the current openmpi version.
    I also read a post from one of the packagers where he/she states that this is a packaging bug, but i cannot find it anymore, and it this was half a year ago.

    To make this clear, when using mpi-selector using profile to change the path is contra productive

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,806
    Blog Entries
    1

    Default Re: Whats wrong with the openmpi packages?

    After reading the mpi-selector MAN page and your first post,
    Looks to me that the old configuration is not imported when mpi-selector is updated, it's configuration is likely over-written.

    Recommend you create a bug at https://bugzilla.opensuse.org or better at https://www.open-mpi.org/community/help/bugs.php. This doesn't seem to be an openSUSE bug, it's upstream because I see posts in other distro forums about the same thing.

    In the meantime, I'd guess that you should manually make copies of the mpi-selector files, then if you have a problem copy those files back to their original location(script this to make life easier). According to the MAN page, those are
    Files
    $HOME/.mpi-selector Location of per-user default selection
    /etc/sysconfig/mpi-selector Location of site-wide default selection.
    /var/lib/mpi-selector/data/data Directory containing registered MPI shell startup files.
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •