MPI(Message Passing Interface) 主流的两个开源软件分别是OpenMPI和MPICH (Singularity同时支持)。
*参考链接:https://sylabs.io/guides/3.3/user-guide/mpi.html
基本想法:要执行SIngularity容器的MPI代码时,使用mpiexec类似命令去调用singularity命令。容器外部的MPI进程会和容器内的MPI进行协作,容器内的MPI代码会实例化任务。
流程如下:
- The
MPI launcher(e.g., mpirun, mpiexec) is called by the user directly from ashelletc. . - The
MPIthen calls the process management daemon (ORTED); theORTEDprocess launches the Singularity container requested by theMPI launchercommand, as such mpirun. Singularitybuilds the container and namespace environment; singularity then launches theMPI applicationwithin the container.- The
MPI applicationloads theMPI libraries. - The
MPI librariesconnect back to theORTEDprocess via the Process Management Interface (PMI).
本文介绍如何在Singularity容器中执行MPI(Message Passing Interface)代码,涉及mpiexec命令的使用、ORTED进程的介入、容器环境的构建与应用实例化。重点在于展示MPI在Singularity容器中的协作流程和关键步骤。
1946

被折叠的 条评论
为什么被折叠?



