mpiexec -n 2 MPI_1.exe
本机开2个进程
mpiexec -n 2 -host 192.168.200.101 MPI_1.exe
指定主机开2个进程
mpiexec -hosts 2 192.168.200.103 5 192.168.200.102 5 MPI_1.exe
启用2台主机 ,主机103开5个进程,主机102开5个进程
mpiexec -n 10 -hosts 2 192.168.200.103 192.168.200.102 MPI_1.exe
10个进程,平均分配给2台主机 ,主机103、102
mpiexec -n 10 -machinesfile hosts.txt MPI_1.exe
10个进程平均分配给hosts.txt文件中全部主机
mpiexec -n 1 -host 192.168.200.101 MPI_1.exe master : -n 20 -machinefile hosts.txt MPI_1.exe
在101主机上启动1个主进程,将20个进程平均分配给hosts.txt文件中全部主机.