Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixel_patrol_slurm-0.7.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pixel_patrol_slurm-0.7.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pixel_patrol_slurm-0.7.1.tar.gz.

File metadata

  • Download URL: pixel_patrol_slurm-0.7.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pixel_patrol_slurm-0.7.1.tar.gz
Algorithm Hash digest
SHA256 d8e6b74367d4d000a8660eaa8f402124e017b7e59527a6b9fe7cbd839bfcbddf
MD5 1e308d4c9013d38eb6c3147dea5ada38
BLAKE2b-256 5e470dfa9e627df6543a69e844c1d362e042607fba44691700a2d5b6c35aa0de

See more details on using hashes here.

File details

Details for the file pixel_patrol_slurm-0.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pixel_patrol_slurm-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b92a9efc1fa23c861e41809a977e35a15bd660d5a3fbf6beba963389b40fba0
MD5 e378d053c4461dbac8f58368a09f7d84
BLAKE2b-256 42816eb0ff8b471dd77d5b4f5bc0ec21a112b61ff75004491483fda3b376fc12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page