MPI Python插槽不足

2024-09-30 10:36:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我目前是在Open MPI中使用MPI for python的新手,有以下问题:

当我试图用mpiexec-np7运行一个简单的脚本时mpitest.py我有以下错误:

There are not enough slots available in the system to satisfy the 7 slots that were requested by the application: python Either request fewer slots for your application, or make more slots available for use.

我不明白,我有一台12处理器的计算机,每个插槽有6个内核(每个处理器有1个插槽),所以这意味着我可以运行多达72个线程,但是OpenMPI在6个线程上卡住了。在

你知道如何利用所有处理器吗?在


Tags: the脚本forapplicationopen处理器线程available
1条回答
网友
1楼 · 发布于 2024-09-30 10:36:07

对于新版本的MPI,超额订阅可能会有所帮助。使用oversubscribe开关如下:

mpiexec  oversubscribe -np 7 mpitest.py

相关问题 更多 >

    热门问题