python超级计算机_ClusterPool-允许在超级计算机集群上使用calculate()函数映射大型对象列表-Joseph Goodknight...

ClusterPool是一个用于SLURM超级计算机调度器的并行计算工具,也可用于普通计算机测试。它提供了一个map函数,能够处理计算任务的分配、持久化存储和收集已完成的任务。Trawler对象负责选取并计算对象,通过文件系统信号同步工作,目前仅支持调用名为`calculate`且无参数的函数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

作者:Joseph Goodknight

作者邮箱:joey.goodknight@gmail.com

首页:https://github.com/jgoodknight/ClusterPool/

文档:None

下载链接 UNKNOWN

ClusterPool

Provides a map function which works with the SLURM supercomputer scheduler and can be extended to others. Also works on "normal" computers, mainly for testing purposes. (see examples/testfile_primes.py)

A ClusterPool object is an object which gives you a map function. You tell what kind of architecture the ClusterPool exists on (currently only "SLURM" and "normal") and it creates a dispatcher object which keeps track of the objects which need calculating, saves them to disk and collects them when they are done being calculated.

These objects are calculated by "Trawler" objects which get spun to life by the dispatcher and are given a directory full of pickled python objects. The Trawlers then randomly pick an object and throw up a sempahore on the filesystem to tell the other Trawlers they are working on that object. They load the object and the run object.calculate() (Note that currently the ClusterPool package can ONLY handle calling functions called calculate which take no arguments)

Copy from pypi.org

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值