Skip to content

RHAPSODY on NSF and DOE Machines

This section provides machine-specific setup guides and verified examples for running RHAPSODY on NSF and DOE leadership computing facilities. These machines are periodically tested and verified against RHAPSODY and its pre-release changes.

Note

All of the tutorials in this section target multi-node runs using DragonExecutionBackend. For single-node runs, testing, or debugging, it is recommended to use ConcurrentExecutionBackend (ProcessPoolExecutor) instead.

Backend compatibility

ConcurrentExecutionBackend (designed for debug and tests single node only) works out of the box on every machine listed here — no machine-specific configuration is required. Install RHAPSODY and run.

DragonExecutionBackend (designed for large scale multi-node) requires machine-specific setup: each HPC system has its own software stack, MPI library, interconnect, and job launcher. The exact steps — module loading, virtual environment creation, transport configuration, and launch command — differ per machine and are documented in each section below.

Each guide covers environment setup, module loading, job allocation, and working examples.

Partial-node allocations

Dragon's Batch starts os.cpu_count() // 2 workers on each node, not one per CPU the job may use. On a Slurm job that holds part of a node (for example -c 4 on a 512-CPU node), that puts hundreds of workers on a few CPUs. DragonExecutionBackend therefore passes workers_per_node, one per physical core the job may use on its smallest node, and logs a warning when it does. Batch still places process and MPI jobs as if the job had whole nodes, so keep their ranks within the CPUs the job holds. Request whole nodes (--exclusive, plus --mem=0 where the default memory per CPU would exceed the node) to get the full pool. Set workers_per_node in batch_kwargs to choose the size yourself, or pass size_pool_to_affinity=False to keep Batch's own sizing.

Supported Machines

Machine Facility Stack Status
NCSA Delta NSF / NCSA Cray MPICH, SSH launcher Verified
NERSC Perlmutter — Scalable Execution DOE / NERSC Cray libfabric + CUDA, SLURM launcher Verified
NERSC Perlmutter — AI-HPC DOE / NERSC Cray libfabric + CUDA, SLURM launcher Verified
Princeton StellarAI — Scalable Execution Princeton / PPPL Standard SLURM, SLURM launcher, TCP Verified
Princeton StellarAI — AI-HPC Princeton / PPPL NVIDIA B200 + CUDA, SLURM launcher, TCP Verified
PSC Bridges-2 NSF / PSC Standard SLURM, SSH launcher, TCP Verified
Purdue Anvil NSF / ACCESS / Purdue Cray MPICH, SSH launcher (HSTA) Verified

More machines will be added as they are tested and validated.