• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

Basic Question about MPI (Message Passing Interface)

How exactly does MPI distribute binary applications among multiple (possibly heterogenous) computer nodes?  Does it actually copy the binary to each node and run it when you invoke mpirun?  Or is the user required to manually copy/compile the application on each node beforehand?
1 Solution
the best method is to use a shared directory among all servers.
for exmaple your home dir is on an nfs server and all other clients are mapped
this means that on every node the path /home/username/... is the same directory
so for example if you run
mpirun -np 8 ./exec
will apply to all servers.
to be safe im using
mpirun -np 9 `pwd`/exec
this way the full path is passed to all nodes.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now