Command Palette

Search for a command to run...

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

nvshmem-get-started

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

Use when NVSHMEM beginners want a tutorial-style overview on assessment, mental models, first C/C++ or Python NVSHMEM programs, compilation, launching, and…

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

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

Getting Started with NVSHMEM

Purpose

Guide a beginner to the next useful action. Teach the stable mental model, program structure, build pattern, and launch pattern directly. Route installation, version-sensitive variants, advanced integrations, and failures to the appropriate specialist skill.

Prerequisites

  • Require no credentials, installed software, or GPU access for fit assessment and conceptual guidance.
  • Keep the bundled mental model, basic API calls, and NVSHMEM4Py program guide available for the teaching paths that require them.
  • Keep $nvshmem-install, $nvshmem-docs, and $nvshmem-troubleshoot-and-report-bugs available for complete installation, version-specific, and failure handoffs. If a specialist skill is unavailable, follow the documented fallback instead of inventing current details.

Inputs

  • Required: Obtain the user's goal or requested learning stage from the explicit user prompt.
  • Optional: Obtain application communication needs, language, NVSHMEM and NVSHMEM4Py versions, source or script path, Python interpreter/environment, installation prefix, target GPU architecture, launcher, PE and node counts, and target environment only when the selected path needs them.
  • Source precedence: Prefer the current explicit user prompt, then explicit invocation arguments, then non-conflicting agent context, then answers to focused follow-up questions. Report conflicting values instead of choosing silently.

Instructions

Execution Boundary

Default to explaining the workflow and printing commands for the user to run. Do not compile, launch a program, submit a scheduler job, allocate resources, or modify the environment unless the user explicitly asks for execution. Treat requests to learn, get started, or receive help running a program as requests for guidance, not execution approval.

Choose a Starting Point

When the requested stage is clear, skip the menu and handle that stage. Otherwise ask what the user wants to do and present all options in one response:

  1. Decide whether NVSHMEM fits my use case.
  2. Learn the NVSHMEM mental model.
  3. Install NVSHMEM.
  4. Run a precompiled NVSHMEM example.
  5. Compile or link a C/C++ application.
  6. Write an NVSHMEM C/C++ or NVSHMEM4Py program.
  7. Recommend the next step.

For option 7, first determine whether NVSHMEM fits the intended communication pattern. Then ask whether NVSHMEM is installed, whether an example has run successfully, and whether source code already exists. Recommend the mental model when the user is completely new, installation when NVSHMEM is absent, a precompiled example after installation, program design when no source exists, and compilation when source is ready.

Decide When to Use NVSHMEM

Start from the application's communication needs rather than from a list of APIs. Describe NVSHMEM as a strong fit when several of these conditions apply:

  • GPU threads should initiate communication directly from CUDA kernels without returning control to the CPU for every exchange.
  • The application needs fine-grained, one-sided put, get, atomic, signaling, or synchronization operations between GPUs.
  • Long-running or fused kernels should combine computation and communication while reducing kernel-launch and CPU-GPU synchronization overhead.
  • Communication should overlap with computation to improve strong scaling as the amount of work per GPU becomes smaller.
  • A partitioned global address space with collectively allocated symmetric GPU memory fits the application's data layout.
  • The application already uses OpenSHMEM concepts or needs NVSHMEM alongside MPI or OpenSHMEM for GPU-resident communication.

Give representative workload patterns without claiming that NVSHMEM is mandatory for them:

  • neighbor or halo exchanges in multi-GPU stencils, solvers, and simulations;
  • irregular or fine-grained communication in graph and data-analytics workloads;
  • persistent GPU kernels that communicate repeatedly during computation;
  • custom GPU-initiated reductions, broadcasts, queues, and producer-consumer protocols;
  • applications whose strong scaling is limited by repeated CPU orchestration of GPU communication.

Explain when another model may be simpler:

  • Use ordinary CUDA for a single GPU or when no inter-GPU communication is required.
  • Prefer NCCL when the application primarily makes standard bulk-collective calls—especially host-issued all-reduce, all-gather, reduce-scatter, or broadcast operations. NCCL is generally better suited than NVSHMEM for this pattern.
  • Prefer MPI when communication is coarse-grained, CPU-driven send and receive is sufficient, or symmetric allocation would complicate the design.
  • Reconsider NVSHMEM when the target cannot provide the required GPU, launcher, bootstrap, or transport environment.

First determine whether the prompt already contains enough communication detail to a

Полный SKILL.md на ClawHub

Установить nvshmem-get-started в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл nvshmem-get-started?

Use when NVSHMEM beginners want a tutorial-style overview on assessment, mental models, first C/C++ or Python NVSHMEM programs, compilation, launching, and next steps.

Как установить скилл nvshmem-get-started?

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

Скилл nvshmem-get-started запускает скрипты?

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

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

Сравнить nvshmem-get-started с