小编Jam*_*ith的帖子

无法使用mpirun的所有核心

我正在我的桌面上测试一个简单的MPI程序(Ubuntu LTS 16.04 /Intel®Core™i3-6100U CPU @ 2.30GHz×4/gcc 4.8.5/OpenMPI 3.0.0)并且mpirun不会让我使用全部我机器上的核心(4).当我跑:

$ mpirun -n 4 ./test2
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 4 slots
that were requested by the application:
  ./test2

Either request fewer slots for your application, or make more slots available
for use.
--------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)

但如果我跑:

$ mpirun -n 2 ./test2
Run Code Online (Sandbox Code Playgroud)

一切正常.

我从其他答案中看到我可以检查处理器的数量

cat /proc/cpuinfo | grep processor | wc -l
Run Code Online (Sandbox Code Playgroud)

这告诉我,我有4个处理器.我对超额订阅感兴趣,我只是希望能够使用我所有的处理器.有人可以帮忙吗?

hpc mpi openmpi

4
推荐指数
1
解决办法
3014
查看次数

标签 统计

hpc ×1

mpi ×1

openmpi ×1