cuda SKILL.md skillA

cuda from tongminglaic/ako4x is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add tongminglaic/ako4x/cuda@git:20260531.0fd4b5f

Pins git:20260531.0fd4b5f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
tongminglaic/ako4x
Path
templates/skills/cuda/SKILL.md
Versions recorded
1
Latest version
git:20260531.0fd4b5f, committed May 31, 2026
Size
1,297 bytes
Repository stars
84
License
MIT

CUDA C++ (.cu) kernel reference — TVM-FFI direct-export vs Python-binding entry points, the chevron-launch null-stream pitfall under CUDA-graph capture, the sm_100 fp8→bf16 cvt PTX gap, the load_inline name-cache trap, and the __launch_bounds__ register-spill lever. Also the single-source for generic per-call-overhead / CUDA-graph-capture / PDL theory (Waves-Per-SM decision table) regardless of DSL. Use when writing or debugging hand-written CUDA C++ kernels, or whenever you need generic…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# CUDA

Reference for CUDA C++ kernel writers. Detailed guide: `cuda.md`.

## When to consult

- Writing a CUDA `.cu` kernel (TVM-FFI direct export or Python binding).
- Resolving a `RUNTIME_ERROR` traceable to chevron-launch stream binding (legacy null-stream is NOT capture-aware — see `cuda.md` "Kernel-launch stream is NOT optional under CUDA graph capture").
- Reducing per-call overhead: GPU↔CPU sync audit, CUDA-graph capture, or PDL kernel→kernel overlap — generic theory + the Waves-Per-SM decision table live here; per-DSL PDL bindings live in the DSL skills.

## COUPLED references

None directly to runtime. Per-operator CUDA wins / traps live under `docs/prior/` (when your operator has a prior archive).

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add tongminglaic/ako4x/cuda@sha256:cc477684ea80d6e6

The line at the top of this page pins the label git:20260531.0fd4b5f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_zt3y47mktnf2eiou.svg)](https://markdownregistry.com/a/art_zt3y47mktnf2eiou)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on May 31, 2026.

versioncommittedcommitsizeaudit
git:20260531.0fd4b5f latest2026-05-31 0fd4b5f 1,297 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (1297 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

tongminglaic/ako4x · 84 stars · license MIT · pushed 2026-09-15 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_zt3y47mktnf2eiou
GET https://markdownregistry.com/api/v1/resolve?ref=tongminglaic/ako4x/cuda
GET https://markdownregistry.com/api/v1/blob/cc477684ea80d6e695acf06cf7f2fead5e4a16ec56ce73d31330e159b9465d96

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from tongminglaic/ako4x

CLAUDE.md CLAUDE.md file
tongminglaic/ako4x · CLAUDE.md
git:20260531.0fd4b5f · audit A · 84 stars
CLAUDE.md@scripts CLAUDE.md file
tongminglaic/ako4x · scripts/CLAUDE.md
git:20260531.0fd4b5f · audit A · 84 stars
bench SKILL.md skill
tongminglaic/ako4x · templates/skills/bench/SKILL.md · Run performance benchmarks to get a verdict on whether a kernel change actually helped. Use --ab-compare for sub-1x…
git:20260531.0fd4b5f · audit A · 84 stars
benchmark SKILL.md skill
tongminglaic/ako4x · templates/skills/benchmark/SKILL.md · Reference for the active benchmark harness — what it IS and how it behaves (the active benchmark is flashinfer-bench)…
git:20260531.0fd4b5f · audit A · 84 stars
cpp SKILL.md skill
tongminglaic/ako4x · templates/skills/cpp/SKILL.md · Host-side C++ kernels (`[build].language = cpp`) — the `solution/{kernel.cpp, binding.py}` two-file TVM-FFI binding…
git:20260531.0fd4b5f · audit A · 84 stars
cute-dsl SKILL.md skill
tongminglaic/ako4x · templates/skills/cute-dsl/SKILL.md · CuTe DSL reference — NVIDIA's CUTLASS Python DSL. Use whenever writing or debugging a CuTe DSL kernel — covers the…
git:20260531.0fd4b5f · audit A · 84 stars
profiler-ncu SKILL.md skill
tongminglaic/ako4x · templates/skills/profiler-ncu/SKILL.md · Run NVIDIA Nsight Compute (NCU) per-kernel profiling for register pressure, occupancy, stall-reason, memory-throughput…
git:20260531.0fd4b5f · audit A · 84 stars
sanitizer SKILL.md skill
tongminglaic/ako4x · templates/skills/sanitizer/SKILL.md · Run NVIDIA compute-sanitizer (memcheck / racecheck / initcheck / synccheck). FIRST action on `INCORRECT_NUMERICAL` or…
git:20260531.0fd4b5f · audit A · 84 stars
tilelang SKILL.md skill
tongminglaic/ako4x · templates/skills/tilelang/SKILL.md · TileLang DSL reference — the `@tilelang.jit` factory + `@T.prim_func` pattern, and the TileLang PDL binding…
git:20260531.0fd4b5f · audit A · 84 stars
triton SKILL.md skill
tongminglaic/ako4x · templates/skills/triton/SKILL.md · Triton DSL reference for kernel writers — num_warps/num_stages choice, the small-N fp8 MMA-throughput regression…
git:20260531.0fd4b5f · audit A · 84 stars

Every file in tongminglaic/ako4x

Other files named cuda

cuda SKILL.md skill
outlinedriven/outline-driven-development · .devin/skills/cuda/SKILL.md · Use when writing CUDA kernels, managing the thread, block, and grid hierarchy, tiling shared memory, using streams…
git:20260905.fd53e99 · audit A · 56 stars

Browse by kind, by grade A, or by owner.