question

SoumyaRanjanDash-7397 avatar image
0 Votes"
SoumyaRanjanDash-7397 asked BingHFUT-6903 answered

MS-MPI in multiple windows machines in a LAN network

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @SoumyaRanjanDash-7397,

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SoumyaRanjanDash-7397 avatar image
0 Votes"
SoumyaRanjanDash-7397 answered SoumyaRanjanDash-7397 edited

Hi @LimitlessTechnology-2700 ,
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



capture.png (44.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BingHFUT-6903 avatar image
0 Votes"
BingHFUT-6903 answered

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.



图片.png (45.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.