gpt4 book ai didi

mpirun - 没有足够的可用插槽

转载 作者:行者123 更新时间:2023-12-03 11:07:49 26 4
gpt4 key购买 nike

通常当我使用 mpirun 时,我可以“重载”它,使用比我计算机上实际使用的处理器更多的处理器。例如,在我的四核 mac 上,我可以运行 mpirun -np 29 python -c "print 'hey'"没问题。我现在在另一台机器上,它抛出以下错误:

$ mpirun -np 25 python -c "print 'hey'"
--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 25 slots
that were requested by the application:
python

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

为什么在这里“超频” mpirun 不起作用?有什么方法可以克服此错误消息并成功运行多于可用处理器的处理器?

最佳答案

根据 https://www.open-mpi.org/faq/?category=running#oversubscribing您可以使用主机文件超额订阅您的节点。在继续之前,请注意这种方式可能会严重降低节点的性能。此外,如果您用来运行应用程序的系统正在使用队列系统,则这可能无效。

首先创建一个包含

localhost slots=25

简单地运行你的应用程序
mpirun --hostfile hostfile -np 25 python -c "print 'hey'"

关于mpirun - 没有足够的可用插槽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35704637/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com