Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
ROCm, otherwise known as Radeon Open Compute, is an open source GPU Compute Framework that enables developers to customize their GPU software while collaborating with other developers. It consists of a variety of drivers, development tools, and API's that enables GPU programming from the low-level kernel to end-user applications. ROCm can be deployed in many ways, including through the use of containers such as Docker, Spack, and your own build from source.
The Health tab gives you a single-pane view of your entire cluster's operational state, covering GPU nodes, networking interfaces, SLURM, storage, and logs. It's designed to surface problems immediately so your team can act fast without having to dig through multiple tools.
At scale, visibility isn't optional. A single degraded node, a full storage volume, or a flapping network interface can silently stall a training run for hours if you don't catch it early. TensorWave's cluster observability is built around the idea that you should know about problems before they impact your workloads, not after.
The Nodes section displays a grid of live status cards covering every category of node in your cluster and their current up/down state.
GPU Nodes
Up Cluster GPU Nodes nodes that are online and available for workloads
Down Cluster GPU Nodes nodes that are currently unavailable. Expanding this card shows the hostname of each affected node
Non-RMA GPU Nodes nodes that have not been flagged for Return Merchandise Authorization, meaning they are healthy and not being serviced
RMA GPU Nodes nodes that have been flagged for RMA and are out of rotation for hardware servicing
Nodes with 8 GPUs nodes running a full complement of 8 GPUs
Nodes with less than 8 GPUs nodes that are online but have fewer than 8 GPUs available, which may indicate a GPU has failed or been taken offline
Nodes Missing GPUs nodes that are online but have no GPUs detected at all
Tracking partial GPU availability matters. A node that appears healthy but is missing GPUs can silently reduce the compute available to your jobs, causing slower runs or unexpected failures without an obvious cause.
Head Nodes
Head nodes manage job scheduling and act as the primary entry point for SLURM workloads on your cluster.
Up Cluster Head Nodes head nodes that are online and operational
Down Cluster Head Nodes head nodes that are currently unavailable, with hostnames listed on expansion
Jump Nodes
Jump nodes serve as secure access points into your cluster environment.
Up Cluster Jump Nodes jump nodes that are online and reachable
Down Cluster Jump Nodes jump nodes that are currently unavailable, with hostnames listed on expansion
Frontend and Backend Interfaces
Up/Down Frontend Interfaces frontend network interfaces handling inbound traffic to the cluster
Up/Down Backend Interfaces backend network interfaces handling internal cluster communication, including high-speed interconnects between nodes
Network interface health is especially important for distributed workloads. Degraded or down backend interfaces can bottleneck inter-node communication and tank GPU utilization across your entire cluster, even when the nodes themselves appear healthy.
Expanding any down card will list the hostnames of affected nodes, making it easy to pinpoint and isolate problems immediately.
A summary of your Kubernetes environment at a glance, scoped to the selected namespace.
Node Health shows the count of ready and not-ready nodes alongside an overall readiness percentage and total node count.
Pod Status displays the total number of pods running across the cluster, broken down by state (Running, Succeeded, and others) and visualized as a live donut chart.
Deployments shows how many deployments are available out of the total, with a clear indicator when all deployments are healthy.
Slurm Node States gives you a breakdown of all SLURM nodes by their current state, including Idle, Allocated, Mixed, Down, and Drained/Draining. A progress bar shows how many nodes are active relative to the total. Keeping an eye on node states helps you spot scheduling bottlenecks early, particularly when nodes are unexpectedly Down or stuck in a Drained state that reduces the capacity available to your jobs.
Slurm Job Queue shows the total number of jobs currently in the queue, broken down by Running, Pending, and Other states. A growing Pending count can be an early indicator of scheduler pressure, resource contention, or a node issue that is quietly reducing cluster capacity.
Keeping an eye on storage is critical for uninterrupted workloads. Full or near-full volumes can cause training jobs to fail, crash running pods, or corrupt checkpoints mid-run. The storage cards are designed to help you catch these issues before they become outages.
Shared Storage Used shows current utilization of your shared storage volume as a percentage, with a live progress bar and the mount path for reference. Monitoring this regularly helps ensure your jobs always have the space they need to write outputs, logs, and model checkpoints.
Storage Volumes Used above 85% flags any storage volumes approaching capacity. Catching volumes at this threshold gives you enough runway to free up space or expand capacity before a full volume takes down a workload. If all volumes are healthy, this card confirms that none have crossed the 85% threshold.
Log Trend shows a rolling view of log activity over the last 30 minutes. Spikes in log volume are often the earliest signal of something going wrong across the cluster, whether that's a failing job, a misbehaving pod, or an infrastructure event, giving you a chance to investigate before the impact is felt.
Clicking into any node from the Nodes table opens a detailed view of that node's performance and health. The Insights tab provides deep telemetry across GPU and system-level metrics, giving you the data you need to understand exactly what's happening on a node at any point in time.
TensorWave believes that the teams running the most demanding AI workloads deserve the same depth of observability that was previously only available to hyperscalers. Node Insights puts that data directly in your hands, so you can stop guessing why a job underperformed, catch hardware degradation before it causes a failure, and make informed decisions about your infrastructure without opening a support ticket first.
Use the insights category dropdown to switch between GPU Insights and System Insights, and the time range dropdown to adjust the window of data displayed.
GPU Insights surfaces per-GPU telemetry across compute, memory, power, and interconnect health. This is the primary view for understanding how your GPUs are performing under a workload and catching hardware issues before they cause job failures. At scale, even a single GPU behaving unexpectedly can silently degrade the performance of an entire training run, making this level of per-device visibility critical.
Summary cards at the top of the view show:
The login URL for your cluster is available in the TensorWave dashboard or in the handoff documentation provided at cluster delivery.
Depending on how your cluster is exposed, the SSH service listens on either port 22 or port 32222. Check your handoff documentation if you are unsure which applies.
Authentication is by SSH key. Password authentication is disabled. Your public key must be present in your LDAP user record before first login; contact your cluster administrator if you cannot connect.
Successful login lands you on a login pod for your user. This is where you submit jobs, inspect the queue, and manage your files. Login pods are not intended for compute-intensive work.
The cluster enforces Slurm accounting: every user must have a Slurm account and association before they can submit jobs. This is required by the QOS and limits configuration.
A cluster administrator performs the following steps once per user using sacctmgr from a login pod or the Slurm controller.
1. Create an account (if one does not already exist for the team or project):
As /home approaches full-capacity, healthchecks will start to drain worker pods to avoid breaking in-flight jobs with 'no space left on device' errors. To clean up files and free disk space, use du:
du -h -d1 /home/$USER | sort -h
This lists the size of all files+directories in the current user's home directory (including hidden files). Users can then recursively descend from there, replacing /home/$USER with diretories further down the tree to explore and clean-up files. Admins can explore the entire weka tree with sudo du -sh $(ls -A /home).
GPUs total number of GPUs on the node
Allocated GPUs how many GPUs are currently allocated to a job
Total ECC Counts correctable and uncorrectable ECC memory errors detected across all GPUs. Uncorrectable ECC errors in particular can indicate failing GPU memory and should be investigated promptly
Compute and memory
Jobs by GPU Usage shows utilization percentage per GPU, making it easy to spot underutilized or completely idle GPUs during an active workload. Low utilization on an allocated GPU is often the first sign of a bottleneck elsewhere in your pipeline
GPUs VRAM Used current VRAM consumption per GPU in MB
Node GPU Usage a time-series chart of GPU utilization across all GPUs on the node over the selected time range
Used VRAM per GPU (%) time-series view of VRAM consumption per GPU, useful for spotting memory pressure or unexpected growth during a run. Catching VRAM exhaustion early can save you from an out-of-memory crash mid-training
Power
Package Power Usage current power draw per GPU in watts, with a time-series sparkline for each. Unexpected drops in power draw can indicate a GPU has gone idle or been taken offline mid-job
GPU Power (W) a combined time-series chart of power consumption across all GPUs, making it easy to correlate power behavior with workload activity
Power-Activity Delta (%) tracks the relationship between power draw and GPU activity. A large delta can indicate a GPU is drawing power without doing useful work, which may signal a hardware or driver issue. This metric is particularly useful for identifying silent GPU failures that don't surface as outright errors
Thermals
Memory Temperature (°C) per-GPU memory temperature over time. Sustained high memory temperatures can throttle performance and shorten hardware lifespan
GPU Sensor Temperatures (°C) per-GPU sensor temperature readings over time, useful for identifying thermal outliers across the node. A GPU running consistently hotter than its peers is worth investigating before it causes a thermal throttle or hardware fault mid-run
GPU Memory Clock (MHz) memory clock frequency per GPU over time. Drops in memory clock speed can indicate thermal throttling that is silently reducing your effective compute throughput
GPU System Clock (MHz) core clock frequency per GPU over time
PCIe health
PCIe Counts tracks Recovery, Replay, Replay Rollover, NACK Received, and NACK Sent events across the PCIe bus. Non-zero values here, especially Replay or NACK counts, can indicate PCIe instability that may affect GPU-to-CPU communication and overall node reliability
PCIe Errors (ops/s) rate of PCIe errors over time
PCIe Bandwidth (MB/s) per-GPU PCIe bandwidth over time, useful for identifying bottlenecks between GPUs and the host system
Interconnect
xGMI Transmission Rate (GB/s) tracks data transmission rates across the GPU interconnect fabric. Degraded xGMI throughput can bottleneck multi-GPU communication and significantly reduce training efficiency on interconnect-heavy workloads. For large distributed runs, interconnect health is often the difference between hitting peak throughput and leaving performance on the table
System Insights provides host-level telemetry covering storage, memory, CPU, and networking for the node. GPU problems don't always start with the GPU. Storage contention, CPU bottlenecks, memory pressure, and network instability can all silently degrade workload performance in ways that are difficult to diagnose without this level of system-level visibility.
Storage
Root FS Storage % Used current utilization of the root filesystem as a percentage, with a live progress bar
Filesystem Available Space Over Time a time-series chart of available space across all mounted filesystems on the node. Watching this trend over time helps you catch storage being consumed faster than expected before a full filesystem crashes a job or corrupts a checkpoint
Memory
Memory Used current system memory utilization as a percentage
Memory Usage Over Time time-series breakdown of RAM Cache and Buffer, RAM Free, RAM Used, and SWAP Used, giving you a full picture of how system memory is being consumed and whether the node is under memory pressure. Heavy SWAP usage in particular can be an early warning sign of a memory leak or an undersized allocation for your workload
CPU
Number of CPUs total CPU count on the node
Sys Load current system load as a percentage
CPU 1 min load avg short-term CPU load average, useful for catching sudden spikes
CPU 5 min load avg medium-term load average, smoothing out short bursts to show sustained load
CPU 15 min load avg long-term load average, the best indicator of whether the node is consistently under pressure over time. A persistently high 15-minute average often points to a systemic issue rather than a transient spike
Thermals
CPU Temperatures (°C) per-CPU temperature over time. Thermal throttling on the CPU can indirectly impact GPU workloads by creating bottlenecks in data preprocessing or job orchestration
NIC Temperatures (°C) per-NIC temperature over time. Overheating network interface cards can degrade throughput and contribute to link instability
Networking
Network Traffic Over Time inbound and outbound traffic on the node over the selected time range
Link Flaps Over Time tracks network link flap events, where a network interface briefly goes down and comes back up. Frequent link flaps are a strong early indicator of a failing NIC or unstable network connection and should be investigated before they impact distributed workloads. For multi-node training jobs, a single flapping link can stall an entire run
3. Verify the association is in place:
The user can now submit jobs. Without a valid association, job submissions will be rejected.
Users can verify their associations at any time:
For full sacctmgr reference, see the Slurm accounting documentation.
Worker pods are accessible by SSH from within a login pod. Access is restricted to users who have a job currently running or a resource allocation active on the target node.
If you already have a job running, find its allocated nodes:
Then SSH to the worker pod by its Slurm node name directly from the login pod:
Note: SSH to a worker pod will be refused if you do not have an active allocation on that node. This is by design.
Worker pods use port 2222 internally. This is configured automatically on login pods; no additional flags are required.
The cluster supports identity provider (IDP) integration, which allows users to authenticate using your organization's existing SSO, such as Okta, Azure AD, or Google Workspace.
IDP setup requires coordination during or after initial cluster deployment. To discuss options or initiate configuration, contact your TensorWave account manager.
ssh <your-username>@<cluster-ssh-host>
# or, if using the node port:
ssh -p 32222 <your-username>@<cluster-ssh-host>sacctmgr add account <account-name> Description="<description>"sacctmgr add user <username> Account=<account-name> DefaultAccount=<account-name>sacctmgr show assoc where user=<username>sacctmgr show assoc where user=$USERsqueue -u $USERssh <node-name>
# example:
ssh tus1-p14-g36Environment modules provide pre-installed software (frameworks, tools, and container-backed environments) without requiring you to build or pull images yourself. They are a lightweight alternative to containers when you do not need full environment isolation or a custom software stack.
Two module systems are available:
Lmod — the primary module system. Use it to load and switch between pre-installed frameworks and tools.
SHPC (Singularity HPC) — extends Lmod with container-backed modules. SIF images are installed into a shared module tree so that module load transparently runs commands inside the container.
Modules are available on both login and compute pods. Load them in your batch script before calling srun so the environment is propagated to all tasks.
is the module system on this cluster. Common commands:
Example: batch job using a module
SHPC installs container images as Lmod modules onto a shared volume, so module load transparently runs commands inside the container. Installed modules are available to all users.
By default, shpc installs modules under /mnt/shpc. This is intended to be a global admin-managed registry. Users are expected to configure their own shpc installation target:
Configure private module tree:
Admins can omit this step to install packages globally. The following install commands will target /mnt/shpc, and will be available to all users.
Install a module from the curated registry:
Install an arbitrary OCI image:
Note: running module-installed apps only works on privileged pods (worker-pods and VM-based login pods). If you encounter the error ERROR : Failed to create mount namespace: mount namespace requires privileges, check Apptainer installation, try running the same command with srun.
Global modules and container images are stored on the shared modulestore volume (/mnt/modulestore), so an install on a login pod is immediately available on compute pods without any additional steps. Users are encouraged to install their modules in their /home/$USER directory.
TensorWave supports notifications via Slack and Email to help you stay on top of your infrastructure without having to watch a dashboard. Whether it's a storage threshold being crossed or an unexpected node reboot, alerts are designed to surface problems early — before they impact your workloads.
Alerts are built around cluster and node observability, giving your team visibility into the health of your infrastructure in real time. Slack alerts are configured at the organization level by admins, while email alerts are configured individually by each user.
Slack alerts are organization-wide and can only be managed by org admins. When enabled, qualifying events are sent to your organization's connected Slack workspace.
Toggle Enable Slack alerts on to activate notifications. Use the workspace dropdown to select which Slack workspace should receive alerts.
You can enable or disable individual alert types depending on what's relevant to your organization. These include events such as low storage on nodes, low shared storage, and node reboots, among others.
Email alerts are per-user. Each team member independently controls which notifications are delivered to their account email address.
Toggle Enable email alerts on to activate notifications. Alerts are sent to the email address on your profile. To update this address, go to Profile settings.
The same set of alert types is available for email as for Slack. Each can be toggled on or off independently based on your preferences.
Only org admins can enable or modify Slack alerts.
Slack and email alerts are independent and can be enabled in any combination.
Individual alert types can be toggled without disabling alerts entirely.
Alert thresholds are set to TensorWave's recommended defaults.
TensorWave's managed Kubernetes offering is designed to make it seamless to run and scale your clusters without the operational overhead. The Kubernetes tab gives you complete, real-time visibility into every layer of your cluster, from node health and pod status to deployments and scheduled workloads. Whether you're scaling a training run, debugging a degraded node, or auditing what's running across namespaces, everything you need is surfaced in one place without touching the terminal.
This level of visibility means your team spends less time diagnosing and more time shipping. Problems are easier to catch early, incidents are faster to resolve, and you always have a clear picture of your cluster's state at any scale.
The Namespace dropdown at the top of the page filters all resource views simultaneously. Select a specific namespace to narrow your focus, or choose All Namespaces for a full picture of everything running across your cluster.
The Kubernetes overview gives you an instant read on the health of your entire cluster across three summary cards:
Node Health shows the number of ready and not-ready nodes, overall readiness percentage, and total node count at a glance.
Pod Status provides a real-time breakdown of all pods running across the cluster, categorized by state (e.g. Running, Succeeded) and visualized as a live donut chart.
Deployments shows total deployments and how many are available, with a clear healthy/degraded indicator so you can confirm your workloads are running as expected.
Drill into the Nodes view for a granular per-node breakdown, no kubectl required.
Summary cards at the top surface the metrics that matter most:
Ready nodes in a healthy, schedulable state
Not Ready nodes that are unavailable or degraded
Control Plane number of control plane nodes managing cluster state
Workers number of worker nodes available for workloads
Node table breaks down every node in the cluster:
Hostname node identifier, with one-click copy
Status live node state (e.g. Ready, Unknown)
Role whether the node is a worker or control-plane
Version
The same namespace-scoped table interface is available for Pods, Deployments, StatefulSets, DaemonSets, Jobs, and CronJobs, giving you consistent visibility across every layer of your Kubernetes workloads without leaving the console.
Download your cluster's kubeconfig directly from the cluster header by clicking Kubeconfig. Use it to connect kubectl or any Kubernetes-compatible tooling to your cluster instantly.
GPU number of GPUs attached, where applicable
CPU total CPU count
Memory total memory provisioned
More Info expands to show the node's internal IP, OS image, kernel version, and container runtime
module avail # list all available modules
module avail torch # search by name
module load torch/2.7 # load a module
module list # show loaded modules
module unload torch/2.7 # unload a module
module purge # unload everything#!/bin/bash
#SBATCH --job-name=torch-module
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=1
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=48
#SBATCH --time=02:00:00
module load torch/2.7
srun python -m torch.distributed.run \
--nproc_per_node 8 \
--nnodes $SLURM_NNODES \
train.py# Configure shpc to look for private modules
shpc config inituser
shpc config set module_base "$HOME/shpc/modules"
shpc config set container_base "$HOME/shpc/containers"
# Configure LMOD to look for private modules
module use "$HOME/shpc/modules"
echo 'module use "$HOME/shpc/modules"' >> $HOME/.bashrcshpc show # list available recipes
shpc install rocm/pytorch # pull SIF, write modulefile
module avail # confirm it is visible
module load rocm/pytorchshpc add docker://<registry>/<image>:<tag>
# Edit the generated recipe at /mnt/modulestore/shpc/registry/...
shpc install <namespace>/<image>:<tag>
To get multi-node containerized applications, two major steps need to happen: 1. make sure host-network passthrough is enabled, and 2. make sure the proper drivers exist in the image.
Enabling host network passthrough is straightforward. When starting a Docker container, add --network host to the command. e.g.: docker run --network host rocm/pytorch:latest. When configuring Kubernetes, add hostNetwork: true to the pod spec. Here's an example of a pod with a host network configured:
Copy
apiVersion: v1
kind: Pod
metadata:
name: host-network-example
spec:
hostNetwork: true # <=== this enables host network
containers:
- name: pytorch
image: tensorwavehq/pytorch:latestIf you're using Apptainer or Pyxis on the TensorWave's Slurm platform, host-networks are configured by default. However, you may need to ensure the proper drivers are installed in your image. The sections below provide instructions for driver installation on our two platforms.
Note If you're using apptainer in Slurm, you can use TensorWave's provided container device interface (CDI) spec to mount the worker pod's network software into the host. See The CDI section below for details.
The MI355X nodes use AMD Polara NICs for the backend network. AMD provides their NIC software as a binary. To install it, add the upstream apt source and apt-install the appropriate software.
Below, we provide a sample Dockerfile that installs the AINIC drivers inside AMD's ROCM PyTorch image.
Copy the file to your local machine, and run docker build -f <dockerfiel> -t rocm-pytorch-ainic .. You could also add this section as a build stage in your own Dockerfile build pipeline. Add it to the top of your Docker file, and update the appropriate FROM <image> AS <build-stage> lines to fold it into the build pipeline
Tensorwave MI300X and MI325X clusters use Broadcom Ethernet cards for the backend network. These require building Broadcom's driver from source code.
The following Dockerfile builds the Broadcom drivers into AMD's ROCm PyTorch image. It can be used from a slurm-login node. Copy the file to your login environment and run docker build -f <dockerfile> -t rocm-pytorch-bnxt .. If you don't have access to TensorWave's Slurm platform and need the libbnxt_re tarfile, reach out to your cluster administrator.
Note: This feature is in beta.
If you are using TensorWave's Managed Slurm, we provide a /etc/cdi/tw.json file to mount the userspace InfiniBand software into an image. This has been validated to work with apptainer using images built off . To enable it, pass the appropriate --device option when launching an apptainer image.
Here's an example sbatch script running a pytorch RCCL benchmark. The --device value is either tw.amd.com/bnxt=bnxt or tw.amd.com/ainic=ainic depending on the cluster's NICs. There is also an example in the slurm login environment at /opt/tw/examples/libexec/rccl-torch-apptainer.sbatch.
Slurm's job-plugin interface provides a facility for cluster admins to intercept, modify, and/or deny users' resource requests. This feature enables functionality like ensuring jobs have comments for resource tracking, or setting a default 'timelimit' for interactive jobs. The plugin behaviour is specified in a Lua file (/mnt/customer/job_submit.lua) which provides a flexible and powerful interface enabling broad functionality.
For more background on Slurm's job plugin, see or the for details on the Lua integration.
The script must be placed in /mnt/customer/job_submit.lua, and return a module with functions for slurm_job_submit and slurm_job_modify. See the 'API' section for function specifications.
After modifying the job_submit.lua
TensorWave runs four layers of health checks to assure reliability. Passive checks are run continuously via a 5-minute 'heartbeat', as well as during job prolog + epilog. Active checks are scheduled every few days. Passive checks act as health gates: a failed check places the node in DRAIN state and it will not accept new jobs until the issue is resolved. Once the underlying problem is fixed, a passing check returns the node to service automatically. Nodes drained for reasons unrelated to health checks (for example, manual operator action) are not automatically resumed.
Healthcheck results are continuously logged, use sdebug info to read and summarize results for all checks across all nodes.
Passive checks are quick and non-invasive checks that validate hardware is properly configured and in a known-good state.
Passive checks run on every job start and end via Slurm prolog and epilog. They are fast, non-disruptive, and cover hardware and configuration state:
GPU presence, ECC error counts, and reset state
scontrol reconfigureslurmctldjob_submit.luajob_submit.luajob_submit.luajob_submit.lua/mnt/customer/job_submit_lua.logIf the job_submit.lua file is not found, or if the job_submit.lua file is missing functions, errors are reported in /mnt/customer/job_submit_lua.log.
The Lua script is run by the slurmctld on the controller pod. The shared-/home directory is not accessible from the slurm-controller. To generate persistent logs, write to /mnt/customer, see the log() function in the Example section below.
function slurm_job_submit(job_desc, part_list, submit_uid)
This function is called when a job is submitted. It can be triggered by salloc, sbatch, or srun.
Arguments:
job_desc : Requested job allocation
part_list : List of partitions the user is authorized to use
submit_uid : User ID of requesting user
return values
slurm.SUCCESS on success
slurm.ERROR for generic errors
slurm.ESLURM_* for specific errors (see slurm/slurm_errno.h)
function slurm_job_modify(job_desc, job_rec, part_list, uid)
This function is called when a job-modification request is made.
Arguments:
job_desc : Specification of requested modifications
job_ptr : Pointer to the job to be modified
part_list : List of partitions the user is authorized to use
modify_uid : User ID of requesting user
return values
slurm.SUCCESS on success
slurm.ERROR for generic errors
slurm.ESLURM_* for specific errors (see slurm/slurm_errno.h)
Here's a sample plugin to get up and running quickly. It enforces that all allocation requests have eight GPUs per node (i.e. --gpus-per-node=8).
We also provide a simple test-harness which is useful for development/debugging.
RDMA link status, GID tables, and InfiniBand device presence
Network interface state and recent link flap events
Filesystem mounts and system resource limits
Required daemons (SSSD, SSHD, LLDP)
Slurm's HealthCheckProgram runs a health check on every node at a fixed wall-clock interval, independent of job activity. Continuous checks run the full passive check suite plus an RDC health check, which verifies that the ROCm Data Center daemon and underlying GPU hardware are in a known-good state. A failure drains the node the same way a prolog failure does. Once the issue is resolved, a subsequent passing continuous check will automatically return the node to service.
Active checks are heavier per-node tests submitted as Slurm jobs by a cron process on the controller. They run on a schedule against idle nodes and do not require a user job to be present:
Single-node RCCL collective communication performance
Multi-node training convergence against a reference baseline
GPU stress, memory, and PCIe bandwidth and error tests
Multinode checks are initiated by an operator or user and do not produce a drain signal on their own. They are used for cluster validation and troubleshooting.
Available multinode checks include:
RCCL — collective communication tests across node pairs to identify nodes with degraded interconnect performance
IB perf — InfiniBand bandwidth tests between node pairs
sdebug is the CLI for running manual checks and reviewing persisted results from all check layers.
Manually run checks against a set of nodes:
Run a specific set of checks in an salloc instance:
Run the active suite in an sbatch:
sdebug info reads persisted results from disk and prints a summary across nodes, similar to sinfo. No allocation is required.
Filter by event type or hardware category:
Results are read from /mnt/twhc/ and cover all event types: prolog, epilog, scheduled, and healthcheck runs.
To drill into a specific node:
This shows the full health check history for that node across all event types, which is useful when investigating a drain or verifying a node after repair.
FROM rocm/pytorch:latest AS rocm-pytorch-ainic
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /tmp
ARG REPO_URL=https://repo.radeon.com
ARG DRIVERS_VERSION=1.117.5-a-56
RUN << EOR
set -eux
UBUNTU_CODENAME=$(awk -F= '/^UBUNTU_CODENAME=/{gsub(/"/,"",$2); print $2}' /etc/os-release)
mkdir --parents --mode=0755 /etc/apt/keyrings
wget ${REPO_URL}/rocm/rocm.gpg.key -O - | gpg --dearmor | tee /etc/apt/keyrings/rocm.gpg > /dev/null
echo "Types: deb" > /etc/apt/sources.list.d/amdainic.sources
echo "URIs: ${REPO_URL}/amdainic/pensando/ubuntu/${DRIVERS_VERSION}" >> /etc/apt/sources.list.d/amdainic.sources
echo "Suites: ${UBUNTU_CODENAME}" >> /etc/apt/sources.list.d/amdainic.sources
echo "Components: main" >> /etc/apt/sources.list.d/amdainic.sources
echo "Signed-By: /etc/apt/keyrings/rocm.gpg" >> /etc/apt/sources.list.d/amdainic.sources
apt-get update && apt-get install -y bc jq libibverbs-dev rdma-core ibverbs-utils libionic-dev libionic1 perftest libfmt-dev
EORCopy
FROM rocm/pytorch:latest AS rocm-pytorch-bnxt
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /tmp
ARG BNXT_VER=233.0.152.2
ARG BNXT_NAME=libbnxt_re-${BNXT_VER}
COPY /opt/tw/drivers/${BNXT_NAME}.tar.gz /tmp/bnxt-drivers/
RUN << EOR
set -eux
export
apt-get -qq update
apt-get -qq -y install --no-install-recommends \
autoconf automake bison build-essential ethtool g++ hwloc \
ibverbs-utils infiniband-diags initramfs-tools iproute2 \
iputils-ping kmod libibverbs-dev libibumad-dev libncurses5-dev \
librdmacm-dev libsysfs-dev libtool make net-tools pciutils \
plocate strace sudo vim wget
which dash &> /dev/null && (\
echo "dash dash/sh boolean false" | debconf-set-selections && \
dpkg-reconfigure dash) || \
echo "Skipping dash reconfigure (not applicable)"
ls /tmp/bnxt-drivers
tar -xzf /tmp/bnxt-drivers/${BNXT_NAME}.tar.gz -C /tmp/bnxt-drivers/
mv /usr/lib/x86_64-linux-gnu/libibverbs/libbnxt_re-rdmav34.so /usr/lib/x86_64-linux-gnu/libibverbs/libbnxt_re-rdmav34.so.hidden
cd /tmp/bnxt-drivers/${BNXT_NAME}/ && sh ./autogen.sh && ./configure
make -C /tmp/bnxt-drivers/${BNXT_NAME} clean all install
echo '/usr/local/lib' > /etc/ld.so.conf.d/libbnxt_re.conf
ldconfig
EOR#!/bin/bash
#SBATCH --job-name=torch_all_reduce_apptainer_cdi
#SBATCH --output=jid-%j.name-%x.log
#SBATCH --tasks-per-node=1
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=128
#SBATCH --nodes=4
if [[ -e "/opt/tw/drivers/libbnxt_re-233.0.152.2.tar.gz" ]]; then
CDI_DEVICE="tw.amd.com/bnxt=bnxt"
else
CDI_DEVICE="tw.amd.com/ainic=ainic"
fi
MASTER_ADDR=$(cat /etc/hostname)
srun apptainer exec \
--device $CDI_DEVICE \
--bind /opt/tw/examples/bin \
docker://rocm/pytorch:rocm7.2.2_ubuntu22.04_py3.10_pytorch_release_2.10.0 \
bash -s <<EOF
LOCAL_ADDR=\$(hostname)
REMOTE_ADDR=${MASTER_ADDR}
IS_HOST=0
if [ "\$LOCAL_ADDR" == "${MASTER_ADDR}" ];then
IS_HOST=1
REMOTE_ADDR=localhost
fi
/opt/venv/bin/python -u -m torch.distributed.run \
--nproc_per_node 8 \
--nnodes ${SLURM_NNODES} \
--rdzv_endpoint \${REMOTE_ADDR}:6000 \
--rdzv_backend c10d \
--max_restarts 0 \
--rdzv_id=1 \
--rdzv_conf=is_host=\$IS_HOST \
--local_addr "\${LOCAL_ADDR}" \
/opt/tw/examples/bin/rccl-bench.py --collective all_reduce
EOF--- Example job_submit.lua for TensorWave's Managed Slurm
--- Denies allocations that don't request `--gpus-per-node=8`
--- Place this file at /mnt/customer/job_submit.lua and run `scontrol reconfigure`
local function log(msg)
-- logging helper, reads global var for dest, can be overridden in test-harness
-- /home is not available in slurmctld context, need to log to /mnt/customer
local log_dest = (g_log_dest == nil) and "/mnt/customer/job_submit_lua.log" or g_log_dest
local file, err = io.open(log_dest, "a")
if not file then
slurm.log_error("Failed to open log file: "..tostring(err))
return
end
local timestamp = os.date("%Y-%m-%d %H:%M:%S")
prefix = string.format("[%s] ", timestamp)
file:write(prefix .. msg .. "\n")
file:close()
end
local function eight_gpu_per_node(job_desc)
-- Validates that --gpus-per-node=8
if not (job_desc["tres_per_node"] == "gres/gpu:8") then
return slurm.ESLURM_INVALID_GRES
end
return slurm.SUCCESS
end
local function check_job_desc(job_desc, uid)
local msg = string.format("uid: %d, job name: %s, tres_per_node: %s, gres: %s",
uid, job_desc['name'], job_desc['tres_per_node'], job_desc['gres'])
log("SKIP slurm_job_submit ".. msg)
return eight_gpu_per_node(job_desc)
end
function slurm_job_submit(job_desc, part_list, uid)
return check_job_desc(job_desc, uid)
end
function slurm_job_modify(job_desc, job_rec, part_list, uid)
return check_job_desc(job_desc, uid)
end
-- Export the slurm_job_modiyf/slurm_job_submit functions so the plugin can consume them
return { slurm_job_modify = slurm_job_modify, slurm_job_submit = slurm_job_submit }--- Test harness for the example job_submit.lua
--- Sets up a dummy Slurm-env, checks functions are exported properly
--- Ensures that only allocations with "gres/gpu:8" are allowed
-- Set globals to emulate the slurm environment
_G.slurm = {
log_error = print,
SUCCESS = "SUCCESS",
ERROR = "ERROR",
ESLURM_INVALID_GRES = "ESLURM_INVALID_GRES",
}
-- Log to local directory
_G.g_log_dest = "./job_submit_lua.test.log"
-- Load the job script to test
-- package.path = "/mnt/customer/job_submit.lua;" .. package.path
package.path = "./job_submit.lua;" .. package.path
local jsm = require("job_submit.lua")
assert(jsm.slurm_job_submit)
assert(jsm.slurm_job_modify)
assert(type(jsm.slurm_job_submit == 'function'))
assert(type(jsm.slurm_job_modify == 'function'))
tests = {
gpus_per_node_8 = {"gres/gpu:8", slurm.SUCCESS},
gpus_per_node_6 = {"gres/gpu:6" , slurm.ESLURM_INVALID_GRES},
no_gpu_req = {nil , slurm.ESLURM_INVALID_GRES},
}
for test_name, test_payload in pairs(tests) do
tg, expected = table.unpack(test_payload)
test_job_desc = {
name = "test-name",
tres_per_node = tg,
gres = tg,
}
ret = jsm.slurm_job_submit(test_job_desc, nil, 9002)
if ret == expected then
print(string.format("SUCCESS, gres: %s, returned: %s", tg, ret))
else
print(string.format("FAIL, gres: %s, returned: %s", tg, ret))
end
end# Run a shakedown across all nodes in a nodelist
sdebug run rccl --nodelist tus1-p14-g[1-64]sdebug run -N 2 --nodelist tus1-p14-g[1-2] passivesalloc -N 2 --gpus-per-node=8
sdebug run --testlist ecc,rdma-links,gpu-count#!/bin/bash
#SBATCH --job-name=my-job
#SBATCH --output=jid-%j.name-%x.log
#SBATCH --nodes=4
#SBATCH --gpus-per-node=8
# Validate node health
sdebug run passive
SDEBUG_ECODE=$?
if [[ "$SDEBUG_ECODE" != "0" ]]; then
echo "Node failed healthcheck!"
return $SDEBUG_ECODE
fi
srun pytorch train.py
sdebug infosdebug info prolog # prolog check results
sdebug info epilog # epilog check results
sdebug info gpu # GPU-related checks
sdebug info net # network-related checks
sdebug info scheduled # scheduled active check results
sdebug info timestamps # last check time per nodesdebug info -n tus1-p14-g36Jobs on your cluster are scheduled and run using the Slurm workload manager. Resources can be allocated through two main mechanisms:
Interactive (salloc): allocate resources and run commands directly, useful for development and debugging.
Batch (sbatch): submit a script that runs when resources become available, the standard approach for production workloads.
Within an allocation you can then use the srun command to execute job steps and further distribute work across your allocation.
For command reference, see the .
Before we submit jobs, it's useful to understand how we can inspect the state of the cluster and queue.
sinfo is the basic mechanism for inspecting the state of the resources available
squeue is how we can inspect the state of the queue. You can use the -u flag to check the status of your current running jobs.
Though there are some differences in how resources are specified with the salloc, sbatch, and srun commands, the common directives are generally the same.
This is not a comprehensive list of the available flags, please reference Slurm documentation for full man pages.
All jobs must request GPU resources explicitly. Reasonable defaults are established to subdivide CPU cores and memory based on the GPU allocation, but these can be overridden per job.
Within the following allocation methods, it is useful to understand how job steps work and how they can be used to maximize allocations.
By default, srun commands will inherit the entire resource allocation for all subcommands. This is useful for submitting monolithic jobs, but can be tuned to instead subdivide resources within an allocation for multiple tasks. Consider the following examples in ways srun can be used from within an allocation:
To launch an interactive allocation within Slurm, use the salloc command.
The salloc session holds the allocation open. When you exit the salloc shell, the allocation is released and the node becomes available to other jobs.
For an interactive shell directly on the worker pod, you can add the following srun:
To drop into an interactive shell inside a container, use apptainer shell with srun (don't forget the --pty flag):
This allocates a worker pod, pulls (or uses a cached) container image, and drops you into an interactive shell inside it with GPUs available. Use a local .sif file instead of a docker:// URI if you have already pulled the image. For more on building and running Apptainer images, including multi-node jobs and networking, see Containers and Modules.
Batch jobs are submitted with sbatch and run when the scheduler grants the allocation. Resource requests, environment setup, and the actual workload are all defined in the job script. Any #SBATCH directive in the script can also be overridden at submission time by passing the corresponding flag directly to sbatch.
Submit with:
View output once the job runs:
The pattern below works for PyTorch torch.distributed.run (torchrun) across multiple nodes. The first node allocated by Slurm acts as the rendezvous host.
Example scripts are available on the cluster under /opt/tw/examples/libexec/.
Though it's recommended that you use the above mechanisms for submitting work, you are able to access any node within your allocation via SSH for debugging purposes.
The cluster uses PMIx as the default MPI launch interface (MpiDefault=pmix). Open MPI and other PMIx-compatible MPI libraries work with srun without needing mpirun.
The following environment is set cluster-wide and applied automatically to all login and compute sessions:
Use srun directly. Slurm handles process launch and PMIx initialization:
We recommend using srun rather than mpirun or mpiexec, as it integrates directly with Slurm's process placement and PMIx initialization.
For GPU collective benchmarks and validation, RCCL tests are pre-installed on compute nodes. A minimal all-reduce test across 2 nodes:
For containerized jobs (Pyxis/Enroot, Apptainer) and environment modules, see Containers and Modules.
TensorWave Managed Slurm is a production Slurm cluster deployed on the same Kubernetes infrastructure as your other GPU workloads. TensorWave operates and supports the cluster; your teams continue to use the same commands they always have: sbatch, squeue, salloc, and srun. We manage the Slurm control plane, compute and login images, networking and storage integration, and upgrades, removing the need to run a separate Slurm fleet alongside your Kubernetes cluster.
Many organizations use Kubernetes for services, inference, CI, and other cloud-native workloads, and Slurm for large batch jobs, MPI, and distributed training. These are complementary scheduling models, not alternatives to each other.
The traditional approach requires operating them as two separate systems: independent node imaging pipelines, separate monitoring stacks, and custom integration between a Kubernetes fleet and a standalone Slurm deployment running on the same physical hardware.
Slurm on Kubernetes eliminates that separation. The Slurm cluster is deployed on the same Kubernetes cluster as your other workloads. Batch users continue to submit jobs through the standard Slurm interface. Kubernetes is not replacing Slurm for batch scheduling. It is the deployment and operations layer for the Slurm controller, login pods, and workers, using the same storage, secrets, and observability patterns applied to everything else on the cluster.
Batch and research users retain the Slurm interface they know. Platform teams retain Kubernetes for the workloads that belong there.
The Slurm cluster consists of five components, each running as a workload on Kubernetes:
Controller. Runs slurmctld, which handles job submissions, scheduling, and node state. Configuration is distributed to clients automatically so login and compute pods always share a consistent slurm.conf.
Login pods. The entry point for SSH sessions and interactive use. Users submit jobs, inspect the queue, and (where policy permits) connect to workers allocated to their jobs.
Worker pods. Run slurmd on GPU and CPU hardware. Each worker is a container with the devices and network fabric the job requires, including RDMA NICs, local scratch, and access to shared storage.
Operator. Reconciles a declarative cluster specification (Kubernetes custom resources) against the live state of the deployment. Changes to capacity, images, or partitions are applied by updating the specification; the operator handles the rest.
Storage. Shared filesystems (including /home for users and /mnt/* for system resources) are mounted on both login and worker pods so that paths are consistent at submission time and at runtime. Worker scratch storage is ephemeral and sized for container runtimes and job-local I/O.
From a user perspective, sinfo and scontrol report standard Slurm node names. Operationally, workers are pods, running with host networking and the privileged device access that GPUs and RDMA require.
You receive a fully operational Slurm on Kubernetes deployment without building or maintaining the integration yourself. TensorWave provides:
Compute and login images. Slurm 25.x, PMIx MPI, the GPU software stack, and (where enabled) Pyxis/Enroot and Apptainer, built and validated against your hardware profile.
Access. LDAP-backed SSH with optional per-user login pods, and documented procedures for worker access within your security policy.
Accounting. Job and resource usage records are stored via slurmdbd backed by a database. GPU usage is tracked per job, and associations, limits, and QOS policies are enabled.
If your team already uses Slurm, the job submission interface is unchanged:
Job submission: sbatch, srun, salloc
Cluster inspection: sinfo, squeue, scontrol
For standard Slurm behavior and command reference, the remains authoritative. The documentation here covers what is specific to your TensorWave deployment: access setup, storage layout, container support, health checks, and support scope.
A few characteristics of this architecture are worth understanding before you start:
Worker pods are containers. They are not long-lived OS instances. Local scratch is ephemeral and will not persist across pod restarts.
Privileged device access is required. GPU, RDMA, and most container runtime support on worker pods requires elevated privileges. This is standard for GPU workloads on Kubernetes and should be accounted for in your security review.
Network and topology configuration is site-specific. NIC selection, NCCL/RCCL tuning, and multi-node topology settings depend on your hardware. Your deployment guide contains the values for your cluster.
Hostnames, filesystem names, and cluster-specific configuration are documented in your deployment guide.
/home is a shared, persistent filesystem backed by a high-performance distributed storage system and mounted on every login pod and worker pod in the cluster. Files written to /home from a login pod are immediately visible on any worker pod running your jobs, and vice versa.
This makes /home the right place for:
Source code, scripts, and configuration files
Job output you need to keep after the job finishes
Data that needs to be accessible from multiple nodes at once
Your /home allocation is defined in your deployment. To check current usage:
Live storage data can also be viewed via the TensorWave dashboard. If you need more space or your quota adjusted, contact your TensorWave account manager. If /home runs out of space, things will start to break. See Common Issues for advice on managing /home.
It's possible to set per-user filesystem quotas using the weka CLI tool. This can be performed by a cluster administrator from a designated control node in the cluster.
To set a default quota for any new user's home directory, run:
Values can be specified as decimal or binary units (e.g. 1GB, 1TB, 1GiB, 1TiB). To modify a specific directory's quota, run:
To view existing quotas, run:
For more detailed documentation, see the .
For shared data that multiple users on the same team need to access, the recommended approach is a shared directory under /home with appropriate group permissions.
1. Create a shared directory:
2. Set group ownership:
3. Set permissions so group members can read and write:
The 2 (setgid) bit ensures new files and subdirectories inherit the group, so members do not need to manually chown files they create there.
4. Verify:
To create a globally available shared directory, use the user group. Groups are managed through LDAP. If you need a new group created or users added to an existing one, contact your cluster administrator.
Worker pods have several storage locations available during a job. Understanding which to use prevents both data loss and performance issues.
Each worker pod has a memory-backed /tmp. It is fast relative to a network filesystem and suitable for intermediate files your job produces and consumes within the same pod. It is not shared between pods and is not guaranteed to be empty at job start (though it is cleaned between jobs by policy). Do not write job outputs here that you need after the job finishes. Keep in mind that this space is carved out of the node's RAM, writing large amounts of data here can lead up pages being swapped to disk, leading to reduced performance of your job. The filesystem is cleared when the pod is replaced.
/run/tmp and /dev/shm are memory-backed filesystems (tmpfs) mounted on each worker. These are similar to /tmp, but with less space and are reserved for application use. /run/tmp is used internally by Pyxis/Enroot for container image staging (/run/tmp/enroot-data, /run/tmp/enroot-runtime). /dev/shm is used by PyTorch for inter-process communication.
General rule: Write outputs you need to keep to
/home. Use/tmpfor scratch that only lives for the duration of the job. Treat all pod-local paths as ephemeral.
The cluster supports several ways to run containerized workloads including Apptainer, Pyxis/Enroot, and Docker.
The recommended approach to run containers is Apptainer. Since it was designed for HPC/Slurm environments, it has several benefits and is significantly easier to use. It integrates cleanly with srun across multiple nodes, seamlessly uses the shared /home directory to cache images, and it runs containers as the submitting user (avoiding issues that Docker's privileged daemon introduces).
For software that does not require a container, see Modules for Lmod and SHPC. Python virtual environments (.venv) installed under /home are also a straightforward option, since /home is mounted consistently across login and compute pods.
Apptainer (formerly Singularity) runs containers as the submitting user. Images can be pulled directly from a Docker registry at runtime or pre-built as .sif
Custom scripts and manual drain procedures
Operator reconciliation integrated with Slurm drain and resume
Observability
Separate tooling from the rest of the cluster
Shared metrics and logging pipelines
/home and shared module paths mounted consistently across login and compute pods.Health checks. Automated prolog and epilog checks, scheduled checks for deeper validation, and additional tools for node diagnostics.
Observability. Slurm metrics (jobs, nodes, partitions, scheduler) are pushed to the TensorWave platform, where they are available in a Slurm dashboard. This covers job queue depth, node states, GPU utilization per job, and scheduler activity without any additional setup on your end.
Lifecycle management. Coordinated upgrades, partition configuration, and change communication so maintenance does not catch users off guard.
Common Issues
FAQ and patterns often used with Slurm
Compute
Separate machines or OS images outside Kubernetes
Slurm daemons running in a Kubernetes Pod on GPU nodes
Service workloads
Separate cluster
Same cluster, via Kubernetes
Node lifecycle
Bare-metal images and manual intervention
Workers as versioned container images, managed by the operator
Accessing the cluster
LDAP, SSH, login layout, worker access
Storage
Shared home, scratch, shared project space
Running Jobs
First sinfo / sbatch, validation jobs
Health and monitoring
Checks, drains, metrics, sdebug
Prolog and epilog
Custom hooks and customer scripts
Failure handling
--nodelist
Run on specific nodes
--nodes / -N
Number of nodes
--ntasks-per-node
Number of tasks (processes) per node
--gpus-per-node
GPUs per node
--cpus-per-task
CPU cores per task
--time
Wall-clock time limit (HH:MM:SS)
srunsallocsbatchFast local scratch; useful for caching large files
/run/tmp
Memory-backed
No
No
Fast local scratch; used by enroot for container-runtime
/dev/shm
Memory-backed
No
No
Fast local scratch; commonly used by pytorch for inter-process communication
/home/$USER
Distributed network FS
Yes
Yes
Durable and performant; use as primary storage
/tmp
Memory-backed
No
No
sinfosqueue -u $USER# Single node, single task.
srun -n 1 -N 1 --gpus-per-node=8 python task.py
# Two nodes, two running instances of a single task.
srun -n 2 -N 2 --gpus-per-node=8 python task.py
# Two nodes, two different tasks running in parallel.
srun -n 1 -N 1 --gpus-per-node=8 --exclusive python task1.py &
srun -n 1 -N 1 --gpus-per-node=8 --exclusive python task2.py &
wait# Allocate 1 node with 8 GPUs
salloc -N 1 --gpus-per-node=8salloc -N 1 --gpus-per-node=8 srun --interactive --pty bash -lsrun -N 1 --gpus-per-node=8 --pty \
apptainer shell docker://rocm/pytorch:rocm7.2.2_ubuntu24.04_py3.12_pytorch_release_2.10.0#!/bin/bash
#SBATCH --job-name=my-job
#SBATCH --output=jid-%j.name-%x.log
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=96
#SBATCH --gpus-per-node=8
#SBATCH --time=01:00:00
srun my-program <my-program-args>sbatch my-job.shtail -f jid-<jobid>.name-my-job.log#!/bin/bash
#SBATCH --job-name=ddp-training
#SBATCH --output=jid-%j.name-%x.log
#SBATCH --nodes=4
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=48
#SBATCH --gpus-per-node=8
#SBATCH --time=04:00:00
GPUS_PER_NODE=8
MASTER_ADDR=$(hostname)
MASTER_PORT=6000
srun bash <<EOF
LOCAL_ADDR=\$(hostname)
REMOTE_ADDR=${MASTER_ADDR}
IS_HOST=0
if [ "\$LOCAL_ADDR" == "${MASTER_ADDR}" ]; then
IS_HOST=1
REMOTE_ADDR=localhost
fi
export OMP_NUM_THREADS=8
python -u -m torch.distributed.run \
--nproc_per_node $GPUS_PER_NODE \
--nnodes $SLURM_NNODES \
--rdzv_endpoint \${REMOTE_ADDR}:${MASTER_PORT} \
--rdzv_backend c10d \
--rdzv_id=1 \
--rdzv_conf=is_host=\$IS_HOST \
--local_addr "\$(hostname)" \
train.py
EOF# Get a list of allocated nodes to your jobs.
squeue -u $USER -o "%i %R"
# SSH to the node
ssh <node>OMPI_MCA_btl_tcp_if_include=eno0,eno1 # Route TCP over front-end to avoid back-end contention
OMPI_MCA_btl=^openib # Disable legacy OpenIB transport
PMIX_MCA_gds=hash # Required PMIx GDS backend#!/bin/bash
#SBATCH --job-name=mpi-job
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=8
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=16
#SBATCH --time=01:00:00
srun ./my-mpi-program#!/bin/bash
#SBATCH --job-name=rccl-test
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=8
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=16
#SBATCH --time=00:05:00
export NCCL_IB_QPS_PER_CONNECTION=2
export NCCL_BUFFSIZE=8388608
export UCX_NET_DEVICES=eno0
srun /opt/rccl-tests/all_reduce_perf -b 512M -e 8G -f 2 -g 1df -h /home/$USERweka fs quota set-default /home [--soft soft] [--hard hard]weka fs quota set <path> [--soft soft] [--hard hard]weka fs quota list --allmkdir /home/shared/<project-name>chgrp <group-name> /home/shared/<project-name>chmod 2775 /home/shared/<project-name>ls -ld /home/shared/<project-name>Public images (such as rocm/ on Docker Hub) can be pulled without authentication. Private registries require logging in first:
You will be prompted for your password or access token. To supply credentials non-interactively:
Many cloud OCI registries use token-based authentication. In that case, pass the token as the password; a username is still required. Consult your provider's documentation for their specific login requirements. See the Apptainer registry login documentation for all options.
Credentials are stored under your home directory and apply to subsequent apptainer pull, apptainer exec, and apptainer shell calls that reference the registry. To remove stored credentials:
Pull an image from a Docker registry and save it as a local .sif file. Running from a login pod is fine for this step since it does not require a GPU allocation:
The resulting .sif file can be used in any subsequent apptainer exec or apptainer shell call and starts faster than pulling the docker:// URI at runtime. Store it on /home so it is accessible from compute pods.
You can also pass a docker:// URI directly without pulling first:
Note: Apptainer will passthrough-mount the
/home/$USERand/tmpdirectories. This can be disabled with--containor--no-homeflags.
For single-node jobs, Apptainer can pull the image at runtime:
For multi-node jobs, the container image must include the correct network software for the cluster's NICs. This can either be built into the image, or passed through using Apptainer's cdi interface. See Installing Network Software in Container images for details.
Pyxis is a SPANK plugin that integrates OCI container execution directly into srun via flags. It uses Enroot under the hood to manage squashfs-format images (.sqsh).
Images can be pulled from public repos using the --container-image flag.
The --container-name flag caches the image as a named Enroot container. Subsequent srun steps using the same name skip the pull and start much faster. Because the container is writable (--container-writable), any modifications made during one step are preserved across subsequent steps that reference the same named container. To persist the container to disk, the --container-save=PATH flag can be used, this saves the container state as a .sif file and can be reused in future jobs.
Example Pyxis scripts are available at /opt/tw/examples/libexec/*pyxis*.sbatch.
Under the hood, Pyxis uses Enroot as a containerization engine. Some operations (like pulling an image from a private repo) require using the enroot cli tool.
This will leave a *.sqsh file in your current working directory, which can be passed to --container-image in future Slurm jobs.
Warning: Docker on worker nodes runs as root via a privileged daemon. All Docker containers are re-parented and launched by the Docker-daemon's process tree, and this leads to several limitations.
Docker containers ignore Slurm's job-isolation. A job requesting 1 GPU will still have access to all 8. Slurm jobs that use Docker should either be allocated as
--exclusive, or launch jobs with appropriate resource-isolation flags.Docker containers aren't deleted during job cleanup. Since Docker containers run outside the slurmd's process tree, they won't receive
SIGTERM/SIGKILLsignals on job-end. Any Slurm jobs using Docker should have atrapfunction to stop and clean up any containers.It is highly recommended to use Apptainer or Pyxis instead of Docker.
Docker is available on worker nodes. You can use it to run containers, build images, or pull from a registry within a job allocation.
If you need to build a custom image during a job, allocate a node and run the build from there:
Docker images can be consumed directly by Apptainer without running the Docker daemon at all, using the docker:// URI:
This is the preferred pattern for job submission since it runs as the submitting user and integrates with Slurm resource accounting.
Launch a batch job
srun apptainer exec <img> <cmd>
srun --container-image=<img> <cmd>
srun docker run --rm <img> <cmd>
Get an interactive shell
srun --pty apptainer shell <img>
srun --pty --container-image=<img> bash
srun --pty docker run -it --rm <img> --entrypoint /bin/bash
apptainer registry login --username <username> docker://docker.ioecho '<token>' | apptainer registry login --username <username> --password-stdin docker://docker.ioapptainer registry logout docker://docker.ioapptainer pull rocm-pytorch.sif docker://rocm/pytorch:rocm7.2.2_ubuntu22.04_py3.10_pytorch_release_2.10.0srun -N 1 --gpus-per-node=8 --pty apptainer shell rocm-pytorch.sifsrun -N 1 --gpus-per-node=8 --pty \
apptainer shell docker://rocm/pytorch:rocm7.2.2_ubuntu22.04_py3.10_pytorch_release_2.10.0#!/bin/bash
#SBATCH --job-name=apptainer-job
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=48
#SBATCH --time=02:00:00
srun apptainer exec \
docker://rocm/pytorch:rocm7.2.2_ubuntu22.04_py3.10_pytorch_release_2.10.0 \
python train.py# Pull the image and stash it as a named container (run once per image per node)
srun \
--container-writable \
--container-name=my-pytorch \
--container-image=rocm/pytorch:latest \
true#!/bin/bash
#SBATCH --job-name=pyxis-job
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=8
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=16
#SBATCH --time=02:00:00
# Pull and cache on all nodes
srun \
--no-container-remap-root \
--container-writable \
--container-name=my-pytorch \
--container-image=rocm/pytorch:rocm7.2.2_ubuntu22.04_py3.10_pytorch_release_2.10.0 \
true
# Run the workload
srun \
--no-container-remap-root \
--container-name=my-pytorch \
/opt/rccl-tests/all_reduce_perf -b 512M -e 8G -f 2 -g 1# Login to Docker
echo "YOUR_PASSWORD_OR_TOKEN" | docker login -u YOUR_USERNAME --password-stdin
# Pull an image using with `dockerd://` (docker engine backend)
# Image unpacking needs to run in a privileged environment, it can't be done on a login node
srun enroot import dockerd://YOUR_REPO/YOUR_IMAGE:YOUR_TAGsrun -N 1 --gpus-per-node=8 --pty bash -l
# Inside the allocation:
docker run --rm --gpus all rocm/pytorch:rocm7.2.2_ubuntu22.04_py3.10_pytorch_release_2.10.0 \
python -c "import torch; print(torch.cuda.device_count())"srun -N 1 --pty bash
# Inside the allocation:
docker build -t my-org/my-image:latest -f Dockerfile .
docker push my-org/my-image:latestsrun apptainer exec docker://rocm/pytorch:rocm7.2.2_ubuntu22.04_py3.10_pytorch_release_2.10.0 \
python train.pyDownload an image to Disk
apptainer pull <dst>.sif docker://<img>
srun --container-image=<img> --container-save=<name>.sqsh true
(closest equivalent) docker pull <img>
Volume mount
--bind <src>[:<dst>]
--container-mounts=<src>:<dst>
-v <src>:<dst>
Slurm supports prolog and epilog scripts that run automatically on each worker pod at the start and end of every job. Prologs run upon allocation; epilogs run after the job completes or is cancelled.
Common uses include:
Verifying node health before a job starts
Cleaning up temporary files or resetting state after a job ends
Logging job metadata for monitoring or auditing
Enforcing site-specific policies around GPU, network, or filesystem state
Prolog and epilog scripts run as root on the worker pod, which gives them broad access but also means a failing or buggy script can affect the pod and any jobs running on it. Specifically, if a prolog or epilog script exits with a non-zero code, Slurm will place the node in DRAIN state, taking it out of service. Test scripts carefully before deploying them.
Prolog and epilog scripts also run in the critical path of every job on every allocated node, so a slow script degrades scheduling for the whole cluster. Read Best practices before writing one.
For full background on how Slurm handles prolog and epilog execution, see the .
TensorWave runs a set of managed prolog and epilog scripts on every job automatically. These handle node health checks (see Health Checks), GPU metrics collection for the dashboard, and dispatching your custom scripts. Your scripts always run after the built-in health checks.
Custom prolog and epilog scripts go in the following directories on the shared storage volume:
Scripts are executed in lexicographic order by filename. Use numeric prefixes to control ordering, and use leading zeroes if necessary to ensure accurate sorting:
Scripts must be executable (chmod +x). Non-executable files are skipped with a warning in the log.
Scripts must include a shebang on the first line (#!/usr/bin/env bash).
Scripts run as root. A non-zero exit code will drain the node.
Install it:
Install it:
Every prolog and epilog script runs on every allocated node, on every job, and the job cannot start (prolog) or release its nodes (epilog) until the scripts finish. Scripts in prolog.d/ and epilog.d/ are run serially in filename order, so their runtimes add up.
Two rules follow from that, taken directly from the :
Prolog and Epilog scripts should be designed to be as short as possible and should not call Slurm commands (e.g. squeue, scontrol, sacctmgr, etc). Long running scripts can cause scheduling problems when jobs take a long time to start or finish. Slurm commands in these scripts can potentially lead to performance issues and should not be used.
Do not run squeue, scontrol, sinfo, sacct, sacctmgr, sbatch, srun, salloc, scancel, or any other Slurm client command from a prolog or epilog script.
Each of those commands opens a connection to the Slurm controller (slurmctld) and asks it to do work. Because prologs and epilogs fire on every node of every job, a single Slurm command in a script is multiplied by nodes × jobs. A few hundred nodes cycling jobs is enough to saturate the controller's RPC threads, and the symptoms show up cluster-wide:
squeue, sinfo, and sbatch hang or time out for all users
Jobs sit in CF (CONFIGURING) or CG (COMPLETING) for minutes
Scheduling stalls even though nodes are idle
Use the environment instead. Slurm exports the job's details to the script, so almost everything you would query for is already available for free:
Avoid this:
Do this instead:
If you need something that genuinely is not in the environment, collect it outside the prolog/epilog path.
Target well under a second of runtime.
Bound every external call. Wrap anything that touches the network, a shared filesystem, or an external API in timeout, and give it a small limit:
No retry or polling loops. sleep-and-retry loops in a prolog turn a transient blip into a cluster-wide scheduling stall.
A non-zero exit drains the node, and a failing prolog also requeues the job. Only exit non-zero when the node is genuinely unfit to run work.
For best-effort steps such as logging, metrics, registration with an external system, swallow the failure explicitly so a transient error does not take a node out of service:
Keep output quiet as well. Script output is captured in the per-node log only on failure (see Viewing logs), so verbose success-path output is wasted work on every job.
Per-node prolog and epilog logs are written to:
Each entry includes a timestamp, script path, exit code, job ID, and user. Script output is only captured in the log when the script fails.
Viewing a node's prolog log:
Example output for a successful prolog:
Example output when an epilog script fails (output is included):
If a script fails and the node drains, check the log for the affected node first, then inspect node state with sinfo:
Once the issue is resolved, contact your cluster administrator to resume the node.
Scripts in
/mnt/customer/prolog.dand/mnt/customer/epilog.dare writable by administrators only (chmod 1700). Logs in/mnt/customer/logsare readable by all users.
Nodes drain because prolog/epilog scripts time out waiting on the controller
chown -R home directories, or write large files to shared storage. Scope cleanup to the job, for example:/mnt/customer/prolog.d/
Upon allocation, on every allocated node
/mnt/customer/epilog.d/
After each job completes, on every allocated node
/mnt/customer/prolog.d/
01-check.sh
10-check-something-else.sh
20-setup-environment.sh
99-final-step.sh#!/usr/bin/env bash
echo "Hello from job $SLURM_JOB_ID on node $SLURMD_NODENAME"sudo cp my-prolog.sh /mnt/customer/prolog.d/10-my-prolog.sh
sudo chmod +x /mnt/customer/prolog.d/10-my-prolog.sh#!/usr/bin/env bash
echo "Goodbye from job $SLURM_JOB_ID on node $SLURMD_NODENAME"
# Clean up any job-specific scratch
rm -rf /tmp/job-${SLURM_JOB_ID}sudo cp my-epilog.sh /mnt/customer/epilog.d/10-my-epilog.sh
sudo chmod +x /mnt/customer/epilog.d/10-my-epilog.shSLURM_JOB_ID
Job ID
SLURM_JOB_USER / SLURM_JOB_UID
Submitting user and UID
SLURM_JOB_ACCOUNT
Account the job is charged to
SLURM_JOB_PARTITION
Partition
SLURM_JOB_QOS
#!/usr/bin/env bash
# BAD: hits slurmctld on every node of every job
ACCOUNT=$(scontrol show job "$SLURM_JOB_ID" | grep -oP 'Account=\K\S+')
NODES=$(squeue -h -j "$SLURM_JOB_ID" -o %N)#!/usr/bin/env bash
# GOOD: same information, zero controller load
ACCOUNT="${SLURM_JOB_ACCOUNT}"
NODES="${SLURM_JOB_NODELIST}"timeout 5 /usr/bin/curl -sf https://internal.example/register || true#!/usr/bin/env bash
set -uo pipefail
# Best effort: never drain the node for a logging failure.
timeout 5 /usr/bin/logger -t my-prolog "job ${SLURM_JOB_ID} starting on ${SLURMD_NODENAME}" || true
exit 0/mnt/customer/logs/prolog/<node>.log
Output from all prolog scripts on that node
/mnt/customer/logs/epilog/<node>.log
Output from all epilog scripts on that node
cat /mnt/customer/logs/prolog/tus1-p2-g6.logtimestamp=2026-04-01T18:43:39Z script=/mnt/customer/prolog.d/10-my-prolog.sh exit_code=0 job_id=5995 job_user=user@example.comtimestamp=2026-04-01T18:43:42Z script=/mnt/customer/epilog.d/10-my-epilog.sh exit_code=1 job_id=5995 job_user=user@example.com
--- output ---
Goodbye from job 5995 on nodesinfo -n tus1-p2-g6QOS
SLURM_JOB_NODELIST / SLURM_JOB_NUM_NODES
Allocated nodes
SLURM_JOB_CPUS_PER_NODE
CPUs allocated per node
SLURM_JOB_GPUS / ROCR_VISIBLE_DEVICES
GPUs allocated to the job
SLURM_JOB_WORK_DIR
Job working directory
SLURMD_NODENAME
Node this script is running on
SLURM_SCRIPT_CONTEXT
Which script is running (prolog_slurmd, epilog_slurmd, …)
SLURM_JOB_EXIT_CODE / SLURM_JOB_DERIVED_EC
Job exit code (epilog only)
rm -rf /tmp/job-${SLURM_JOB_ID}TensorWave GPU clusters are designed around two complementary networking optimizations that directly affect multi-GPU workload performance.
Rail-optimized networking. Each GPU has a dedicated RDMA NIC, giving it an exclusive high-bandwidth path for collective communications. With 8 GPUs per node, there are 8 independent rails (rdma0-rdma7), one per GPU. This means RCCL ring and tree algorithms can saturate all available bandwidth simultaneously without GPUs competing for shared NIC resources.
Topology-aware scheduling. Nodes are organized into physical pods, each sharing a top-of-rack network fabric. Slurm's tree topology plugin uses a topology.conf that maps nodes to pods and pods to a spine, allowing the scheduler to preferentially allocate nodes within the same pod for a given job. For multi-node jobs, this reduces cross-switch hops and keeps the majority of collective traffic on the lower-latency intra-pod fabric.
RCCL (ROCm Collective Communications Library) tests are pre-installed on compute nodes at /opt/rccl-tests/. The all_reduce_perf benchmark measures collective communication bandwidth across GPUs and is useful for validating interconnect performance and identifying nodes with degraded network throughput. A sample sbatch job driving all_reduce_perf is provided at /opt/tw/examples/libexec/rccl.sbatch.
To submit a RCCL test job:
rccl.sbatch:
To run on more nodes, override the --nodes value at submission time:
Environment variables
See the for details on each setting; RCCL honors the same variables.
RCCL test arguments
A successful run completes without errors and shows increasing bus bandwidth as message size grows. Key fields in the output:
Results on an 4-node MI355X Cluster
algbw — algorithm bandwidth: message size divided by time. Reflects how quickly one collective operation completes.
busbw — bus bandwidth: algbw corrected for the number of ranks. Better reflects peak hardware utilization.
#wrong — should be 0
A healthy cluster shows busbw increasing steadily with message size and leveling off at a stable peak at larger sizes. Nodes with degraded interconnect will show lower busbw or fail to complete. Target busbw values will be dependent on your cluster architecture.
Beyond raw interconnect bandwidth, it's often useful to measure end-to-end training performance — throughput (tokens/sec), compute utilization (TFLOPS), and Model FLOPs Utilization (MFU). For this, TensorWave recommends the from AMD, which runs standardized model configs on the Megatron or TorchTitan backend and automatically generates a metrics summary table.
The tool runs inside the rocm/primus container on a single GPU node. It is interactive: after launching, it prompts you to choose a backend, auto-detects the GPU (MI300X / MI355X), and lets you select which model config(s) to run. Selected configs run sequentially, with logs and metrics written to the results/ directory.
Allocate a GPU node
From a login pod, allocate a node and find its Slurm node name:
SSH to the allocated worker pod
SSH to the worker pod by its node name:
Pull the Primus container
When all runs finish, the tool automatically generates a metrics table. Logs and the exact configs used are preserved for reproducibility under /workspace/Primus/tools/auto_benchmark/results/logs_<backend>/.
preflight is a fast, self-contained health check meant to be dropped into the top of a job to efficiently validate hardware health before your real workload starts. It runs the pre-installed PyTorch environment at /opt/venv and exercises three things in under a minute:
matmul — every GPU runs a bf16 GEMM; validates the result is finite and measures throughput (TFLOPs).
intra-node RCCL — an all_reduce within each node's local GPUs; measures intra-node bus bandwidth.
inter-node RCCL — an all_reduce across the full allocation; measures cross-node bus bandwidth. Only runs when launched across more than one node (see below).
Each measurement must clear two bars: a per-SKU absolute floor and a peer-relative check (no GPU/link may sit more than a configurable tolerance below the fleet median), which catches a single throttled GPU or degraded link regardless of hardware SKU. On any failure preflight exits non-zero, so a set -e job aborts before wasting the allocation.
The launcher lives at /opt/tw/examples/bin/preflight and a ready-to-copy job is provided at /opt/tw/examples/libexec/preflight.sbatch.
Add a single line near the top of your sbatch script, before your workload. Because the script uses set -e, a failed preflight stops the job before your workload runs:
You do not need to configure torchrun, master addresses, or GPU counts — the launcher detects the allocation from the SLURM environment and bootstraps torch.distributed.run for you.
Key rules:
Multi-node RCCL runs only under srun across >1 node. A bare preflight invocation (or a single-node allocation) stays single-node and never hangs waiting for peers that will not join.
Launch with --ntasks-per-node=1. The launcher itself spawns one worker per GPU on each node; you only need one launcher task per node.
Multi-node runs require full 8-GPU nodes.
Any arguments after the launcher are forwarded to the check. Useful flags:
Avg bus bandwidth — average busbw across all message sizes. Useful as a single summary figure for comparison.
Launch the container
Launch the interactive tool
Change into the auto-benchmark directory and launch the interactive tool:
Follow the on-screen prompts to select a backend, model config(s), and any parameter overrides. You will be asked for a HuggingFace token to pull model and tokenizer assets.
preflightsbatch /opt/tw/examples/libexec/rccl.sbatch#!/bin/bash
#SBATCH --job-name=rccl_tests
#SBATCH --output=jid-%j.name-%x.log
#SBATCH --ntasks-per-node=8
#SBATCH --cpus-per-task=16
#SBATCH --gpus-per-node=8
#SBATCH --time=01:00:00
#SBATCH --nodes=2
set -euxo pipefail
# NCCL_IB_GID_INDEX=X ; set to 1 if the backend networks is Pollara, 3 if Broadcom
# Use 2 queue pairs per connection between ranks
export NCCL_IB_QPS_PER_CONNECTION=2
# Configure RoCE traffic class
export NCCL_IB_TC=106
export NCCL_IB_FIFO_TC=192
# Tolerate transient network stalls; recommended for large networks
export NCCL_IB_TIMEOUT=22
# Double buffer size for NCCL communications
export NCCL_BUFFSIZE=8388608
# Send control messages over the frontend network
export UCX_NET_DEVICES=eno0
srun /opt/rccl-tests/all_reduce_perf -b 512M -e 4G -f 2 -g 1sbatch --nodes <nnodes> /opt/tw/examples/libexec/rccl.sbatchNCCL_IB_GID_INDEX
1 or 3
Specifies which GID index RCCL should use, values are dependent on the backend NIC of your cluster. 1 for Pollara NICs, 3 for Broadcom.
NCCL_IB_QPS_PER_CONNECTION
2
Increases queue pairs per connection, improving routing entropy and throughput.
NCCL_BUFFSIZE
8388608
Sets the RCCL communication buffer to 8 MB. Larger buffers can improve performance at high message sizes.
-b
512M
Minimum message size
-e
8G
Maximum message size
-f
2
Step factor (doubles each step: 512M, 1G, 2G, ..., 8G)
# size count type redop root time algbw busbw #wrong time algbw busbw #wrong
# (B) (elements) (us) (GB/s) (GB/s) (us) (GB/s) (GB/s)
536870912 134217728 float sum -1 2945.0 182.30 353.20 0 2947.0 182.17 352.96 0
1073741824 268435456 float sum -1 5452.6 196.92 381.54 0 5446.2 197.16 381.99 0
2147483648 536870912 float sum -1 10806 198.72 385.03 0 10817 198.52 384.63 0
4294967296 1073741824 float sum -1 21843 196.63 380.97 0 21846 196.60 380.91 0
# Errors with asterisks indicate errors that have exceeded the maximum threshold.
# Out of bounds values : 0 OK
# Avg bus bandwidth : 374.161
#
# Collective test concluded: all_reduce_perfsalloc -N 1 --gpus-per-node=8
squeue -u $USERssh <node-name>
# example:
ssh tus1-p1-g1docker pull rocm/primus:v26.5TPS
✓
✓
Tokens processed per second.
TFLOPS
✓
✓
Achieved compute throughput.
#!/bin/bash
#SBATCH --nodes=2
#SBATCH --gpus-per-node=8
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=48
set -euo pipefail
# Preflight: validates GPUs + RCCL across the whole allocation, then exits.
srun --ntasks-per-node=1 /opt/tw/examples/bin/preflight
# --- your real workload runs only if preflight passed -----------------------
srun ... my_training_job/opt/tw/examples/bin/preflight (bare, in the batch script)
the single node the batch script runs on
matmul + intra
srun --ntasks-per-node=1 /opt/tw/examples/bin/preflight (1-node alloc)
1
matmul + intra
srun --ntasks-per-node=1 /opt/tw/examples/bin/preflight (N-node alloc)
all N
matmul + intra + inter
--warn-only
Report failures but always exit 0 (does not abort the job). Does not bypass the 8-GPU-per-node topology requirement.
--json
Emit a machine-readable JSON summary instead of the human tables.
--skip-matmul / --skip-intra / --skip-inter
Skip a phase.
--matmul-size / --matmul-iters / --coll-bytes / --coll-iters
Override workload sizing.
--min-tflops / --min-intra-busbw / --min-inter-busbw / --outlier-tol
Override thresholds at runtime.
UCX_NET_DEVICES
eno0
Directs UCX control traffic over Ethernet, leaving the back-end dedicated to RCCL data traffic.
NCCL_IB_TC
106
Sets the network traffic class for RCCL data so it lands in the fabric's lossless queue.
NCCL_IB_FIFO_TC
192
Sets a higher-priority traffic class for RCCL's small control messages so they aren't delayed behind bulk data.
NCCL_IB_TIMEOUT
22
Increases how long RCCL waits for the network to recover before failing the job (roughly 2 minutes including retries). Prevents brief stalls or link flaps from killing large jobs; recommended for large clusters.
-g
1
GPUs per process
MFU
—
✓
Model FLOPs Utilization — achieved vs. theoretical peak.
Memory (%)
✓
✓
Peak GPU memory utilization.
Time (ms)
✓
—
Per-step elapsed time.
docker run -it \
--gpus all \
--network host \
--ipc host \
-v $HOME/.ssh:/root/.ssh \
--name primus \
rocm/primus:v26.5cd /workspace/Primus/tools/auto_benchmark/
bash run_primus_autobenchmark.sh