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.0.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.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixel_patrol_slurm-0.7.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9b7509a1f973a6e3f347d9c2927be3b3039feed2318aba444ba8023662c6bdc5
MD5 0d8d7d805d686a099a0edce2ecbab453
BLAKE2b-256 b19a5d47150961d3c8c58577ebde406316fe70c75a3895ff6b9b2c1cc84438eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pixel_patrol_slurm-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 897e024b182928244ed8aec1821436bcc2ca3cc22609a12a1defe04f68629c17
MD5 15890476295f90ea86df3a090d81e157
BLAKE2b-256 4c2d017bffd74ee869949f332d2023d07a5ae9ab9af88a65ebce3573cb97698a

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