java 如何做并行计算 mpi_【求助】如何使用openmpi在多节点并行计算? - 第一原理 - 小木虫 - 学术 科研 互动社区...

引用回帖:

SYNOPSIS

Single Process Multiple Data (SPMD) Model:

mpirun [ options ] [ ]

Multiple Instruction Multiple Data (MIMD) Model:

mpirun [ global_options ]

[ local_options1 ] [ ] :

[ local_options2 ] [ ] :

... :

[ local_optionsN ] [ ]

Note  that in both models, invoking mpirun via an absolute path name is

equivalent to specifying the --prefix option with a

lent  to  the  directory where mpirun resides, minus its last subdirec-

tory.  For example:

% /usr/local/bin/mpirun ...

is equivalent to

% mpirun --prefix /usr/local

QUICK SUMMARY

If you are simply looking for how to run an MPI application, you proba-

bly want to use a command line of the following form:

% mpirun [ -np X ] [ --hostfile ]  

This  will  run X copies of in your current run-time environ-

ment (if running under a supported resource manager, Open MPI's  mpirun

will  usually  automatically  use  the  corresponding  resource manager

process starter, as opposed to, for example, rsh or ssh, which  require

the  use  of a hostfile, or will default to running all X copies on the

localhost), scheduling (by default) in a  round-robin  fashion  by  CPU

slot.  See the rest of this page for more details.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值