Skip to main content

# 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)

Release files for ClusterPool 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ClusterPool 0.10
File Size Uploaded
ClusterPool-0.10.tar.gz 7.2 kB Details

Release files / ClusterPool-0.10.tar.gz

Download URL ClusterPool-0.10.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c94aaaf3056cdc88981ce32b6c788e9feb4b77c7ddf2f533e5086c049053b031
BLAKE2b-256 checksum
How to use checksums
c12549f903d47d52a36f1c7023607afecc094f006d0d4e653b6f4f7fa9823449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.10 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page