Command Palette

Search for a command to run...

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

nccl-build

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

Use to build NCCL, its repository examples, and optionally nccl-tests on a CUDA Linux host - guide environment detection, GPU architecture selection, Make…

NVIDIAот NVIDIA★ 4 269 звёзд на GitHub

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

NCCL Build

Purpose

Get NCCL, its examples, and optionally nccl-tests, built on Linux with CUDA.

Prerequisites

  • A CUDA-capable Linux build host. A visible GPU is optional for compilation but required to run GPU examples or nccl-tests.
  • CUDA Toolkit with nvcc, GNU Make, g++, and Python 3.
  • An NCCL checkout containing makefiles/version.mk, or permission to clone https://github.com/NVIDIA/nccl.git.
  • Write access to the selected build directory and enough free disk space.
  • Optional: NVIDIA driver and nvidia-smi for architecture detection; MPI compiler and runtime when an example or nccl-tests build uses MPI.

Do not install missing prerequisites. Report them and let the user decide how to provide them.

Inputs

Resolve these inputs from the user's request and environment before proposing a build:

Required inputs

These values must be resolved, although they may be discovered rather than provided explicitly:

  • checkout: NCCL source directory; default to the current directory only when it contains makefiles/version.mk.
  • CUDA_HOME: user-supplied CUDA Toolkit root, otherwise derive it from nvcc on PATH.
  • BUILDDIR: output directory; use the repository default only when the user has not requested another location.
  • N: parallel Make job count; ask or choose a conservative host-appropriate value and identify it as agent-derived.
  • NVCC_GENCODE: target GPU architecture flags. Derive these from visible GPUs, or ask when no GPU is visible or multiple architectures require a choice.
  • action: build NCCL, install it, build a repository example, or build/run nccl-tests.

Optional inputs

  • Build flags for non-default configurations.
  • Install prefix when installation is requested.
  • Repository example selection.
  • MPI enablement and MPI installation settings.

Never guess a CUDA path, unsupported GPU architecture, install prefix, or MPI configuration.

Human Approval Boundary

Do not execute any command that changes files, downloads source, compiles code, installs artifacts, runs GPU workloads, or otherwise alters system state without explicit user confirmation.

Before each such operation:

  1. Show the exact command and affected paths.
  2. Explain its purpose and expected changes.
  3. Ask the user to approve, modify, or cancel it.
  4. Wait for explicit approval immediately before execution.

Approval applies only to the displayed command. Obtain new approval if the command changes. Never run cleanup, deletion, overwrite, package installation, sudo, or system-wide installation commands without separate explicit approval. Read-only environment and prerequisite checks may run without confirmation.

Instructions

  1. Run these read-only prerequisite checks directly, combined in one shell command; they are safe and need no consent. Do not follow up by searching the filesystem for other CUDA installations or checkouts; report what is missing and ask instead:
    • uname -sm
    • locate nvcc from <CUDA_HOME>/bin/nvcc when CUDA_HOME is given, otherwise from PATH; run nvcc --version and nvcc --list-gpu-code
    • command -v make g++ python3
    • once the checkout and BUILDDIR are resolved, verify that the build directory's parent is writable and inspect available disk space
    • if nvidia-smi is available, run nvidia-smi --query-gpu=index,name,compute_cap --format=csv,noheader Report missing requirements instead of installing them. An unavailable, failing, empty, or unparseable nvidia-smi result means no GPU architecture was detected, not that compilation is impossible: ask for the target arch. With several visible archs, ask whether to build all or one. Confirm every target appears in nvcc --list-gpu-code.
  2. Work in an NCCL checkout (makefiles/version.mk present), or show: git clone https://github.com/NVIDIA/nccl.git, identify the destination, and wait for explicit approval before cloning.
  3. Show the resolved build command:
    env -u LD_PRELOAD -u LD_AUDIT -u LD_LIBRARY_PATH \
      make -j<N> src.build CUDA_HOME=<cuda> BUILDDIR=<dir> NVCC_GENCODE="<targets>"
    
    Before running a build, clone, install, or test command, give its one-line goal and a Parameter | Value | Meaning | Source table, then ask: run as shown, change, or cancel. On change, keep the other resolved values, apply the requested edits, revalidate affected inputs, and present the revised command for fresh approval. Read-only checks need no prompt. Never use sudo or /usr/local unless requested. When the user only asks to see the command, present it fully resolved from the values they supplied even if prerequisites are missing; for example, sm_90 becomes NVCC_GENCODE="-gencode=arch=compute_90,code=sm_90". Mark values not yet validated in the Source column, list the missing prerequ
Полный SKILL.md на GitHub

Установить nccl-build в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

BENCHMARK.mdevals/evals.jsonreferences/build_options.mdreferences/examples.mdreferences/nccl_tests.mdskill-card.mdskill.oms.sig

FAQ

Что делает скилл nccl-build?

Use to build NCCL, its repository examples, and optionally nccl-tests on a CUDA Linux host - guide environment detection, GPU architecture selection, Make builds, and safe execution.

Как установить скилл nccl-build?

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

Скилл nccl-build запускает скрипты?

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

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

Сравнить nccl-build с