Raspberry Pi-3B Beowulf集群上MPICH和MPI4py的性能比较
Performance Comparison of MPICH and MPI4py on Raspberry Pi-3B Beowulf Cluster
摘要:
摩尔定律正在消失。我们现在不是通过增加晶体管的数量来制造强大的计算机,而是在走向计算机主义。Beowulf集群是指任何Commodity硬件的集群。我们的集群的工作原理与当今的超级计算机完全相似。其动机是创造一个小尺寸,便宜的设备,学生和研究人员可以获得经验。有一个主节点,它与用户交互,所有其他节点都是从节点。负载在所有节点之间平均分配,它们将结果发送给master。Master将这些结果组合起来,并向用户显示最终输出。对于节点之间的通信,我们创建了一个以太网网络。我们正在使用MPI 4py,这是一个基于Python的消息传递接口(MPI)和MPICH的植入,这也是MPI的开源实现,并允许我们在C,C++和Fortran中编码。MPI是为这样的集群编写代码的标准。我们分别用Python和C++语言编写了MPI 4py和MPICH的并行Monte Carlo仿真程序,用于计算π值和素数生成器。我们还在Python中编写了应用相同算法的顺序程序。然后,我们比较了在具有6500核心i7 Intel处理器的计算机上并行和顺序运行它们所需的时间。它被发现,利用并行性,我们能够胜过一个昂贵的计算机成本远远超过我们的集群。
英文摘要:
Moore's Law is running out. Instead of making powerful computer by increasing number of transistor now we are moving toward Parallelism. Beowulf cluster means cluster of any Commodity hardware. Our Cluster works exactly similar to current day's supercomputers. The motivation is to create a small sized, cheap device on which students and researchers can get hands on experience. There is a master node, which interacts with user and all other nodes are slave nodes. Load is equally divided among all nodes and they send their results to master. Master combines those results and show the final output to the user. For communication between nodes we have created a network over Ethernet. We are using MPI4py, which a Python based implantation of Message Passing Interface (MPI) and MPICH which also an open source implementation of MPI and allows us to code in C, C++ and Fortran. MPI is a standard for writing codes for such clusters. We have written parallel programs of Monte Carlo's Simulation for finding value of pi and prime number generator in Python and C++ making use of MPI4py and MPICH respectively. We have also written sequential programs applying same algorithms in Python. Then we compared the time it takes to run them on cluster in parallel and in sequential on a computer having 6500 core i7 Intel processor. It is found that making use of parallelism; we were able to outperform an expensive computer which costs much more than our cluster.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。