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 (将#修改为@)