pranavviswanath/globus-compute-hpc/globus-compute-hpc
Claude Code and agent skill by pranavviswanath/globus-compute-hpc
- community
Checking that the SKILL.md file is still in the repository.
Configure and run Globus Compute endpoints on HPC systems, and execute multi-node/MPI applications through them. Use when: (1) installing/configuring globus-compute-endpoint on Slurm or PBS clusters (Polaris, Perlmutter, Aurora, Expanse); (2) writing endpoint config templates — user_config_template.yaml.j2, GlobusComputeEngine/GlobusMPIEngine, SlurmProvider/PBSProProvider, launchers, worker_init, blocks; (3) running MPI codes with MPIFunction and resource_specification; (4) parametrizing shared…
Install
npx vskill@latest install pranavviswanath/globus-compute-hpc/globus-compute-hpcSKILL.md
The same SKILL.md was published earlier as pranavviswanath/globus-compute-hpc/globus-compute-hpc.
Globus Compute Endpoints — HPC Configuration & MPI Execution
| Owns | Endpoint configuration for HPC + MPI/multi-node execution | |
| Defers to | globus-sdk skill (client SDK basics) · pbs/slurm/aurora/perlmutter skills (scheduler & system specifics) | |
| Packages | globus-compute-endpoint (target machine) · globus-compute-sdk (client) | |
| Key files | ~/.globus_compute/<name>/user_config_template.yaml.j2 (the config) · config.yaml (manager) · endpoint.log (debugging) | |
| Hard rules | init_blocks: 0 · launcher matches scheduler · MPI = GlobusMPIEngine+SimpleLauncher+MPIFunction · never funcx/HighThroughputEngine |
Globus Compute (formerly funcX — never use the funcx package) is Function-as-a-Service for research computing: submit a Python function from anywhere and run it on a remote machine, without SSH or hand-written scheduler scripts. It has two sides:
- Client (
globus-compute-sdk):Executor,submit(),result()— covered
by the globus-sdk skill. Defer client-SDK basics there.
- Endpoint (
globus-compute-endpoint, a separate package): a daemon on the
target machine that receives functions and runs them. This skill owns the endpoint side, plus MPI/multi-node execution.
The key reframe: an endpoint config encodes the same knowledge as a PBS/Slurm job script — rearranged as YAML so the endpoint submits scheduler jobs for you and your Python function runs in the worker instead of ./my_app. For scheduler directive syntax and system specifics (queues, modules, filesystems), defer to the pbs, slurm, aurora, perlmutter, and frontier skills; this skill teaches only the Globus Compute translation layer.
Process Model (where did my job die?)
| Process | Role | Configured by | |
|---|---|---|---|
| MEP — Manager Endpoint Process | Renders config template, launches/manages UEPs | config.yaml | |
| UEP — User Endpoint Process | Talks to Globus services, requests scheduler jobs, launches workers | user_config_template.yaml.j2 | |
| Worker | Executes tasks on compute nodes | (engine settings) |
The engine/provider block goes in `user_config_template.yaml.j2` — even for a single-user endpoint. config.yaml only configures the manager process (display_name, amqp_port, and multi-user fields). Older endpoints can be upgraded with globus-compute-endpoint migrate-to-template-capable <name>.
Quickstart
gce is installed as a shell alias for globus-compute-endpoint. Other subcommands: list, restart, delete, login, logout, whoami, enable-on-boot, disable-on-boot, render-user-config (test a template without starting anything — see workflow below), migrate-to-template-capable.
configuregenerates a LocalProvider template — tasks run on the loginnode, NOT on compute nodes. To use the cluster you must replace the providerblock. This is the single most-skipped step.
Universal Config Anatomy
Every HPC endpoint template is this shape (it is a job script, rearranged):
A block = one scheduler job holding nodes_per_block nodes. The endpoint auto-scales between min_blocks and max_blocks as tasks arrive.
{{ VAR }} placeholders are Jinja variables: supply values from the client via Executor(user_endpoint_config={...}), or replace them with literal values for a personal endpoint.
Non-Negotiable Rules
- `init_blocks: 0`, `min_blocks: 0` — anything else grabs and holds compute
nodes the moment the endpoint starts, burning allocation with zero work queued. This is the #1 allocation-wasting mistake.
- Launcher must match the scheduler —
MpiExecLauncherwith
PBSProProvider; SrunLauncher with SlurmProvider. Never srun on a PBS system (Polaris, Aurora).
- MPI is a package deal —
MPIFunction+Executor.resource_specification
on the client REQUIRES type: GlobusMPIEngine + launcher: SimpleLauncher in the endpoint template. Mixing with GlobusComputeEngine fails.
- Never emit `funcx` or `HighThroughputEngine` — funcx is the dead pre-2023
brand; HighThroughputEngine has been removed from the codebase. Valid engines: GlobusComputeEngine, GlobusMPIEngine, ThreadPoolEngine, ProcessPoolEngine (last two: single-host only).
- Imports inside the function body; required packages must exist in the
endpoint's worker_init environment; submitter and endpoint Python minor versions must match (mismatch → "worker lost" / serialization failures).
- Don't guess `ifname` — copy it from a known config for that system, or
discover it (see references/troubleshooting.md).
Engine / Provider / Launcher Routing
| Target | engine | provider | launcher | ||
|---|---|---|---|---|---|
| Laptop / login node / workstation | GlobusComputeEngine | LocalProvider | (default) | ||
| PBS cluster (Polaris, Aurora) | GlobusComputeEngine | PBSProProvider | MpiExecLauncher | ||
| Slurm cluster (Perlmutter, Expanse) | GlobusComputeEngine | SlurmProvider | SrunLauncher | ||
| MPI / multi-node tasks (any scheduler) | GlobusMPIEngine + `mpi_launcher: srun\ | mpiexec` | scheduler provider | SimpleLauncher (required) | |
| Kubernetes | GlobusComputeEngine | KubernetesProvider | — |
Known-good configs to adapt (bundled, copied verbatim from the globus-compute repo): assets/configs/ — polaris.yaml (PBS+GPU), perlmutter.yaml (Slurm), expanse_mpi.yaml (GlobusMPIEngine), aurora.yaml (DRAFT — composed, not yet validated on a live endpoint; verify flagged lines against ALCF docs before relying on it).
Workflow: configure → render → start → smoke-test → debug
- Configure:
gce configure my-ep; replace the template with an adapted
known-good config for the target system (references/endpoint-config.md).
- Validate the template before starting (catches Jinja/YAML errors offline):
``bash echo '{"ACCOUNT": "myproject", "COMMAND": "module load conda; conda activate myenv"}' > opts.json globus-compute-endpoint render-user-config -e my-ep -o opts.json ``
- Start:
gce start my-ep→ note the endpoint UUID. - Smoke-test from the client machine (proves config end-to-end — the task
only returns if the scheduler job ran and a worker executed it): ``bash python scripts/smoke_test.py <ENDPOINT_UUID> ``
- Debug: logs live in
~/.globus_compute/my-ep/endpoint.log. Failure tree
in references/troubleshooting.md.
Common Gotchas
- Endpoint starts fine but tasks hang forever → provider/queue/account wrong, or
scheduler job is queued: check the scheduler directly (qstat -u $USER / squeue --me) — a block IS a visible scheduler job.
- Tasks hang with blocks running → wrong
ifname; workers can't reach the UEP. - "Worker lost" → almost always Python minor-version mismatch client↔endpoint.
MaxResultSizeExceeded→ return values traverse the network (10 MB limit);
write large outputs to the filesystem and return the path.
- Allocation draining while idle →
init_blocks/min_blocksnot 0. - Catch specific exceptions (
TaskExecutionFailed,VersionMismatch, ...), not
bare Exception — see references/troubleshooting.md.
Additional Resources
- Annotated per-system configs, blocks model, GPU pinning, retries, auto-scaling:
- MPI/multi-node execution (
MPIFunction,resource_specification,
GlobusMPIEngine): references/mpi-execution.md
- Shared/templated endpoints (
user_endpoint_config, Jinja templates, identity
mapping): references/multi-user-endpoints.md
- Error types, failure tree, ifname discovery, exit codes:
- Verbatim + draft configs: assets/configs/ · Smoke test:
- Upstream docs: https://globus-compute.readthedocs.io/ (endpoints section)
- Related skills:
globus-sdk(client SDK),pbs,slurm,aurora,
perlmutter, frontier (scheduler/system specifics)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pranavviswanath/globus-compute-hpc/globus-compute-hpc)