微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

rmpi每个核心只能找到一个插槽,应该找到两个

如何解决rmpi每个核心只能找到一个插槽,应该找到两个

设置一台新机器,该20核,40插槽,R版本4.0.2,打开我自己编译并安装的MPI 4.0.5。

Now when I run $ cat /proc/cpuinfo | grep processor | wc -l

它返回正确的可用插槽数

40

但是,在R内,当我尝试创建24个插槽的群集时,它说还不够。它将愉快地产生一个具有18个插槽的集群。知道如何在R中修复doMPI / Rmpi​​以识别更多插槽吗?

Thx.J

cl <- startMPIcluster(count = 24)
--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 24
slots that were requested by the application:

  /usr/local/lib/R/bin/Rscript

Either request fewer slots for your application,or make more slots
available for use.

A "slot" is the Open MPI term for an allocatable unit where we can
launch a process.  The number of slots available are defined by the
environment in which Open MPI processes are run:

  1. Hostfile,via "slots=N" clauses (N defaults to number of
     processor cores if not provided)
  2. The --host command line parameter,via a ":N" suffix on the
     hostname (N defaults to 1 if not provided)
  3. Resource manager (e.g.,SLURM,PBS/Torque,LSF,etc.)
  4. If none of a hostfile,the --host command line parameter,or an
     RM is present,Open MPI defaults to the number of processor cores

In all the above cases,if you want Open MPI to default to the number
of hardware threads instead of the number of processor cores,use the
--use-hwthread-cpus option.

Alternatively,you can use the --oversubscribe option to ignore the
number of available slots when deciding the number of processes to
launch.
--------------------------------------------------------------------------
Error in mpi.comm.spawn(slave = rscript,slavearg = args,nslaves = count,: 
  MPI_ERR_SPAWN: Could not spawn processes

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。