prefetch-data-load

Apply software prefetching to Triton/Gluon kernel loops to overlap data load latency with compute.

2|3|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/fsx950223/claude-stuff --skill prefetch-data-load
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prefetch-data-load
Source: https://github.com/fsx950223/claude-stuff/tree/main/.claude/skills/prefetch-data-load
Command: npx skills add https://github.com/fsx950223/claude-stuff --skill prefetch-data-load

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill optimizes GPU kernel performance by overlapping data loading latency with computation, significantly reducing execution time for memory-bound loops.

Core Features & Use Cases

  • Software Prefetching: Implements double-buffering to preload data for the next iteration while the current one is computing.
  • Latency Hiding: Effectively hides global memory load latency behind compute instructions in Triton/Gluon kernels.
  • Use Case: Accelerate deep learning inference by optimizing the data loading pipeline for matrix multiplication kernels (MFMA) in attention mechanisms or other compute-intensive operations.

Quick Start

Apply prefetch optimization to the provided Triton/Gluon kernel loop.

Frequently Asked Questions about prefetch-data-load

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I overlap GPU compute with data loads in Triton kernels?

To overlap GPU compute with data loads, apply software prefetching to Triton kernel loops using double-buffering. This preloads data for the next iteration while the current one computes, effectively hiding global memory load latency behind MFMA or dot operations.

What is software prefetching for GPU kernel optimization?

Software prefetching for GPU kernel optimization is a technique that implements double-buffering to preload data for the next loop iteration. It effectively hides global memory load latency behind compute instructions in memory-bound loops.

How do I hide global memory load latency in Gluon kernels?

Hide global memory load latency in Gluon kernels by applying software prefetching to loops involving gl.load operations. This double-buffering approach overlaps data loading latency with compute instructions, significantly reducing execution time for memory-bound loops.

When should I use prefetching for Triton MFMA operations?

Use prefetching for Triton MFMA operations when kernel loops involve tl.load or gl.load feeding into compute operations and load latency is exposed. It is particularly effective for accelerating deep learning inference in compute-intensive attention mechanisms.

Does software prefetching work for all Triton kernel loops?

Software prefetching specifically targets Triton or Gluon kernel loops where gl.load or tl.load operations feed into MFMA, dot, or other compute operations. It addresses scenarios where load latency is exposed and benefits memory-bound loops.

Why is my memory-bound Triton kernel loop running slowly?

Memory-bound Triton kernel loops run slowly when global memory load latency is exposed during compute operations. Applying software prefetching using double-buffering overlaps this data loading latency with computation, significantly reducing execution time.