SLURM cluster launcher for pixel-patrol
Project description
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' |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixel_patrol_slurm-0.8.0.tar.gz.
File metadata
- Download URL: pixel_patrol_slurm-0.8.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89bcbf0456c4c581260902f93fa3bc3cbc73567c75423fc4d478df29caf2b40b
|
|
| MD5 |
39f65ce3f27211610449d1906df59bca
|
|
| BLAKE2b-256 |
ca493cefa664951d3844b18454141121d87c2b213a7558951b66eca633feade4
|
File details
Details for the file pixel_patrol_slurm-0.8.0-py3-none-any.whl.
File metadata
- Download URL: pixel_patrol_slurm-0.8.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bf4acbce7f84fd9f537d17239f4b9f602856118c2067ff7d47e0e10dc5e2bbf
|
|
| MD5 |
4c6a91ad9a9a37585ee0f0e50a8816fb
|
|
| BLAKE2b-256 |
327f7cf1848078cb32177d9373e27bb289c7e94bb50872ae3ac69e3861f3ebe5
|