agentleFS
NVIDIAKnown publisherNVIDIA/cudnn-frontend/samples/AGENTS.md

cudnn-frontend / samples

AGENTS.md994 starsChanged 10 days agoApache-2.0View on GitHub

Usage examples for the C++ graph API and the Python API. Build commands: ../AGENTS.md. Samples need a GPU + cuDNN backend at runtime; individual cases SKIP() on unsupported arch or backend version.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow the existing pattern: build graph → validate() → build_operation_graph() → plans → check_support() (skip gracefully if unsupported) …

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

samples — Agent Guide

Usage examples for the C++ graph API and the Python API. Build commands: ../AGENTS.md.

Layout

PathWhat
cpp/Current C++ graph-API samples, grouped by topic (convolution/, matmul/, sdpa/, norm/, moe_grouped_matmul/, ...) — Catch2 cases in binary build/bin/samples
legacy_samples/Frozen samples for the legacy flat API — binary build/bin/legacy_samples. Don't add here.
python/Numbered Jupyter notebooks (00_introduction.ipynb ...) — the Python tutorial sequence
frost/Standalone Python scripts for the FROST engines and blocks: gemm/, linear_attention/ and gated_attention_block/, numbered, each self-checking against a reference
llama/, llm_coverage/End-to-end LLaMA tie-out scripts and per-op coverage scripts (plain .py, see their READMEs)

Running

./build/bin/samples --list-tests
./build/bin/samples "Cached sdpa"        # run one Catch2 case by name

Samples need a GPU + cuDNN backend at runtime; individual cases SKIP() on unsupported arch or backend version.

Conventions for new samples

  • New C++ samples go under samples/cpp/<topic>/ as a Catch2 TEST_CASE added to samples/cpp/CMakeLists.txt; reuse helpers from samples/cpp/utils/.
  • Follow the existing pattern: build graph → validate() → build_operation_graph() → plans → check_support() (skip gracefully if unsupported) → execute → verify.
  • Python notebooks are formatted by black-jupyter (pre-commit run); keep the numbered-prefix naming so the tutorial order stays obvious.
  • A new public feature should come with a sample here and a doc page under docs/.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.