Skip to content

Server Rack View

github-actions[bot] edited this page Nov 30, 2026 · 5 revisions

Server Rack View

When an 8-rank or 64-rank MPI job stalls, you need to see at a glance which ranks are still running, which stopped at a breakpoint, and which are stuck in a deadlock without switching between terminals one by one. The Server Rack panel (in the right-hand dock alongside Variables, Call Stack, Registers, and Watch) displays every MPI rank as a compact blade card showing its status badge and live instruction address.

Server Rack View populated with 8 MPI ranks across execution states


Triage a Stalled Multi-Rank Run

What you will do: Spot stalled or deadlocked ranks across the cluster and focus one to inspect its state.

  1. Pause execution (F6 or Debug -> Pause All Ranks) if some ranks are still spinning while others are blocked.
  2. Open the Server Rack tab in the right-hand dock.
  3. Scan the color-coded badge on the top-right of each rank card:
    • Green RUN cards are still executing.
    • Amber BRK cards are paused at a breakpoint or manual halt.
    • Crimson DLOCK or DIV cards are flagged in a circular wait cycle or collective mismatch.
  4. Click any rank card (or move between cards with the Arrow, Home, and End keys) to make it the active rank.

What to look for: The selected card highlights with a 2 px accent border, and every inspector panel synchronizes immediately to that rank:

  • Source Editor scrolls to the rank's active line and refreshes inline variable values.
  • Disassembly & Control Flow Graph jumps to the rank's 0x... instruction address and highlights all peer rank locations across the graph.
  • Variables, Call Stack, Registers, and Memory switch to the selected rank's frame and address space.

Filter Large Rank Counts

When debugging dozens of ranks, use the filter strip along the top of the Server Rack panel to hide healthy ranks and focus only on outliers:

  1. Click Deadlock to show only deadlocked (DLOCK) and diverged (DIV) ranks.
  2. Click Stopped to view only paused or breakpoint-stopped (BRK) ranks.
  3. Click Running to isolate ranks that are still actively executing (RUN).
  4. Click All to restore the full RANK 0 .. RANK N-1 grid.

Dynamic Execution Rank Sub-Groups

Use the Execution Scope dropdown on the main debugger toolbar to target Continue, Pause, Step Over, Step Into, and Step Out at a dynamic subset of ranks while filtering the Server Rack grid simultaneously:

  • All Ranks / Rank k: Broadcast to every active rank or focus only the currently selected rank.
  • Root (Rank 0) / Workers (1..N-1): Step Rank 0 independently from worker ranks during master/worker debugging.
  • Stopped / Diverged: Target only paused ranks or ranks whose program counter/state has diverged from the cluster majority.
  • Custom Subset...: Enter an arbitrary comma-and-range list such as 0, 2-5, 7 to control and view only those ranks.

Use Per-Rank Context Actions

Right-click any rank card to act directly on that process:

  1. Choose Focus Rank N (<BADGE>) to switch the active debugger focus to that rank.
  2. If you have native plugins installed that target the rank list, open the Plugin Actions submenu to run custom per-rank diagnostics directly against the clicked rank.
  3. Once a rank is focused, toolbar controls (Continue, Step Over, Step Into, Pause), Memory (Diff Ranks), Array & Field Plotter (Ctrl+Alt+G), and Pointer Graph operate directly on that rank.

Server Rack View filtered to deadlocked and diverged ranks with per-rank context menu


How Rank Updates Flow Through the Workspace

flowchart LR
    Session["MPI Debug Session (Ranks 0..N-1)"] -->|"Per-rank state & PC"| Rack["Server Rack Panel"]
    Filter["Filter Bar (All / Deadlock / Stopped / Running)"] --> Rack
    Rack -->|"All rank PCs"| Disasm["Disassembly & CFG Badges"]
    Rack -->|"Select rank card"| Focus["Active Rank Focus"]
    Focus --> Source["Source Editor & Inline Values"]
    Focus --> Vars["Variables & Call Stack Panels"]
    Focus --> LowLevel["Registers & Memory Panels"]
Loading

Reference

Rank Card Anatomy

Each 116 x 34 px card displays:

  • Top-left (RANK N): Zero-based MPI rank index.
  • Top-right (Status Pill): Current execution state badge (table below).
  • Bottom row (0x...): Current 64-bit instruction pointer (RIP) when active, cleared automatically when idle or exited.

Execution State Badges

State Badge Color Meaning
Running RUN #2ecc71 (Green) Rank is actively executing instructions.
Stopped / Paused BRK #f1c40f (Amber) Rank is paused at a breakpoint, signal, or manual pause.
Deadlocked DLOCK #f44747 (Crimson) Rank participates in a circular MPI wait-for cycle.
Diverged DIV #f44747 (Crimson) Rank diverged onto a different collective or control-flow path.
Exited EXIT #64748b (Slate) Rank has finished (MPI_Finalize or process exit).
Idle IDLE #7f8c8d (Gray) Configured rank slot before launch.

Clone this wiki locally