ipython cluster helper:在不同调度程序上轻松启动IPython集群的工具 源码
ipython-群集帮助器 使用IPython在集群上快速轻松地并行化Python函数,支持多个调度程序。 优化IPython默认值以处理更大的集群和同时进行的进程。 例子 假设您编写了一个程序,该程序将多个文件作为参数,并对它们执行某种长时间运行的计算。 您最初的实现使用了循环,但速度太慢 from yourmodule import long_running_function import sys if __name__ == "__main__" : for f in sys . argv [ 1 :]: long_running_function ( f ) 如果您可以访问受支持的调度程序之一,则可以使用ipython-cluster-helper在5个节点上轻松并行化程序。 from cluster_helper . cluster import c
下载地址
用户评论