最好的MPI集群环境搭建教程网站
学习MPI(Message Passing Interface,消息传递接口)做并行计算时,首先面对的是如何使用VMWare创建几个虚拟机来模拟集群环境,从而可以实践。我通过Bing,发现一个很系统的网站有讲解,是几个老外合写的,很系统,我自己按照教程实践,成功运行起来了案例。
1.MPI简介:
https://mpitutorial.com/tutorials/mpi-introduction/
2.在单机上安装mpich2(一个主流的MPI的实现):
https://mpitutorial.com/tutorials/installing-mpich2/
3.在局域网内运行MPI集群:
https://mpitutorial.com/tutorials/running-an-mpi-cluster-within-a-lan/
另附一个网址,很好的学习如何免密ssh登录:
https://blog.csdn.net/SXY16044314/article/details/90605069
4.运行MPI Hello World案例:
https://mpitutorial.com/tutorials/mpi-hello-world/
下图是我自己亲自使用VMWare搭建了3个Linux(我用的Ubuntu 22.04),1个是master,2个是worker:
下图是我的3个虚拟机Linux: