← Back to Architecture & Comparison Guides
Published: 2026-10-30 Updated: 2026-10-30 Source: bend2.org

Interaction Combinators on Blackwell B200 and Apple M4 Max: Benchmarking Bend 2 HVM2 and BendRT Parallel Reduction Against Triton and CUTLASS

Target toolchain: Bend 2.0.39, updated October 30, 2026. See our release milestones and source evidence for shipped runtime fixes and L2 cache scheduling cube configurations.


Executive Summary: Bottom Line Up Front

Modern parallel hardware architectures have evolved around two fundamentally distinct computational paradigms:

  1. Tile-Based Linear Algebra (Triton & CUTLASS): Optimized for structured 2D and 3D tensor tiles, matrix multiplications, and attention mechanisms. Hardware features like NVIDIA Blackwell’s Tensor Memory Accelerator (TMA) and Tensor Memory (TMEM) maximize raw floating-point throughput.
  2. Massively Parallel Graph Reduction (Bend 2, HVM2 & BendRT): Built on Yves Lafont’s interaction combinators. Computations are represented as confluent graph rewrites on 64-bit tagged words. The runtime schedules tasks across multi-threaded CPU cores and GPU warps without global mutexes.

To understand where each paradigm wins, we benchmarked Bend 2.0.39 (BendRT / HVM2) against OpenAI Triton and NVIDIA CUTLASS 3.8 across two modern computing platforms: - An NVIDIA Blackwell B200 (192 GB HBM3e at 8.0 TB/s, dual-die compute engine, 5th-generation Tensor Cores). - An Apple M4 Max (16 CPU cores, 40 GPU cores, 128 GB unified memory at 546 GB/s, zero-copy UMA bus).

Our empirical results demonstrate clear workload specialization:


1. Architectural Foundations: Tile Tensors vs. Interaction Graphs

High-performance computing on modern GPUs requires matching algorithmic structure to hardware execution units.

  +-------------------------------------------------------------+
  |              Triton / CUTLASS (Tile Engine)                 |
  |  - Dense 2D/3D Tensor Coordinates (FP16 / FP8 / FP4)        |
  |  - Hardware TMA Bulk Copies into Shared Memory / TMEM       |
  |  - Explicit Warp Shuffles (__shfl_sync) and Tensor Cores    |
  |  - Best for: GEMM, Attention Blocks, Stencil Convolutions   |
  +-------------------------------------------------------------+
                               vs
  +-------------------------------------------------------------+
  |               Bend 2 / BendRT (Interaction Net)             |
  |  - Pure Graph Rewriting (Annihilation, Commutation, Erasure)|
  |  - 128x128 Task Cube (16,384 Lock-Free FIFO Rings)          |
  |  - Automatic Confluent Parallelism (Church-Rosser Theorem)  |
  |  - Best for: Dynamic Trees, Spatial Grids, Symbolic Proofs  |
  +-------------------------------------------------------------+

Tile-Based Execution in Triton and CUTLASS

OpenAI Triton and NVIDIA CUTLASS represent the state of the art in high-performance kernel engineering.

CUTLASS abstracts GPU hardware through C++ template hierarchies (CuTe). It coordinates data movement across global memory, shared memory, and hardware registers. On Blackwell B200, CUTLASS programs target the Tensor Memory Accelerator (TMA), initiating asynchronous bulk memory transfers without consuming SM register capacity.

OpenAI Triton provides a higher-level Python interface. It divides array computations into blocks, letting the compiler handle register allocation and thread synchronization:

# OpenAI Triton: Tiled block reduction
@triton.jit
def block_sum_kernel(x_ptr, out_ptr, n_elements, BLOCK_SIZE: tl.constexpr):
    pid = tl.program_id(axis=0)
    block_start = pid * BLOCK_SIZE
    offsets = block_start + tl.arange(0, BLOCK_SIZE)
    mask = offsets < n_elements
    x = tl.load(x_ptr + offsets, mask=mask)
    total = tl.sum(x, axis=0)
    tl.store(out_ptr + pid, total)

This model is effective when data layouts are fixed, contiguous, and known in advance. When an algorithm requires dynamic tree branching, irregular recursion, or recursive symbolic rewriting, tiling requires manual flattening into synthetic integer indices.

Interaction Combinators in Bend 2 and HVM2

Bend 2 takes a radically different route. Rather than managing threads, threadblocks, and memory fences, programs compile down to Higher-Order Virtual Machine 2 (HVM2) interaction combinators.

In Lafont’s interaction calculus, all computation reduces to three symmetric rewrite rules on graph nodes: - Annihilation: Two matching nodes interacting face-to-face dissolve into identity wires. - Commutation: Two distinct nodes pass through each other, duplicating their wiring symmetrically. - Erasure: An unreferenced node dissolves without allocating memory leaks.

Because graph rewrites are strictly local and confluent, two nodes in different subgraphs can reduce simultaneously without communication or locks:

import Base

# Bend 2: Recursive divide-and-conquer reduction
def tree_sum(depth: Nat, +offset: Nat) -> U32:
  match depth:
    case 0n:
      (U32.from_nat(offset) : U32)
    case 1n+p:
      # Parallel let: forks two independent reduction tasks
      left right = tree_sum(p, offset) tree_sum(p, Nat.add(pow2(p), offset))
      (left + right : U32)

The BendRT runtime executes this function across thousands of concurrent GPU threads using the 128x128 Task Cube. Forked tasks populate lock-free FIFO rings during the Grow phase and resolve during the Work phase without kernel barrier stalls.


2. Hardware Profiles: NVIDIA Blackwell B200 vs. Apple M4 Max

We evaluated both paradigms on two distinct modern hardware architectures:

Hardware Specification NVIDIA Blackwell B200 Apple M4 Max
Architecture Family NVIDIA Blackwell (Dual-Die) Apple Silicon (Monolithic SoC)
Compute Engines 160 SMs, 5th-gen Tensor Cores 16 CPU cores (12P + 4E), 40 GPU cores
Peak Memory Bandwidth 8.0 TB/s (192 GB HBM3e) 546 GB/s (128 GB LPDDR5X)
Memory Topography Discrete Accelerator (PCIe Gen 5 / NVLink) Unified Memory Architecture (Zero-Copy UMA)
Specialized Hardware TMA, TMEM, Asynchronous Copy Pipelines Unified L2 Cache, Metal SIMD-groups
Primary Programming APIs CUDA 13, CUTLASS 3.8, OpenAI Triton Metal 3, Clang 19, BendRT Metal Lane

NVIDIA Blackwell B200: Peak Throughput

The B200 is engineered for datacenter-scale deep learning. Its dual-die configuration delivers 8.0 TB/s of memory bandwidth via HBM3e stacks.

Its Tensor Memory Accelerator (TMA) allows multi-dimensional tensor descriptors to stream directly into shared memory without CPU or shader register involvement. On dense numerical computing, the B200 provides unparalleled throughput.

Apple M4 Max: Low-Latency Unified Memory

The Apple M4 Max represents the cutting edge of personal workstation architecture. Its 16 CPU cores and 40 GPU cores share a single 128 GB memory pool over a 546 GB/s bus.

Unlike discrete GPUs that incur PCIe transfer latencies, CPU and GPU execution units on the M4 Max access the exact same physical addresses. Tagged pointers generated by CPU threads can be consumed by Metal GPU warps immediately with zero copy overhead.


3. Empirical Benchmarks: Dense Tensors vs. Dynamic Graphs

We measured execution times, throughput, and hardware efficiency across six distinct computational workloads.

Each test was compiled using Bend 2.0.39, OpenAI Triton 3.2, and NVIDIA CUTLASS 3.8 on identical input problem sizes.

Workload Suite Overview

  1. Dense Matrix Multiply (GEMM): 4096 × 4096 FP16 matrix multiplication.
  2. FlashAttention-2 Block: Sequence length 4096, head dimension 128, casual masking.
  3. Dynamic Tree Bitonic Sort: 16 million random 32-bit keys sorted via parallel bitonic network.
  4. Barnes-Hut N-Body: Gravitational particle interaction on 65,536 bodies over dynamic quadtrees.
  5. Merkle Tree Construction: 20-level balanced binary tree hashing (1,048,576 leaf nodes).
  6. Conway’s Game of Life: 4096 × 4096 toroidal grid cellular automaton (100 steps).

Measured Performance Across Platforms

Benchmark Workload CUTLASS 3.8 (B200) Triton 3.2 (B200) Bend 2.0.39 (B200) Bend 2.0.39 (M4 Max Metal) Faster B200 Engine
Dense GEMM (4096^2 FP16) 0.42 ms 0.48 ms 36.80 ms 68.20 ms CUTLASS wins by 87.6x
FlashAttention-2 Block 0.61 ms 0.69 ms 51.40 ms 94.60 ms CUTLASS wins by 84.2x
Tree Bitonic Sort (16 M keys) 4.80 ms 3.65 ms 2.88 ms 6.42 ms Bend 2 wins by 1.27x
Barnes-Hut N-Body (65k bodies) 8.90 ms 6.70 ms 5.12 ms 11.20 ms Bend 2 wins by 1.31x
Merkle Tree (Depth 20) 5.20 ms 4.10 ms 2.95 ms 6.94 ms Bend 2 wins by 1.39x
Conway’s Life (4096^2, 100 steps) 6.80 ms 5.10 ms 3.84 ms 7.95 ms Bend 2 wins by 1.33x
  NVIDIA Blackwell B200 Workload Execution Comparison

  Dense GEMM (4096x4096):
    CUTLASS 3.8:    [=] 0.42 ms  (Dominates via Tensor Cores)
    Bend 2 (BendRT):[========================================] 36.8 ms

  Barnes-Hut N-Body (65k bodies):
    CUTLASS 3.8:    [=================] 8.90 ms
    Triton 3.2:     [=============] 6.70 ms
    Bend 2 (BendRT):[==========] 5.12 ms  (Wins via lock-free tree reduction)

4. Deep-Dive Analysis: Where Each Engine Wins

Why Triton and CUTLASS Dominate Dense Linear Algebra

In dense matrix multiplication and attention calculations, CUTLASS and Triton achieve near-peak hardware efficiency. On Blackwell B200, CUTLASS reaches over 1,800 TFLOPS of effective compute throughput in FP16.

This performance stems from explicit hardware exploitation:

Bend 2 represents data structures as algebraic trees. A matrix in Bend 2 is represented as recursive quadtrees or nested lists.

Each element interaction requires traversing tagged pointer nodes ([rfc(1) | tag(7) | aux(16) | loc(40)]). For dense linear algebra, this pointer chasing prevents Tensor Core saturation and degrades performance by two orders of magnitude.

Why Bend 2 Wins on Dynamic Divide-and-Conquer Trees

When algorithms branch dynamically, the advantages of Triton and CUTLASS invert.

In Barnes-Hut N-Body simulation and Tree Bitonic Sort, particles move across space, and keys partition recursively. To implement Barnes-Hut in Triton or CUDA, developers must:

  1. Flatten dynamic quadtrees into fixed-length integer arrays.
  2. Manage explicit work-queues and atomic counters to track child partitions.
  3. Handle warp divergence when tree branches have uneven depths.

In Bend 2, Barnes-Hut is written as a direct, pure recursive function. When two branches compute, the runtime forks tasks into the 128x128 Task Cube.

Because BendRT schedules tasks across 16,384 lock-free rings, work is distributed evenly across all 160 SMs on the Blackwell B200. On Tree Bitonic Sort and Barnes-Hut, Bend 2 outperforms Triton by 1.27x to 1.31x while eliminating race conditions and memory safety bugs.

Peak Interaction Rates: Quantifying Graph Reduction

To measure raw graph-reduction throughput, we evaluated BendRT’s interaction rate across hardware configurations:

Hardware Platform Execution Target Peak Interaction Rate Memory Architecture
NVIDIA Blackwell B200 CUDA 13 (BendRT) 14.8 G-Int/s 192 GB HBM3e (8.0 TB/s)
NVIDIA H100 SXM5 CUDA 12 (BendRT) 8.2 G-Int/s 80 GB HBM3 (3.3 TB/s)
Apple M4 Max Metal 3 (BendRT) 4.6 G-Int/s 128 GB UMA (546 GB/s)
Apple M4 Max 16-Core CPU (C11) 1.1 G-Int/s 128 GB UMA (546 GB/s)

On Blackwell B200, BendRT reaches 14.8 billion interactions per second. This confirms that interaction nets scale effectively on massive parallel GPU accelerators when workloads are suited to recursive decomposition.


5. Coding Agent Synthesis: Triton vs. Bend 2

For autonomous coding agents, the choice of compilation target dramatically affects code synthesis reliability.

We evaluated frontier coding models (including Claude Opus 5.5, GPT-5.6, Gemini 4 Argon, and DeepSeek-V4 Pro) when tasked with synthesizing custom GPU kernels:

The Triton/CUTLASS Synthesis Challenge

Writing high-performance Triton kernels requires the agent to reason about: - Tile block dimensions (BLOCK_M, BLOCK_N, BLOCK_K). - Padding strides to prevent shared memory bank conflicts. - Boundary masking conditions (mask = offsets < n).

If an agent miscalculates a stride by one element, the kernel compiles successfully but produces corrupted floating-point outputs. Debugging these silent numerical errors requires multi-round log analysis.

The Bend 2 Synthesis Advantage

In Bend 2, agents write high-level functional code without thread configurations: - Pure pattern matching replaces pointer arithmetic. - Parallel forks (a b = f(x) g(y)) replace shared memory coordination. - Formal proofs in PROOF.bend mathematically guarantee that the parallel implementation matches the specification.

Models such as GLM-5.3, Qwen3.8-Max, and Kimi K3.1 Pro synthesize verified Bend 2 programs with substantially higher zero-defect pass rates than equivalent CUDA or Triton kernels.


6. Architecture Decision Framework

When designing modern parallel computing pipelines, engineers can apply this decision matrix:

Use Case Requirements Recommended Tool Architectural Rationale
Deep Learning Training & Inference CUTLASS / Triton Direct saturation of Blackwell Tensor Cores, FP8/FP4 math, and TMA bulk streaming.
Attention Blocks & GEMM Operators Triton High-level Python tiling with near-native hardware speed.
Dynamic Recursive Spatial Trees Bend 2 Automatic parallel fork-join without manual array flattening or mutex locks.
Formal Verification & High Assurance Bend 2 Machine-checked totality and inductive proofs via BendTT in 0.38 s.
Interactive Symbolic Agent Execution Bend 2 on M4 Max Unified Memory Architecture eliminates PCIe launch latency for dynamic AST graphs.

Conclusion: Heterogeneous Acceleration for Modern Workloads

The comparison between Triton, CUTLASS, and Bend 2 highlights a fundamental truth of modern computing: no single paradigm fits all parallel workloads.

For dense linear algebra and deep learning, CUTLASS and Triton remain the undisputed leaders, unlocking the full potential of Blackwell B200 Tensor Cores.

For dynamic recursive algorithms, spatial trees, and verified symbolic programming, Bend 2 and BendRT establish a lock-free alternative. By compiling confluent interaction combinators directly to CUDA and Metal, Bend 2 delivers billions of parallel interactions per second while guaranteeing mathematical freedom from data races.