【发布时间】:2018-07-27 21:13:03
【问题描述】:
我正在我的桌面上测试一个简单的 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
我收到以下错误:
--------------------------------------------------------------------------
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.
--------------------------------------------------------------------------
但如果我运行:
$ mpirun -n 2 ./test2
一切正常。
我从其他答案中看到我可以检查处理器的数量
cat /proc/cpuinfo | grep processor | wc -l
这告诉我我有 4 个处理器。我不对超额订阅感兴趣,我只想能够使用我所有的处理器。有人可以帮忙吗?
【问题讨论】:
-
你写了两次相同的
mpirun命令,你能解决这个问题吗?