PixelPatrol SLURM Launcher (pixel-patrol-slurm)
Launches a Dask SLURMCluster, waits for workers to come online, then runs pixel-patrol process against the cluster.
Installation
pip install pixel-patrol-slurm
Usage
pixel-patrol-slurm [SLURM options] -- BASE_DIR [pixel-patrol process options]
Arguments before -- control the Slurm cluster.
Arguments after -- are passed verbatim to pixel-patrol process (--scheduler is injected automatically).
Examples
# Minimal - use defaults (4 jobs, 4 cores, 16 GB, 2 h walltime)
pixel-patrol-slurm -- /data/images --output results.parquet
# Custom cluster
pixel-patrol-slurm --jobs 16 --cores 4 --memory 32GB --partition gpu \
-- /data/images --output results.parquet --flavor myproject
# Short walltime, fewer jobs
pixel-patrol-slurm --walltime 04:00:00 --jobs 8 \
-- /data/images -o out.parquet --processors-exclude histogram
Options
| Flag | Default | Description |
|---|---|---|
--jobs |
4 | Number of Slurm jobs (workers) to submit |
--cores |
4 | CPU cores per job |
--memory |
16GB | Memory per job |
--partition |
(none) | Slurm partition / queue name |
--walltime |
02:00:00 | Job walltime HH:MM:SS |
--processes |
1 | Dask worker processes per job |
--wait |
60 | Seconds to wait for workers to start |
--min-workers |
1 | Minimum workers before proceeding |
--env-extra |
(none) | Extra environment string, e.g. 'module load cuda' |
Metadata
Release files for pixel-patrol-slurm 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pixel_patrol_slurm-0.9.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pixel_patrol_slurm-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / pixel_patrol_slurm-0.9.0.tar.gz
| Download URL | pixel_patrol_slurm-0.9.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d592aed12a460b74699a46e906fac33537be4ede530a9f6d779f60cae76c150f
|
|
BLAKE2b-256 checksum How to use checksums |
87aad48d9a960abc3582f5ddbd92e789ee0649b751fff32b3bf9340a5d32c0cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pixel_patrol_slurm-0.9.0-py3-none-any.whl
| Download URL | pixel_patrol_slurm-0.9.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bde2bfa42dc27209e120a08200dbec11f02c8310776ca2e6e0826549e892479
|
|
BLAKE2b-256 checksum How to use checksums |
59520a98df5fdb4b03e6406d14bc319bc9a866840fd0375ed2e09794772ed3ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|