Skip to content

GPU Computing on Juno

Overview

Juno provides several GPU partitions suited to different workloads, from interactive prototyping to large-scale distributed AI training. This section covers how to set up a GPU environment, select the right partition, and run jobs efficiently.


GPU Partitions

Partition Nodes GPUs / Node GPU Model VRAM / GPU Time Limit Best For
a30 4 2 NVIDIA A30 24 GB 2 days Medium GPU workloads, inference, development
h100 3 4 / 2 / 1 NVIDIA H100 (80 GB HBM3) / H100 NVL (94 GB) 80 / 94 GB 2 days Large models, high-throughput / multi-GPU training
h200 26 2 NVIDIA H200 NVL 141 GB 2 days Very large models, distributed AI training

The h100 partition has one 4× H100 (80 GB) node, one 2× H100 NVL (94 GB) node, and one 1× H100 NVL (94 GB) node.

H200 Nodes

Juno has 26 H200 nodes (52 GPUs total). The NVIDIA H200 NVL carries 141 GB of HBM3e memory — nearly double the H100 — making it ideal for training and serving large language models that don't fit on older GPUs. These are NVL cards with no NVLink between GPUs: GPUs attach via PCIe Gen 5.0, and nodes are connected by 400 Gb InfiniBand for distributed training.

Submit large-GPU work to the h200 partition. For jobs that fit within 80 GB of VRAM, the h100 partition remains a good choice.


Setting Up a GPU Environment

The recommended approach on Juno is to create a Conda environment with the GPU libraries you need.

1. Load the necessary modules

module purge
module load gnu14
module load miniconda
module load cuda/12.6

Note

Use cuda/12.6 for H100 and H200 nodes. Use cuda/12.4 for A30 nodes. Check compatibility with nvcc --version after loading.

2. Create a Conda environment

conda create -n gpu-env python=3.11 -y
conda activate gpu-env

3. Install PyTorch with CUDA support

# PyTorch with CUDA 12.6
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

Check that PyTorch sees the GPU after loading your environment on a compute node:

python -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.get_device_name(0))"

4. Install other GPU libraries

# CuPy — GPU-accelerated NumPy-compatible arrays
pip install cupy-cuda12x

# Numba — JIT compilation for GPU kernels
pip install numba

# vLLM — high-throughput LLM inference
pip install vllm

See the Miniconda Guide for more on managing Conda environments on Juno.


Checking GPU Availability Before Submitting

# See GPU partition status
sinfo -p h200,h100,a30

# Detailed view of a specific GPU node
scontrol show node g-05-01

Key fields to look for in scontrol show node:

  • Gres — which GPUs are present and their count
  • AllocTRES vs CfgTRES — how many GPUs are currently allocated vs. available
  • State — MIXED means some GPUs are free
# See how many GPUs are free on each node
sinfo -p h100 -o "%.10N %.8t %.10G"

Quick Sanity Check Job

Before submitting a long training run, verify your environment works with a short test job:

#!/bin/bash
#SBATCH -J gpu-test
#SBATCH -o gpu_test_%j.out
#SBATCH -p h100
#SBATCH -N 1
#SBATCH --gres=gpu:1
#SBATCH --cpus-per-task=4
#SBATCH --mem=16GB
#SBATCH -t 0:05:00

module purge
module load gnu14
module load miniconda
module load cuda/12.6

conda activate gpu-env

python - <<'EOF'
import torch
print(f"PyTorch version: {torch.__version__}")
print(f"CUDA available: {torch.cuda.is_available()}")
print(f"GPU count: {torch.cuda.device_count()}")
for i in range(torch.cuda.device_count()):
    props = torch.cuda.get_device_properties(i)
    print(f"  GPU {i}: {props.name} — {props.total_memory / 1e9:.1f} GB")

# Quick compute test
x = torch.randn(4096, 4096, device='cuda')
y = x @ x.T
print(f"Matrix multiply OK — result shape: {y.shape}")
EOF

What's in This Section