MS-MPI in multiple windows machines in a LAN network

Soumya Ranjan Dash 1 Reputation point

I am trying to establish a cluster of multiple windows machine connected in a LAN using MSMPI. For that I made a simple program to establish a communication between two machines using mpi_comm_spawn. I created and set MPI_Info with port details and remote ip address as host. But the print statements are being spawned in the local machine’s command line implying there is no communication with the remote machine(i.e. the host).

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,820 questions
No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 37,526 Reputation points

    Hello @Soumya Ranjan Dash ,

    Thank you for your question.

    I recommend consulting the topic below that has a problem similar to yours that may be useful for you:


    If the answer is helpful, please vote positively and accept as an answer.

  2. Soumya Ranjan Dash 1 Reputation point

    Hi @Limitless Technology ,
    Thanks for the response.

    As in the link you recommended, I am not using HPC for setting up cluster.
    -Rather I installed msmpi on both my machines.
    -Ran smpd -p 8676 on both the machines
    -Used mpi_comm_spawn on a sample program on my local machine, and provided the remote machine ip, and port(8676) as mpi_info.

    And the problem is that the machines don't talk. Rather, the prints I used in my sample program is spawning in my local machine's terminal. The link you recommended doesn't seem to address my problem.

    I have attached my sample cpp code below.


  3. BingHFUT 1 Reputation point

    After reading the doc from:


    I guess the reason is: MSMPI needs "Active Directory Domain Services", so you must install a window server on one of the computers. Otherwise, it will not run for security reason.