How to use multiple nodes/cores on a cluster with parellelized Python code

大城市里の小女人 提交于 2019-12-04 11:13:09

Typically MPI is considered the de-facto standard for High-Performance Computing. There are a few MPI bindings for Python:

There are also a bunch of frameworks for that - list

Your code will require at least minimal changes, but they shouldn't be too much.

When you port to MPI you can run a single process per core and you will not need to use multiprocessing

So, for example, if you have 100 nodes with 24 cores each, you will run 2400 Python processes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!