Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
cannot run a distributed MPI program on 2 instances — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

cannot run a distributed MPI program on 2 instances

Accepted answer
11
Views
7
Comments
edited Mar 30, 2021 12:19PM in Oracle Cloud Infrastructure - General 7 comments

Content

I want to run an MPI program on 2 computing nodes, can I create 2 instances and realize it?

I created computing instances "node1" and "node2", the image is Canonical Ubuntu 20.04 Minimal, the shape is VM.Standard2.8. "node1" and "node2" have been configured (e.g., OpenMPI installation, passwordless login between them, a host file "hosts2" containing 2 instances, executable files "test" under the same path of the 2 instances). The MPI program (which is very simple) can be successfully executed on a single instance via $(which mpirun) -n 2 $EXEC_PATH/test

Then I ran $(which mpirun) -n 2 -hostfile $HOSTFILE_PATH/hosts2 $EXEC_PATH/test

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!