/hpc-roquo:roquo-submitting-jobsfrom hpc-roquo
Use when the user wants to run, submit, or launch a job on ROQUO (RIKEN R-CCS). Covers partition/queue selection, JobSpec construction, submission, and known gotchas specific to this facility.
Ships in hpc-roquo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every tool call in this skill uses facility="roquo".
ROQUO's login and work nodes are x86_64; its GPU compute nodes are
aarch64. A binary built on a login node will not run on a compute
node, and the failure shows up long after the cause. If the user is
building something, build it on a compute node (an interactive job), not
on the login node where they're typing.
The same applies to container images — they must be aarch64.
Three, and treat them as separate machines:
| Partition | What it is | Architecture | GPUs |
|---|---|---|---|
roquo (default) | 135 GB200 nodes in 8 racks (qr01–qr08) | aarch64 | 4 per node |
work | 5 nodes for builds, pre/post-processing, workflow servers | x86_64 | none |
roquo_share | free development tier: one MIG slice per job | aarch64 | 1 slice |
Tell the user about roquo_share before spending points. For a first
test, a build-and-debug loop, or anything that fits in one small slice, it
costs nothing and needs no project. See its section below.
roquo-rack01 … roquo-rack08 were removed on 2026-10-13. If a user's
old script names one, point them at roquo plus
custom_attributes: {"switches": "1"}, which keeps the allocation inside
one rack. submit_job rejects the removed names with that advice.
--gres, per nodeROQUO uses the per-node gres dialect: resources.gpus renders as
--gres=gpu:N, N from 1 to 4. This is not the job-total --gpus=N that
RIKYU uses — don't carry a RIKYU habit over.
A GPU request rounds up to one of three fixed node plans:
| Plan | GPUs | CPU cores | Memory |
|---|---|---|---|
| qtr | 1 | 36 | 400 GB |
| half | 2 | 72 | 800 GB |
| full | 4 | 144 | 1600 GB |
A job naming no GPU, CPU or memory flags silently gets qtr. Say what you
want.
For more than four GPUs, set resources.gpus=4 and
resources.node_count=N — asking for more than one node's worth in a
single request is rejected (ROQUO-E001), and submit_job catches that
before the scheduler does. There is no node-count cap under normal —
the manual's "36 nodes" is the general QOS's limit, and general
isn't accepted on this partition.
For tightly coupled multi-node work, ask for whole nodes (gpus=4): each
GPU has its own directly attached NIC, so fewer GPUs means less bandwidth.
On roquo and work: attributes.account. It picks both the billing target and the group
that owns files the job writes. get_projects returns two entries and only
one is usable: the account named after the username is a personal
account and ROQUO refuses jobs charged to it (ROQUO-E202). Each entry
carries chargeable: true/false — pick a chargeable one, and don't just
take the first result, since the personal account tends to sort first. A job without it is not rejected — it
falls back to a restrictive default account, which is worse than failing,
because the job runs and then its output belongs to the wrong group. Call
get_projects(facility="roquo") to see what the user may charge. If
they belong to several and haven't said which, ask: it's a billing
decision. ROQUO_ACCOUNT or defaults.account in
~/.hpc-agent/roquo.json fills it in automatically when set.
roquo_share is the exception: leave attributes.account unset there (the
job runs under the personal account, which is valid on that partition only)
— submit_job does not fill the billing group in for it.
attributes.duration. The scheduler default is one hour on every
partition, which is rarely what anyone meant.
Pass QOS as custom_attributes: {"qos": "<name>"} (renders as
#SBATCH --qos=). Which ones a partition accepts was read from the live
scheduler and is wider than the manual says:
| Partition | Accepts | Partition MaxTime |
|---|---|---|
roquo | normal, p1, p2, p3, p4, p5 | 3 days |
work | normal, long, p4, p5 | 30 days |
Ceilings: normal 3d, p1 2d, p2 1d, p3 12h, long 30d. p4/p5
have none of their own — only the partition bounds them. p3 also allows
one job at a time per user.
The silent one. Over the QOS ceiling but inside the partition's
MaxTime, Slurm accepts the job and never schedules it: it parks on
QOSMaxWallDurationPerJobLimit, indistinguishable from a busy queue. Over
the partition's MaxTime is the safe case — Slurm refuses it at submit.
submit_job catches both, and the message tells you which one you hit.
This is not only a work problem: a roquo job asking 2.5 days under
p1 (ceiling 2d) parks exactly the same way.
roquo_share partition's rulesFree, no billing points. Set attributes.queue_name to roquo_share.
Every job gets exactly one set — one MIG slice (1g.23gb, about 1/7 of a
GB200 and ~20 GiB GPU memory), 6 cores, 32 GiB host memory, one node — and
you do not have to ask for any of it. resources.gpus=1 is also fine and
means the same slice.
attributes.account unless the user wants a project. Unset,
it runs under their personal account (refused elsewhere with ROQUO-E202,
fine here). Usage counts toward that account's fair-share, so charging a
project there can slightly delay that project's paid jobs.normal QOS — submit_job
refuses longer runs and any other QOS, because the scheduler would
otherwise silently rewrite it.submit_job with ROQUO-E302. Smaller is fine.
resources.exclusive_node_use is refused (ROQUO-E303).submit_job cannot
know about the user's other job, so a second submission comes back as
Job violates accounting/QOS policy (job submit limit …). Check
get_job_statuses first, or wait for the first to end. No job arrays and
no --dependency follow-ups.work partition's rulesresources.cpu_cores_per_process
(--cpus-per-task) or resources.process_count (--ntasks), 1–192.
Omitting it is ROQUO-E101.ROQUO-E103.roquo.p1/p2/p3 don't exist here. long raises the ceiling to 30
days but caps the job at 4 CPUs and 8 GiB (and the user at 8 CPUs,
16 GiB, 4 concurrent jobs).qos: long is accepted and then
never starts — it sits on QOSMaxWallDurationPerJobLimit looking
merely queued. submit_job refuses this outright, because a job that
never starts is indistinguishable from a busy queue.Lmod, but modules load on compute nodes only, not login nodes. A
module load in the login shell will not behave the way it does in a job,
so put module loads in the job script.
Available: gcc/14, cuda/13.3, hpcx/2.50 (and 2.51), nvhpc/26.9,
nvhpc-openmpi/26.5. Note bare module load cuda resolves to cuda/13.4
(the default), not 13.3.
Start job scripts with module purge.
The two stacks are mutually exclusive in Lmod — loading one swaps the other out — and they take different launchers:
| Stack | MPI | Launch with |
|---|---|---|
hpcx/2.50 | OpenMPI 5 / UCX | srun |
gcc/14 + nvhpc/26.5 + nvhpc-openmpi/26.5 | OpenMPI 4 / UCX | mpirun |
On the NVHPC stack, srun --mpi=pmix aborts before MPI_Init and is
unsupported. Set spec.launcher to match the stack you loaded.
Sharp edges worth knowing before you debug one of them:
cuda module or set NVHPC_CUDA_HOME alongside the
NVHPC stack — it breaks mpirun.-lmpi fails ("cannot find -lmpi"); pass MPI include and library
paths explicitly.mpicc -cuda doesn't work (CUDA 13.2 device-header conflict). Compile
with nvcc using nvc++ as host compiler, or nvc++ directly.cudaSetDevice() and cudaFree(0) before MPI_Init, or the
job aborts with "cannot find remote protocol".NVSHMEM_IBGDA_NIC_HANDLER=cpu_host_memory or
they can hang after cuda_nvshmem_init. Plain CUDA-aware MPI doesn't.GPU target is Blackwell: -arch=sm_100 (nvcc) or -gpu=cc100 (NVHPC).
/home/hps1/<user> — small; config and source only./projects/hps1/<project> — Lustre, persistent, shared with the
project. Datasets, results, SIF images.$SLURM_SCRATCH (/scratch/<jobid>) — node-local NVMe, deleted when
the job ends. Copy results out before the job exits.Inside a job $TMPDIR is $SLURM_SCRATCH/tmp. Don't write to /tmp.
srun --container-image=nvcr.io#nvidia/<image:tag> \
--container-mounts=<host>:<container> <cmd> # Pyxis/Enroot
apptainer exec --nv <image.sif> <cmd> # Apptainer
Images must be aarch64. Keep SIF files in /projects/hps1/<project>.
ROQUO prints each message twice — Japanese then English — and prints
warnings with an error: prefix. sbatch: error: [ROQUO-W003] … is a
warning that the request was rounded up to a node plan; that is normal.
Decide success from the exit status and the returned job ID, not from the
word "error" appearing.
The one to recognize is ROQUO-E201: not enough billing points. The
charging group is out of allocation, sbatch refuses the job, and the last
line is the unhelpful Batch job submission failed: Unspecified error —
so read the whole stderr. No command reports the balance (it's in the
Portal), so the useful response is to tell the user their project is out
of points and offer to charge a different one via attributes.account —
or, if the work fits one MIG slice and 8 hours, to run it free on
roquo_share — not to retry or to adjust the job.
--mail-user needs a full address containing @ and --mail-type must
be set too; a bare username silently sends nothing.
submit_job(facility="roquo", spec=spec) — show the user the spec
(or a plain-language description of it) before submitting, unless
they've explicitly said to just run it. No exceptions for this call.{"job_id": ..., "script_path": ...} — the rendered script
is kept on the cluster; fs_view(facility="roquo", path=script_path)
to inspect exactly what was submitted.get_resources(facility="roquo") (live occupancy) and
get_facility(facility="roquo") (static limits) — don't guess.~/agent/work/<descriptive-name>/, never in the
home-directory root. ~/agent/ is the agent's visible scratch area —
~/agent/jobs already holds every submitted script — and the home
root stays the user's own.spec.directory with fs_mkdir before submission.
Schedulers enter that directory before the script body and pre_launch
runs, so a mkdir in pre_launch is too late.search_docs(facility="roquo", query=...) on the hpc-docs
server. It searches a bundled guide, not a live site — never invent a URL
to send the user to.cancel_job without confirming with the user first.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub william-dawson/hpc-rookery --plugin hpc-roquo7 skills in this plugin
/roquo-configuringUse when the user wants to set up, configure, or troubleshoot ROQUO (RIKEN R-CCS) — SSH access, the embedding endpoint for docs search (RAG), or the ~/.hpc-agent/roquo.json file. Also use when roquo tools fail with connection or embedding errors./roquo-demoInteractive demo of ROQUO (RIKEN R-CCS) — walks through configuration, facility info, live cluster status, docs search, filesystem access, and a real job end to end./roquo-monitoring-jobsUse when the user asks about the status, progress, output, history, or failure of jobs on ROQUO (RIKEN R-CCS), or about queue and node availability. Also use this any time you (the agent) need to check on or wait for a job you submitted, even without a fresh user request./roquo-referenceUse to answer questions about ROQUO (RIKEN R-CCS) itself — hardware, partitions, storage, software, policies, or where to get help. Ground answers in the bundled guide and live tool output rather than prior knowledge./roquo-remote-commandUse when the user wants to run one or more shell commands on ROQUO (RIKEN R-CCS)'s login node, or when another workflow needs run_command_on_cluster for a live check not covered by a safer typed tool. Requires an exact command preview and explicit user permission before execution./roquo-reproducingUse when the user asks to make a result on ROQUO (RIKEN R-CCS) reproducible, shareable, or turned into a notebook/script — or proactively suggest it after a chunk of exploratory job/file work that produced something worth preserving. Builds a Jupyter notebook that replays the real workflow via hpc_agent_core.client, not a hand-copied SSH script.