cd /news/ai-research/geometric-nn-ops-triton-kernels-for-… · home › topics › ai-research › article
[ARTICLE · art-182093] src=rocm.blogs.amd.com ↗ pub= topic=ai-research verified=true sentiment=↑ positive

geometric-nn-ops: Triton Kernels for Protein-Folding Triangle Operations on ROCm

AMD contributed Triton kernels for the triangle attention and triangle multiplicative update operations in OpenFold3 (aqlaboratory/openfold-3#166) in 2026, and the work is now packaged as geometric-nn-ops 1.0, a standalone, model-agnostic PyTorch library on ROCm. On an AMD Instinct MI355X GPU at N = 768 (bf16, H = 4, D = 32), the triangle attention kernel's forward pass peaked 0.15 GiB above its inputs versus 10.41 GiB for a direct einsum-and-softmax PyTorch implementation, a roughly 69x memory reduction, with about 9.5x for forward and backward together. The library adds a public API matching pair-representation projections, dispatch between Triton and PyTorch paths based on autograd state, one fp32 precision contract across CDNA 3 and CDNA 4 GPUs, and a compatibility package so calls written against cuequivariance_torch run unchanged on ROCm.

key takeaway

geometric-nn-ops 1.0 ships Triton triangle attention kernels whose forward pass at N=768 on an MI355X peaked 0.15 GiB above inputs versus 10.41 GiB for einsum-and-softmax PyTorch, about 69x less memory, with a cuequivariance_torch-compatible shim for ROCm.

by read22 min views3 publishedDec 4, 2026
geometric-nn-ops: Triton Kernels for Protein-Folding Triangle Operations on ROCm
Image: Rocm (auto-discovered)

AlphaFold3-style co-folding models such as OpenFold3, Boltz, and Protenix update an N×N pair representation, one feature vector per pair of the complex’s N tokens, with two triangle operations in every trunk block: triangle attention and the triangle multiplicative update. Both update each pair (i, j) by summing over a third token k, so their cost grows as N³ while the rest of the trunk grows as N². Doubling the size of a complex multiplies the work of the triangle operations by up to eight and that of everything else by up to four, so on large complexes these two operations dominate the trunk.

In 2026, AMD contributed Triton kernels for these operations directly into OpenFold3 (aqlaboratory/openfold-3#166) [2], the inference work behind OpenFold3 Meets AMD Instinct GPUs [3]. geometric-nn-ops 1.0 [1] turns that work into a standalone, model-agnostic PyTorch library. Beyond the kernels themselves, it adds the layer a model integrates against:

  • A public API whose layout matches the pair-representation projections.
  • Dispatch that picks the Triton or PyTorch path from the autograd state of each call.
  • One fp32 precision contract across AMD CDNA™ 3 and CDNA 4 GPUs.
  • A compatibility package, so triangle-operation calls written against cuequivariance_torch run unchanged on ROCm™.
  • A test suite that checks every op against fp64.

The triangle attention kernel underneath, including its training backward pass, is derived from the one OpenFold3 ships in its tree, with an explicit matmul precision on every dot product and base-2 softmax as a call argument. In our testing on an AMD Instinct™ MI355X GPU at N = 768 (bf16, H = 4, D = 32), its forward pass peaked 0.15 GiB above its inputs against 10.41 GiB for a direct einsum-and-softmax PyTorch implementation, a reduction by a factor of about 69. For forward and backward together, the reduction factor is about 9.5[1].

This post assumes you know the triangle operations (AlphaFold2 supplementary Algorithms 11–14 [4], AlphaFold3 [5]) and flash attention (FlashAttention-2 [6]), and covers what is specific to geometric-nn-ops: how the triangle attention kernel handles the shared pair bias in its forward and backward passes, which parts of the multiplicative update run in Triton and when, how fp32 matmul precision resolves on AMD Instinct MI300X and MI355X GPUs, and how the compatibility shim works.

What geometric-nn-ops 1.0 Provides# #

Version 1.0 provides the triangle submodule of geometric_nn_ops_torch:

Operation Forward Backward
triangle_attention Triton Triton
triangle_multiplicative_update Triton; PyTorch when autograd records the call PyTorch
attention_pair_bias PyTorch PyTorch

attention_pair_bias is implemented in PyTorch. Its pair-bias LayerNorm and projection deliberately carry no bias terms. Each would only add a per-head constant to every logit, which softmax cancels, so the parameter has a true gradient of zero and can drift under optimizer rounding noise, depending on weight decay, costing accuracy in a low-precision implementation that carries it.

The library ships as two packages. geometric-nn-ops-torch holds the kernels and their direct API, and is the recommended dependency. hipequivariance-ops-torch is an optional shim that provides the cuequivariance_ops_torch module, so cuequivariance_torch triangle-operation calls reach the same kernels without source changes. Figure 1 shows both paths into the kernels.

Figure 1. Two ways into the same kernels: the direct API, or unmodified cuequivariance_torch code through the shim.

The supported ROCm, PyTorch, and GPU combinations are listed in the repository README; this post covers AMD Instinct MI300X and MI325X (gfx942, CDNA 3 architecture), along with MI350X and MI355X (gfx950, CDNA 4 architecture).

Inside the Triangle Attention Kernel# #

Triangle attention around the starting node computes, for every row i, o_ij = softmax_k(q_ij · k_ik / √D + b_jk) v_ik. Viewed as attention, that is a batch of N independent problems, one per row, except for the bias: b_jk does not depend on i, so all N rows share one [H, N, N] bias. A direct PyTorch implementation materializes [B, N, H, N, N] logits, O(N³·H) memory per call. The geometric-nn-ops kernel is a flash-attention-style kernel (online softmax in the forward, recomputation in the backward) built around that shared bias, and never forms that tensor.

Peak GPU memory of one call in our testing, above the resident inputs, against the same computation written in PyTorch (bf16, B=1, H=4, D=32, with a pair bias and key mask)[1]:

N Pass geometric-nn-ops PyTorch
384 Forward 0.04 GiB 1.34 GiB
384 Forward and backward 0.46 GiB 2.36 GiB
768 Forward 0.15 GiB 10.41 GiB
768 Forward and backward 1.86 GiB 17.58 GiB

Layout#

The op takes q, k, and v as [..., N_seq, N_res, H, D] and the bias as [B, H, N_res, N_res] (or [B, 1, H, N_res, N_res]). This is the layout a linear projection of the pair representation produces: linear(z).view(B, N, N, H, D) gives it directly, with no transpose in model code. Inside, the kernel works on [B, N_seq, H, N_res, D]. The ending-node form is the same call on the transposed pair representation.

Masking Without NaNs#

The mask is boolean, True to keep a key, broadcastable to [B, N_seq, 1, 1, N_res]: one key mask per row, shared by every query and head in that row. The wrapper turns it into an additive bias of -mask_val rather than -inf before launch. mask_val is 1e9 for fp32 and bf16, and half the fp16 maximum for fp16, because 1e9 overflows fp16 to inf. If -inf were used instead, a row whose first key tile is fully masked would set the running max to -inf, and the online softmax would compute -inf - (-inf), producing NaNs even when the row has valid keys in later tiles.

Softmax over a row with every key masked is undefined, and the finite sentinel makes such rows return a well-defined but meaningless value. Mask out padded rows after the op, and before the loss in training: a fully masked row with a nonzero upstream gradient still adds to the shared bias gradient.

Backward: Reducing the Bias Gradient in Registers#

Because one bias is shared by all N_seq rows, its gradient is a sum over rows: d_bias[b, h, i, j] = Σ_s dS[b, s, h, i, j]. The backward runs as three kernels, and the third launches one program per tile of the bias, so each d_bias tile has exactly one owner and is summed without atomics:

Kernel One program per Work Writes
Preprocess 16 query rows of (b, s, h) D = rowsum(dO ⊙ O) D , anddO reordered to the internal layout in the same pass
dK ,dV 128 key rows of (b, s, h) Loop over query tiles; recompute P ; accumulatedV anddK Plain stores, directly in the user layout
d_bias anddQ (b, h, i-tile, j-tile) of the bias Loop over every row s ; recomputeP ,dP ,dS ; accumulated_bias One store per d_bias tile;dQ by atomic add

The d_bias owner walks every row s, keeps the running sum in fp32 registers, and stores the tile once:

dbias_block = tl.zeros([BLOCK_SIZE_Q, BLOCK_SIZE_KV], dtype=tl.float32)
for index_msa in tl.range(0, N_SEQ, num_stages=PIPE_STAGES):  # software-pipelined over rows
    P_block = tl.math.exp(tl.minimum(QK_block - M_block, 0.0))
    dP_block = tl.dot(dO_block, V_T_block, input_precision=MATMUL_PRECISION)
    dS_block = P_block * (dP_block - Di[:, None])
    dbias_block += dS_block  # reduction over rows stays in registers
    dQ_block = softmax_scale * tl.dot(dS_block.to(K_T_block.dtype), tl.trans(K_T_block),
                                      input_precision=MATMUL_PRECISION)
    tl.atomic_add(dQ + msa_off + qd, dQ_block, mask=q_valid, sem="relaxed")
tl.store(dbias_ptrs, dbias_block, mask=qk_valid)  # single store, no atomics

The cost: P and dP are rebuilt in both the dK/ dV kernel and the d_bias/ dQ kernel, and because every key tile contributes to dQ, dQ is accumulated with atomic adds. The d_bias result is deterministic; dQ is not, so gradients with respect to q can differ in the last bits from run to run. When no bias is passed, a compile-time flag removes all of the d_bias work. Figure 2 shows the three backward kernels and how each one writes its results.

Figure 2. The three backward kernels. Kernel 3 owns each bias-gradient tile and sums it over rows in registers.

Launch Configuration and Variable Sequence Lengths#

Tile sizes come from fixed rules rather than autotuning, and on ROCm the launches add AMD-specific options (occupancy and allow_flush_denorm in the forward, occupancy and matrix fused multiply-add (MFMA) shape in the two main backward kernels) that are identical on gfx942 and gfx950.

By default the forward kernel treats the sequence dimensions as compile-time constants, so every new (N_seq, N_res) compiles a new kernel. That suits training on a fixed crop size and hurts inference, where almost every input has a different length. triangle_attention(..., dynamic=True) selects a forward variant that takes N_seq and N_res as runtime arguments, so the number of compiles stays bounded as new lengths arrive: Triton still specializes integers by whether they equal 1 or are divisible by 16, so lengths fall into a handful of classes. In our testing, over 40 random lengths between 64 and 512, with a pair bias and mask, the default path compiled 40 forward kernels and dynamic=True compiled four[1]. The head count, head dimension, and dtype stay specialized, the output is bitwise identical to the specialized path, and the backward is unaffected by the flag. Use it when input lengths vary from call to call; with a fixed crop size the default kernel is the better fit, because the dynamic variant always takes the boundary-masked loads.

Triangle Multiplicative Update: Fused Epilogues Around a Batched GEMM# #

The multiplicative update (AlphaFold2 Algorithms 11 and 12 [4]) is a LayerNorm, gated input projections, a contraction over k, and a gated output projection. geometric-nn-ops permutes the projected a and b so that channels become the batch dimension and both directions, outgoing and incoming, become one batched general matrix multiply (GEMM), which PyTorch dispatches to the platform Basic Linear Algebra Subprograms (BLAS) library.

The LayerNorm and projection steps around the contraction run in two Triton kernels. A row-wise LayerNorm kernel handles both normalizations. A linear kernel computes x Wᵀ with fp32 accumulation and applies its epilogue under compile-time flags, HAS_BIAS, APPLY_SIGMOID, APPLY_MUL, and HAS_MASK, so the gating, masking, and bias of each projection happen in the GEMM’s registers instead of as separate elementwise passes. Figure 3 shows the resulting forward pipeline, with the Triton kernels around the PyTorch batched GEMM.

Figure 3. The multiplicative update forward on the Triton path: six Triton launches around a PyTorch batched GEMM.

The Triton path does not fuse every step. The gate, the projection, the GEMM output, and the output gate are each materialized at [N, N, C] scale, and the contraction, the layout copies around it, and the final gate multiply run as PyTorch ops. The Triton path is forward-only, so dispatch takes the PyTorch path whenever autograd records the call, meaning grad mode is on and an input requires grad:

def _needs_torch_path(x: torch.Tensor, weights) -> bool:
    if not TRITON_AVAILABLE or not x.is_cuda or x.dtype not in _TRITON_DTYPES:
        return True
    return torch.is_grad_enabled() and (
        x.requires_grad or any(w is not None and w.requires_grad for w in weights)
    )
Situation Path
torch.inference_mode() ortorch.no_grad() Triton
Grad enabled, but neither x nor any weight requires grad Triton
Grad enabled and x or a weight requires grad PyTorch (differentiable)
CPU tensor, fp64, or Triton unavailable PyTorch

Checking torch.is_grad_enabled() matters: a tensor keeps requires_grad=True inside no_grad and inference_mode, so an evaluation pass inside a training loop would otherwise take the PyTorch path. Two numerical details differ from the PyTorch path: the Triton LayerNorm computes the variance in a single pass and uses 1/sqrt(max(var, eps)) where PyTorch uses 1/sqrt(var + eps), and the sigmoid input is clamped to ±20. The paths agree to within tolerance on typical activations but not bitwise, and rows whose variance is close to eps, or small relative to their squared mean, can differ substantially: at a variance equal to eps the normalized values differ by a factor of √2, so expect a visible change there when a model moves between training and inference.

One fp32 Precision Contract for CDNA 3 and CDNA 4 GPUs# #

None of the ops take a precision argument. For fp32 inputs they follow PyTorch’s global setting, torch.backends.cuda.matmul.fp32_precision. The PyTorch parts, such as the multiplicative update’s batched GEMM and its training path, apply it through PyTorch’s own GEMM libraries; the Triton kernels resolve it against the dot precisions the Triton backend reports for the current GPU. "tf32" takes the first supported mode among tf32, bf16x3, and ieee. "ieee" always stays ieee, so the result is never less accurate than requested:

fp32_precision gfx942 (MI300X, MI325X) gfx950 (MI350X, MI355X)
unset (default) ieee ieee
"tf32" tf32 (XF32 MFMA) bf16x3
"ieee" ieee ieee

The CDNA 3 architecture has an XF32 matrix instruction, so "tf32" maps to it directly. The CDNA 4 architecture has no XF32, and its Triton backend offers ieee, bf16x3, and bf16x6, so "tf32" resolves to bf16x3, which emulates a reduced-precision fp32 product with three bf16 products. bf16 and fp16 inputs always compile with ieee, because Triton ignores the setting for them and a second, identical kernel would only cost compile time. A test parses every Triton kernel in the package and checks that each tl.dot passes an explicit input_precision, because Triton otherwise picks a default per target and the contract silently breaks.

Known Limitations in 1.0# #

Version 1.0 has these limitations:

  • Multiplicative update backward: the Triton path is forward-only; any call that autograd records runs the differentiable PyTorch path.
  • Attention with pair bias:attention_pair_bias , the attention over the single representation, is implemented only in PyTorch, with no Triton kernel. This does not affecttriangle_attention , whose shared pair bias runs in Triton in both passes.

Getting Started# #

Build the packages from source in the ROCm PyTorch container below.

Install the Library#

The packages are pure Python; build them from source inside the recommended ROCm PyTorch container:

git clone --branch v1.0.0 https://github.com/ROCm/geometric-nn-ops.git
cd geometric-nn-ops/
docker run -it --rm \
  --network=host --device=/dev/kfd --device=/dev/dri --group-add video \
  --security-opt seccomp=unconfined --ipc=host \
  -v "$PWD":/geometric-nn-ops -w /geometric-nn-ops \
  --name=geometric_nn_ops \
  rocm/pytorch:rocm10.1.0_ubuntu24.04_py3.12_pytorch_release_2.13.0

Inside the container, build and install the wheel. Always pass --no-deps: when pip judges a torch or triton requirement unmet, by version or because the ROCm build is installed under another name such as pytorch-triton-rocm, it replaces the ROCm build with a non-ROCm one.

pip wheel . --no-deps -w ~/dist/
pip install --no-deps ~/dist/geometric_nn_ops_torch-*.whl

Check Triangle Attention Against fp64#

This snippet runs triangle attention forward and backward with a shared bias and a key mask, and checks the output, the bias gradient, and the query gradient against an fp64 reference. It then runs the ending-node form, which is the same op on the transposed pair representation. The bound, cosine similarity of at least 1 - 1e-4 and relative error of at most 5e-2, is the library test suite’s bf16 tolerance for this op. N = 200 is not a multiple of the tile sizes, so the boundary paths run too.

import torch
import torch.nn.functional as F

from geometric_nn_ops_torch.triangle import triangle_attention

torch.manual_seed(0)
B, N, H, D = 1, 200, 4, 32  # N_seq = N_res = N
q, k, v = (torch.randn(B, N, N, H, D, device="cuda", dtype=torch.bfloat16) for _ in range(3))
bias = torch.randn(B, H, N, N, device="cuda", dtype=torch.bfloat16)  # one bias for all N rows
mask = torch.ones(B, N, 1, 1, N, device="cuda", dtype=torch.bool)
mask[..., -8:] = False  # mask the last 8 keys of every row
grad_out = torch.randn(B, N, N, H, D, device="cuda", dtype=torch.bfloat16)

def reference(q, k, v, bias):
    """softmax_k(q_ij . k_ik / sqrt(D) + b_jk) v_ik with the key mask, in fp64."""
    s = torch.einsum("bijhd,bikhd->bhijk", q, k) / D**0.5 + bias[:, :, None]
    s = s.masked_fill(~mask.view(B, 1, N, 1, N), float("-inf"))
    return torch.einsum("bhijk,bikhd->bijhd", s.softmax(-1), v)

def check(name, got, ref, rel_max=5e-2):
    """Cosine similarity and relative Frobenius error against a reference."""
    got, ref = got.double().flatten(), ref.flatten()
    cos = F.cosine_similarity(got, ref, dim=0).item()
    rel = ((got - ref).norm() / ref.norm()).item()
    print(f"{name}: cos={cos:.6f} rel_err={rel:.2e}")
    assert cos >= 1 - 1e-4 and rel <= rel_max, f"{name} is outside the tolerance"

leaves = [t.clone().requires_grad_(True) for t in (q, k, v, bias)]
ref_leaves = [t.double().requires_grad_(True) for t in (q, k, v, bias)]
out = triangle_attention(*leaves, mask)
ref = reference(*ref_leaves)
out.backward(grad_out)
ref.backward(grad_out.double())
check("output", out, ref)
check("d_bias", leaves[3].grad, ref_leaves[3].grad)
check("dq", leaves[0].grad, ref_leaves[0].grad)

def swap(t):
    return t.transpose(1, 2)

with torch.inference_mode():
    bias_end = bias.transpose(-1, -2).contiguous()  # the bias is projected from the swapped pairs too
    end = swap(triangle_attention(*(swap(t).contiguous() for t in (q, k, v)), bias_end, mask))
check("ending node", end, swap(reference(*(swap(t).double() for t in (q, k, v)), bias_end.double())))
print("triangle attention check passed")

Compare the Two Multiplicative Update Paths#

Run this snippet in the same Python session as the previous one; it reuses B, N, and check. It runs the multiplicative update twice on the same inputs: under torch.inference_mode(), which takes the Triton path, and with trainable weights, which takes the differentiable PyTorch path. p_in_weight and g_in_weight hold the a and b projections concatenated, as [2 · C_hidden, C_z]. The relative-error bound is the suite’s bf16 tolerance for this op, 1.5e-2. The snippet then repeats both calls with one position replaced by values whose variance is close to the LayerNorm eps, where the two LayerNorm implementations differ, and prints the error at that position for both inputs.

from geometric_nn_ops_torch.triangle import triangle_multiplicative_update

C = 128  # C_z = C_hidden
x = torch.randn(B, N, N, C, device="cuda", dtype=torch.bfloat16)

def weight(*shape):
    return (torch.randn(*shape) / shape[-1] ** 0.5).to("cuda", torch.bfloat16)

weights = dict(
    norm_in_weight=weight(C) + 1, norm_in_bias=weight(C),
    p_in_weight=weight(2 * C, C), g_in_weight=weight(2 * C, C),
    norm_out_weight=weight(C) + 1, norm_out_bias=weight(C),
    p_out_weight=weight(C, C), g_out_weight=weight(C, C),
)
with torch.inference_mode():
    triton_out = triangle_multiplicative_update(x, direction="outgoing", **weights)
trainable = {name: w.clone().requires_grad_(True) for name, w in weights.items()}
torch_out = triangle_multiplicative_update(x, direction="outgoing", **trainable)
check("trimul Triton vs PyTorch path", triton_out, torch_out.detach().double(), rel_max=1.5e-2)
print("multiplicative update check passed")

def err_at_origin(a, b):
    """Relative error between the two paths at position (0, 0)."""
    a, b = a[:, 0, 0].double(), b[:, 0, 0].detach().double()
    return ((a - b).norm() / b.norm()).item()

x_low = x.clone()
x_low[:, 0, 0] = 3e-3 * torch.randn(C, device="cuda", dtype=torch.bfloat16)
with torch.inference_mode():
    triton_low = triangle_multiplicative_update(x_low, direction="outgoing", **weights)
torch_low = triangle_multiplicative_update(x_low, direction="outgoing", **trainable)
print(f"position (0, 0), original input: rel_err={err_at_origin(triton_out, torch_out):.2e}")
print(f"position (0, 0), low-variance input: rel_err={err_at_origin(triton_low, torch_low):.2e}")

On AMD Instinct MI300X and MI355X GPUs both snippets print their checks inside the tolerance and print triangle attention check passed and multiplicative update check passed. At position (0, 0) the original input then gives a relative error of about 5e-3 and the low-variance input about 8e-2.

Running cuequivariance_torch Code Through the Shim# #

Several open-source co-folding codebases, OpenFold3 among them, can call the triangle operations through cuequivariance_torch, whose frontend imports its kernels from a module named cuequivariance_ops_torch. The hipequivariance-ops-torch package provides a module under that name, backed by geometric-nn-ops.

Install the Shim#

Install the shim next to the frontend, and never alongside a cuequivariance-ops-torch-* kernel wheel:

pip wheel ./hipequivariance_ops_torch --no-deps -w ~/dist/
pip install --no-deps ~/dist/hipequivariance_ops_torch-*.whl
pip install "cuequivariance==0.9.1" "cuequivariance-torch==0.9.1"

What the Shim Translates#

The shim does the API translation at the boundary:

Difference What the shim does
Module name Provides the cuequivariance_ops_torch module; raises at import if acuequivariance-ops-torch-cu12 orcuequivariance-ops-torch-cu13 kernel wheel is also installed, and warns ifcuequivariance-torch is not version 0.9.1
Attention layout [B, N_seq, H, N_res, D] Transposes the head and sequence axes on the way in and out
Mask dtype Casts the mask to bool
Attention-with-pair-bias argument names Renames them, and drops the bias terms that softmax cancels, with a warning
Per-call precision argument of the multiplicative update Checks it against the PyTorch global: raises if more precision is requested than the global provides, warns if less

Run Unmodified cuequivariance_torch Code#

The frontend call below is unmodified cuequivariance_torch code, and its result is bitwise equal to the direct call, which confirms it ran the geometric-nn-ops kernel:

import torch
import cuequivariance_torch as cuet
from geometric_nn_ops_torch.triangle import triangle_attention

B, S, H, N, D = 1, 2, 4, 96, 32
q, k, v = (torch.randn(B, S, H, N, D, device="cuda", dtype=torch.bfloat16) for _ in range(3))
bias = torch.randn(B, 1, H, N, N, device="cuda", dtype=torch.bfloat16)
mask = torch.ones(B, S, 1, 1, N, device="cuda", dtype=torch.bool)

with torch.inference_mode():
    o_cueq = cuet.triangle_attention(q, k, v, bias, mask=mask, scale=D**-0.5)
    o_direct = triangle_attention(
        q.transpose(2, 3), k.transpose(2, 3), v.transpose(2, 3), bias, mask, scale=D**-0.5
    ).transpose(2, 3)
print("shim matches the direct call:", torch.equal(o_cueq, o_direct))

The shim also provides the module paths and constants for the triangle operations that cuequivariance_torch 0.9.1 and OpenFold3’s cuEquivariance integration import from the ops layer. The shim brings existing triangle-operation code to ROCm without source changes; for new code, depend on geometric-nn-ops-torch directly.

Summary# #

In this blog you learned what geometric-nn-ops 1.0 adds for the triangle operations of AlphaFold3-style models on AMD Instinct GPUs. Triangle attention reads the row-shared pair bias without a per-row copy and reduces the bias gradient over rows in registers with no atomics; in our testing at N = 768 on an MI355X GPU, its forward pass peaked 0.15 GiB above its inputs, where a direct PyTorch implementation peaked 10.41 GiB above them. The multiplicative update runs Triton LayerNorm and fused-epilogue linear kernels around a batched GEMM for GPU calls that autograd does not record. One fp32 precision contract follows PyTorch’s global setting, and in the Triton kernels maps "tf32" to XF32 on CDNA 3 GPUs and to bf16x3 on CDNA 4 GPUs. And the hipequivariance-ops-torch shim runs unmodified cuequivariance_torch triangle-operation calls on ROCm.

Try the library from the geometric-nn-ops repository on your pair-representation workloads.

Acknowledgements# #

The authors wish to acknowledge the AMD teams that supported this work, whose contributions were instrumental in enabling geometric-nn-ops: Gagan Singh, Geoffrey Martin-Noble, Anuya Welling, James Smith, Aditya Bhattacharji, Pankaj Gupta, Anisha Sankar, Amit Kumar, Ram Seenivasan, Ehud Sharlin, Saad Rahim, Wenbo Shao, Marco Grond, Sriranjani Ramasubramanian, Kristof Denolf, Susanna Pirttikangas, Sandra Polifroni.

References# #

  1. geometric-nn-ops repository: ROCm/geometric-nn-ops
  2. Enable native AMD ROCm inference via Triton kernels, aqlaboratory/openfold-3#166 :aqlaboratory/openfold-3#166
  3. OpenFold3 Meets AMD Instinct GPUs: https://www.amd.com/en/blogs/2026/openfold3-meets-amd-instinct-gpus-unlocking-scalable.html
  4. Jumper et al., Highly accurate protein structure prediction with AlphaFold, Nature 596, 583–589 (2021), Supplementary Information:https://doi.org/10.1038/s41586-021-03819-2
  5. Abramson et al., Accurate structure prediction of biomolecular interactions with AlphaFold 3, Nature 630, 493–500 (2024):https://doi.org/10.1038/s41586-024-07487-w
  6. Dao, FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023): https://arxiv.org/abs/2307.08691

Disclaimers# #

Third-party content is licensed to you directly by the third party that owns the content and is not licensed to you by AMD. ALL LINKED THIRD-PARTY CONTENT IS PROVIDED “AS IS” WITHOUT A WARRANTY OF ANY KIND. USE OF SUCH THIRD-PARTY CONTENT IS DONE AT YOUR SOLE DISCRETION AND UNDER NO CIRCUMSTANCES WILL AMD BE LIABLE TO YOU FOR ANY THIRD-PARTY CONTENT. YOU ASSUME ALL RISK AND ARE SOLELY RESPONSIBLE FOR ANY DAMAGES THAT MAY ARISE FROM YOUR USE OF THIRD-PARTY CONTENT.

The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions, and typographical errors. The information contained herein is subject to change and may be rendered inaccurate for many reasons, including but not limited to product and roadmap changes, component and motherboard version changes, new model and/or product releases, product differences between differing manufacturers, software changes, BIOS flashes, firmware upgrades, or the like. Any computer system has risks of security vulnerabilities that cannot be completely prevented or mitigated. AMD assumes no obligation to update or otherwise correct or revise this information. However, AMD reserves the right to revise this information and to make changes from time to time to the content hereof without obligation of AMD to notify any person of such revisions or changes. THIS INFORMATION IS PROVIDED “AS IS.” AMD MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE CONTENTS HEREOF AND ASSUMES NO RESPONSIBILITY FOR ANY INACCURACIES, ERRORS, OR OMISSIONS THAT MAY APPEAR IN THIS INFORMATION. AMD SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT WILL AMD BE LIABLE TO ANY PERSON FOR ANY RELIANCE, DIRECT, INDIRECT, SPECIAL, OR OTHER CONSEQUENTIAL DAMAGES ARISING FROM THE USE OF ANY INFORMATION CONTAINED HEREIN, EVEN IF AMD IS EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. AMD, the AMD Arrow logo, Instinct, ROCm, CDNA, and combinations thereof are trademarks of Advanced Micro Devices, Inc. Other product names used in this publication are for identification purposes only and may be trademarks of their respective companies. © 2026 Advanced Micro Devices, Inc. All rights reserved

── more in #ai-research 4 stories · sorted by recency
── more on @amd 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/geometric-nn-ops-tri…] indexed:0 read:22min 2026-12-04 · —