nvshmem-enable-tma
БесплатноБез исполняемых скриптовНе проверенPrepare or review NVSHMEM CUDA kernels for TMA SMEM registration and direct-SMEM transfers. Do not use for unrelated CUDA tuning.
от nvidia387 установок в других каталогахОб этом скилле
Enable TMA in NVSHMEM Applications
Purpose
Prepare an application for NVSHMEM's TMA-backed device-side transfers without changing its put/get APIs or unrelated kernels. Assess the target, choose the correct shared-memory path, make the smallest safe change, and explain launch-time requirements.
Prerequisites
- Require readable CUDA/C++ source for a patch or code review. A static assessment needs no GPU, installed NVSHMEM runtime, or cluster access.
- Require an NVSHMEM 3.7.0-or-newer development environment and CUDA toolchain only when compiling.
- Require SM90-or-newer GPUs and peer GPU load/store reachability such as NVLink only when validating TMA execution or performance.
- CFT requires TMA.
Reference Routing
Before changing code, read registration-and-launch.md completely and then every reference selected below. Use the references as shapes, not blind replacements: preserve the application's error handling, launch abstraction, completion contract, and shared-memory layout.
| Situation | Required additional reference |
|---|---|
| Global-memory operands, or staging copy/buffer is not proven redundant | gmem-staging.md |
| Explicitly opted-in shared-memory put source with a proven-redundant GMEM copy | direct-smem-put.md |
| Compile, run, diagnose, or report validation | validation-and-troubleshooting.md |
For a read-only assessment or review, read only the references needed to evaluate the proposed path. Do not make a code change until the complete registration reference and every selected path reference have been read.
Inputs
- Required: Application source or source path, and the requested outcome: assessment, patch, review, or debugging.
- Optional: Derive NVSHMEM version, CUDA architecture, topology, kernel launch sites, and launch configuration from the project or environment when possible.
- Conditional for execution: Obtain build command, launch command, and target hardware access only when the user asks to compile or run validation.
- Ask only for facts that cannot be inspected and materially affect the result. Do not require topology details merely to prepare code; mark performance benefit unverified when topology is unknown.
Scope
- Identify exactly one user-opted-in CUDA translation unit and one NVSHMEM communication kernel before editing. Its required launch code is the complete change boundary.
- Derive the target from the user's named file/kernel or attachment metadata, not from files discovered by globbing. A singular request does not authorize editing every eligible kernel.
- Preserve all other kernels, host-only NVSHMEM use, and unrelated launch code. Never modify adjacent candidates merely because they contain NVSHMEM calls.
- Expand beyond one kernel only when the user explicitly names multiple targets. Apply this scope check to each target independently.
Before editing, answer every question below. Stop without editing if a required answer is no or unverified.
- Explicit scope: Is this the selected file and kernel?
- Eligible operation: Does the selected kernel's device call graph reach a TMA-relevant NVSHMEM operation?
- Necessary edit: Is every planned change needed for registration, lifetime, direct-SMEM dataflow, or launch sizing?
- Proven redundancy: If removing a staging copy or buffer, is it proven to have no producer, consumer, alias, synchronization, completion, or lifetime role? If the answer is unverified because the GMEM buffer is a parameter, escapes the selected translation unit, or has uninspectable consumers, ask the user whether it is externally observable before editing. Do not infer redundancy.
- No speculation: Does the selected target require application-side TMA registration for the operation being prepared?
- Surgical launch change: Can the existing grid, block, stream, arguments, and error handling remain intact apart from required registration parameters and dynamic-SMEM bytes?
After editing, inspect the changed-file list and diff. Remove only your own out-of-scope edits before reporting completion; the changed application file set must contain only the opted-in target.
Instructions
1. Establish the Boundary
- Treat an assessment or review as read-only.
- Treat a request to enable, prepare, update, or fix TMA as permission to edit only the selected kernel and in-scope launch configuration.
- Inspect the selected kernel's device call graph for device-side point-to-point put, get, put-with-signal, and their typed/thread/warp/block variants.
2. Decide Whether TMA Is Useful and Available
State these conclusions before or alongside a patch:
- Require NVSHMEM 3.7.0 or newer. Stop a requested conversion for an older confirmed version and recommend upgrading.
- Require SM90 or newer for TMA execution. With `NVSHMEM_TMA_POLICY=ENABL
Установить nvshmem-enable-tma в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл nvshmem-enable-tma?
Prepare or review NVSHMEM CUDA kernels for TMA SMEM registration and direct-SMEM transfers. Do not use for unrelated CUDA tuning.
Как установить скилл nvshmem-enable-tma?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nvshmem-enable-tma запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic