Skip to main content

midas-parsl-configs

Bundled + user-extensible Parsl configs for MIDAS pipelines.

This package owns the cluster Parsl configs that used to live under FF_HEDM/workflows/*Config.py and NF_HEDM/workflows/*Config.py, plus a registry + a SLURM/PBS submit-script-to-config generator so users don't have to hand-edit Python to bring a new cluster online.

What it gives you

from midas_parsl_configs import load_config, available_configs

available_configs()
# {'local': 'builtin', 'umich': 'builtin', 'polaris': 'builtin',
#  'mycluster': 'user:/Users/me/.midas/parsl_configs/myclusterConfig.py', ...}

cfg = load_config("polaris", n_nodes=4, n_cpus=64,
                  script_dir="/path/to/run")
parsl.load(config=cfg)

load_config sets the env vars the bundled configs read at import time (MIDAS_SCRIPT_DIR, nNodes, PROJECT_NAME, QUEUE_NAME, CONDA_LOC) before importing the module so you get a runnable Config back.

Bundled configs

name scheduler source
local ThreadPoolExecutor local development
adhoc AdHoc + SSH beam-time pool of workers
orthrosnew AdHoc + SSH APS Orthros (puppy80…)
orthrosall AdHoc + SSH APS Orthros (pup0100…)
umich SlurmProvider UMich GreatLakes
marquette SlurmProvider Marquette HPC
purdue SlurmProvider Purdue Halstead
polaris PBSProProvider ALCF Polaris

Bringing your own cluster online

midas-parsl-configs generate /path/to/your_submit.sh --name mycluster

This parses #SBATCH / #PBS directives + the body's module load / conda activate / source lines, then writes ~/.midas/parsl_configs/myclusterConfig.py. From then on midas-parsl-configs list and any pipeline driver that resolves through the registry (midas-ff-pipeline, in particular) can use --machine mycluster.

Override the user dir with MIDAS_PARSL_CONFIGS_DIR if you want the file written somewhere else.

User configs override bundled configs of the same name — useful when you're iterating on a cluster's setup without losing the upstream default.

CLI

midas-parsl-configs list                                    # show every visible config + source
midas-parsl-configs generate <submit.sh> --name <short>     # write user config from submit script
midas-parsl-configs generate <submit.sh> --name x --print   # dry run, prints to stdout
midas-parsl-configs show <name>                             # repr() of the resolved Config
midas-parsl-configs path                                    # path to the user config dir

What generate translates

SLURM (#SBATCH):

  • --partition / -ppartition
  • --account / -Ascheduler_options (#SBATCH --account=…)
  • --time / -twalltime
  • --nodes / -Nnodes_per_block
  • --ntasks-per-nodecores_per_worker
  • --cpus-per-task / -ccores_per_worker
  • --gresscheduler_options + GPU count detection
  • --constraint / --qos / --mem → passed through as scheduler_options
  • --job-name / -J → executor label

PBS (#PBS):

  • -q → queue
  • -A → account
  • -l walltime=… → walltime
  • -l select=N:ncpus=M:ngpus=Knodes_per_block + cores_per_worker + GPU count
  • -l filesystems=… → scheduler_options
  • -N → executor label

Anything we can't translate becomes a passthrough scheduler_options line so you can refine the generated module by hand if needed.

Download files

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

Source Distribution

midas_parsl_configs-0.1.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

midas_parsl_configs-0.1.1-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file midas_parsl_configs-0.1.1.tar.gz.

File metadata

  • Download URL: midas_parsl_configs-0.1.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for midas_parsl_configs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a2912566a4d8adac6eb19ceb74048040e67201ffe71691952a39ee13d0327e65
MD5 5e432fc7360eea11457238aa3f3b934d
BLAKE2b-256 9ba9ce6716cd157b92be0e070d0e7bbed2b6495d26b35a2d7991c701e88100c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for midas_parsl_configs-0.1.1.tar.gz:

Publisher: python-packages.yml on marinerhemant/MIDAS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file midas_parsl_configs-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for midas_parsl_configs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70b4fc7a6c3e98a2ca559c5c09ceff6b5e5383807b491bb755470d0ec8d85082
MD5 7ee74d5f9dfecabd9f6e3c903c06c2f4
BLAKE2b-256 e852b095c87e4e860936381fe105b4629f22ec3da14eadd372e36addf1e2a6e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for midas_parsl_configs-0.1.1-py3-none-any.whl:

Publisher: python-packages.yml on marinerhemant/MIDAS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

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