MS-MPI in multiple windows machines in a LAN network

Soumya Ranjan Dash 1 Reputation point
2021-09-29T09:38:21.203+00:00

Hi,
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.
12,206 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 39,396 Reputation points
    2021-09-30T08:58:37.84+00:00

    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:

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/287b9521-7ff7-4109-84d7-3ed059d211cb/running-mpi-code-on-multiple-machines?forum=parallelcppnative

    -------------------------------------------------------------------------------------------------------------------

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

    0 comments No comments

  2. Soumya Ranjan Dash 1 Reputation point
    2021-09-30T09:42:18.613+00:00

    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.

    136662-capture.png


  3. BingHFUT 1 Reputation point
    2021-10-17T03:38:12.587+00:00

    After reading the doc from: https://github.com/microsoft/Microsoft-MPI/

    140966-%E5%9B%BE%E7%89%87.png

    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.

    0 comments No comments