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★ 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 clonehttps://github.com/NVIDIA/nccl.git. - Write access to the selected build directory and enough free disk space.
- Optional: NVIDIA driver and
nvidia-smifor 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 containsmakefiles/version.mk.CUDA_HOME: user-supplied CUDA Toolkit root, otherwise derive it fromnvcconPATH.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:
- Show the exact command and affected paths.
- Explain its purpose and expected changes.
- Ask the user to approve, modify, or cancel it.
- 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
- 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
nvccfrom<CUDA_HOME>/bin/nvccwhenCUDA_HOMEis given, otherwise fromPATH; runnvcc --versionandnvcc --list-gpu-code command -v make g++ python3- once the checkout and
BUILDDIRare resolved, verify that the build directory's parent is writable and inspect available disk space - if
nvidia-smiis available, runnvidia-smi --query-gpu=index,name,compute_cap --format=csv,noheaderReport missing requirements instead of installing them. An unavailable, failing, empty, or unparseablenvidia-smiresult 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 innvcc --list-gpu-code.
- Work in an NCCL checkout (
makefiles/version.mkpresent), or show:git clone https://github.com/NVIDIA/nccl.git, identify the destination, and wait for explicit approval before cloning. - Show the resolved build command:
Before running a build, clone, install, or test command, give its one-line goal and aenv -u LD_PRELOAD -u LD_AUDIT -u LD_LIBRARY_PATH \ make -j<N> src.build CUDA_HOME=<cuda> BUILDDIR=<dir> NVCC_GENCODE="<targets>"Parameter | Value | Meaning | Sourcetable, 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 usesudoor/usr/localunless 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_90becomesNVCC_GENCODE="-gencode=arch=compute_90,code=sm_90". Mark values not yet validated in theSourcecolumn, list the missing prerequ
Установить nccl-build в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
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