mpivars.sh

mpivars.sh

Bild des Benutzers Sam W.

Hi,

I'm having some trouble running mpirun on my computer. The command mpirun -V returns the following:

/phys/sfw/intel/composer_xe_2013-09/composer_xe_2013_sp1.0.080/mpirt/bin/intel64/mpirun: 96: .: Can't open /phys/sfw/intel/composer_xe_2013-09/composer_xe_2013_sp1.0.080/mpirt/bin/intel64/mpivars.sh

I think a similar problem may have been posted once before but I couldn't quite make sense of the solution, it was suggested that the command was following the wrong path to mpivars.sh but I couldn't see how to change this path. I'd be very grateful for any more help on this!

Thank you in advance,

Sam

6 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Sam W.

Resolved! If anyone is interested, I used /usr/bin/mpirun which seems to have got around the problem.

Bild des Benutzers Gergana Slavova (Intel)

Hey Sam,

Thanks for posting here. I know you said your issue is resolved but I wanted to clarify why this happens and how to avoid it in the future.

If you have the Intel compilers in addition to the Intel MPI Library installed on the same machine, you might see this pop up.  The root cause is that the Intel compilers ship the Intel MPI runtimes, including the mpirun command, to support their Co-Array Fortran implementation.  If you've only sourced the compilervars.sh script to set your environment, then the only mpirun command that will be picked up is the one shipped with the compilers (which is not the full package).

You have to make sure you tell your OS where Intel MPI is located (via sourcing the proper mpivars.sh) in order to set your environment.

For example, I have both the Intel compiler and Intel MPI installed:

[user@host1] locate mpirun

/opt/intel/composer_xe_2013_sp1/mpirt/bin/intel64/mpirun

/opt/intel/impi/4.1.1.036/intel64/bin/mpirun

Then I'll make sure to source the following scripts to set my environment:

[user@host1] . /opt/intel/composer_xe_2013_sp1/bin/compilervars.sh intel64

[user@host1] . /opt/intel/impi/4.1.1.036/bin64/mpivars.sh

Now, the mpirun script will pick up the correct one that's shipped with the full Intel MPI Library package.

I hope this makes sense.  Let me know if I can answer more questions.

Regards,
~Gergana

Gergana Slavova
Technical Consulting Engineer
Intel® Cluster Tools
E-mail: gergana.s.slavova_at_intel.com
Bild des Benutzers Sam W.

Hi Gergana,

That makes sense, thanks very much for your response.

Regards, Sam

Bild des Benutzers Yuzhong Q.

Hi,

I cought the same problem that you met! Could you tell me how to solve it?

Thanks.

qyzbird@live.com

Bild des Benutzers Enrico R.

Thank you Gergana Slavova for your answer.

Coud you be a bit more explicit in order to meet the low knowledge of common users (like me)?

You write: "Then I'll make sure to source the following scripts to set my environment:"

How to source ? How to set up enviroment?

I assume that the answer would be very system specific. I am a Ubuntu user.

 

 

 

Melden Sie sich an, um einen Kommentar zu hinterlassen.