着重查阅红色字体部分。

<aside> 🚧 All options:

The following table lists the values for the <algo> parameter: Value Description


0 No affinity (overrides any setting for MPIEXEC_AFFINITY). 1 or spr Spread: Distribute the processes as far as possible. (Default) 2 or seq Sequential: Distribute the processes sequentially. 3 or bal Balanced: Distribute the processes over the available NUMA nodes.

The following table lists the values for the <target> and <stride> parameters: Value Description


l or L Assign each process to a logical core. (Default) p or P Assign each process to a physical core. n or N Assign each process to a NUMA node.

Examples:

Run four pi.exe processes on the local host with four cores: mpiexec pi.exe mpiexec -n * pi

Run one master process and three worker processes on the local host with four cores: mpiexec -n 1 master : worker

Run one master process and 31 worker processes on the hosts listed in the hosts.txt file (which lists four hosts with 8 cores each): mpiexec -gmachinefile hosts.txt -n 1 master : worker

</aside>