Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cudnn-compile-and-serialize

БесплатноБез исполняемых скриптовНе проверен

Explain or implement cuDNN Frontend C++ parallel plan compilation, graph serialization, cached plan loading, and deviceless ahead-of-time compilation. Adapt…

nvidiaот nvidia197 установок в других каталогах

Об этом скилле

Parallel compilation and serialization

Use this skill to turn a graph build or startup-cost requirement into C++ code. For explanation requests, show the relevant phases and APIs. For implementation requests, edit the target code and verify it; do not stop with an outline.

Read the matching source

Use the user's cuDNN Frontend checkout and selected revision. Source paths are relative to that checkout, not to this installed skill. If no checkout is available, read the files from NVIDIA/cudnn-frontend. The links below use develop for navigation; replace it with the selected tag or commit before reading. Resolve a branch or tag to one commit and use that commit for all source reads. Do not assume the installed skill is inside the source repo. If the source cannot be read, report that limit before giving revision-specific code or compatibility claims.

Read these files at that revision before coding:

Check the target repo's contributor instructions before editing code. Use current signatures and version guards; samples illustrate a workflow, not a production error policy.

Establish the graph operations, dimensions, strides, datatypes, tensor UIDs, target GPU, compiled/runtime cuDNN versions, and workspace limit from the code. Determine whether the user needs faster startup, a plan cache, CPU-side AOT, or several of these. Ask only for missing requirements that affect the code.

Explain the phases

Phase Result Device requirement
Define and validate a graph Operation/tensor contract Host-side definition
Query heuristics and check support Candidate execution plans Handle or supported device-properties path
Build plans Executable candidate(s); may compile kernels Handle or supported deviceless path
Select a plan and serialize Bytes for the selected built plan Supported serialization path
Deserialize A restored executable plan Handle, or device properties for the handle-less overload
Bind tensors and execute GPU outputs Compatible GPU, handle, buffers, workspace

Parallel compilation reduces host-side build time. It does not run the graph in parallel on the GPU. Serialization stores plan state and tensor metadata; it does not store the application's input/output buffers or their addresses. Deviceless AOT still needs a GPU to capture device properties and to execute.

Adapt the graph preparation

Keep the application's graph construction and tensor contract. The handle-based sequence is:

validate()
build_operation_graph(handle)
create_execution_plans({fe::HeurMode_t::A, fe::HeurMode_t::FALLBACK})
apply requested plan filters
check_support()
build_plans(...) or build_plan_at_index(index)

Preserve required numerical, behavior-note, and workspace filters. The parallel sample selects BehaviorNote_t::RUNTIME_COMPILATION to focus its benchmark; do not impose that filter on unrelated applications.

BuildPlanPolicy_t::HEURISTICS_CHOICE builds a usable heuristic choice. BuildPlanPolicy_t::ALL attempts all candidates. Neither means measured autotuning. If latency ranking is required, benchmark successful plans with valid buffers and GPU timing, then select the winner explicitly.

Replace sample REQUIRE calls with the application's status/exception policy. Preserve each error_t and its message. A failed candidate may be skipped if another valid candidate remains; a failure of every candidate must be reported.

Compile in parallel without sharing mutable graph state

The current sample launches threads calling build_plan_at_index(i) on one graph. Inspect the implementation before adopting this pattern: each build can write the same candidate field in the graph's plan state. Do not treat the sample as a thread-safety guarantee.

The do_multithreaded_builds argument also exists in the API, but the current plan implementation rejects true. Do not enable it merely because it compiles. Recheck both facts when working on a newer revision.

For application code:

  1. Use bounded concurrency and an independently constructed Graph for each worker/job. Rebuild its descriptors; do not assume a copied graph has independent backend state. Parallelize separate
Полный SKILL.md на ClawHub

Установить cudnn-compile-and-serialize в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл cudnn-compile-and-serialize?

Explain or implement cuDNN Frontend C++ parallel plan compilation, graph serialization, cached plan loading, and deviceless ahead-of-time compilation. Adapt the C++ samples into application code with explicit plan selection, tensor bindings, and error handling.

Как установить скилл cudnn-compile-and-serialize?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cudnn-compile-and-serialize запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cudnn-compile-and-serialize с