Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6558071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:09:15+00:00 2026-05-25T13:09:15+00:00

MPI works fine: $ mpirun -np 2 -H compute-0-0,compute-0-1 echo 1 1 1 However

  • 0

MPI works fine:

$ mpirun -np 2 -H compute-0-0,compute-0-1 echo 1
1
1

However it does not work when launched via screen:

$ rm -f screenlog.*
$ screen -L mpirun -np 2 -H compute-0-0,compute-0-1 echo 1
[screen is terminating]
$ cat screenlog.0 
mpirun: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

This does not help:

$ rm -f screenlog.*
$ screen -L `which mpirun` -xLD_LIBRARY_PATH -np 2 -H compute-0-0,compute-0-1 echo 1
[screen is terminating]
$ cat screenlog.0 
/share/apps/intel/openmpi/bin/mpirun: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:09:16+00:00Added an answer on May 25, 2026 at 1:09 pm

    (Is that a Rocks cluster?)

    Apparently you’re not getting the right $LD_LIBRARY_PATH for some reason.

    This isn’t a very clean solution, but it should work:

    $ screen -L env LD_LIBRARY_PATH=$LD_LIBRARY_PATH mpirun -np 2 \
      -H compute-0-0,compute-0-1 echo 1
    

    I assume that’s what you were trying to do with the -xLD_LIBRARY_PATH option, but I don’t see that in the documentation I was able to find.

    That’s what you were trying to do with the -xLD_LIBRARY_PATH option, but that’s only going to pick up the value of $LD_LIBRARY_PATH from within the process invoked by screen (and pass it on to the echo 1 command). By that time it’s too late. Also, the man page suggests that there should be a space: -x LD_LIBRARY_PATH; I don’t know whether it’s required.

    Is there some script you’re sourcing to get the environment (including $LD_LIBRARY_PATH) for MPI? Is it sourced automatically in your login shell startup, or do you do it manually? You might want to write a small wrapper script that sources the setup script and then invokes a specified command. Something like (not tested):

    #!/bin/sh
    . /share/apps/intel/openmpi/etc/setup.sh # probably not the right name
    exec "$@"
    

    Save it as $HOME/bin/mpienv.sh, then you can use:

    $ screen -L mpienv.sh mpirun -np 2 -H compute-0-0,compute-0-1 echo 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In MPI, I am doing a reduce operation(minimum) on a value. This works fine,
I'm starting work on some simulations using MPI and want to do the programming
I've written some MPI code which works flawlessly on large clusters. Each node in
Can someone suggest a good way to understand how MPI works?
I am doing a simple card rotation which works fine, but when I add
I was wondering why this program actually works in MPI (openMPI 1.5/1.6. ) #include
I am using a code to a text field ,it works fine (with cocos2d
The MPI standard (page 295) says: Advice to users. Whether the errorcode is returned
In MPI, is it possible to immediately throw out received data without allocating a
I coded a mpi matrix multification program, which use scanf(%d, &size) , designate matrix

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.