doca-gpunetio
БесплатноБез исполняемых скриптовНе проверенUse this skill when the user is doing hands-on DOCA GPUNetIO programming — wiring a CUDA kernel on an NVIDIA GPU to a doca-eth queue via doca_gpu_eth_rxq /…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
DOCA GPUNetIO
Host checks. Commands here that inspect the user's DOCA host (listing or reading
/opt/mellanox/doca, release files such as/etc/mlnx-releaseor/etc/nvidia/bf-release,/dev/mst) or reach the BlueField (RShim, SSH, BMC) are for that host. Run them yourself only if the user confirms you are on it; otherwise answer from this skill, give the commands for the user to run, and treat values you can't see as unknown.
Examples
- "CUDA kernel reading packets directly from the NIC." — this is
in scope. Stay on
doca_gpu_eth_rxq/_txqand the persistent kernel; do not rewrite it as host-CPU Ethernet. - "DOCA_ERROR_DRIVER on doca_gpu_create." — check CUDA device
match and dmabuf /
nvidia-peermemregistration before changing queue type.
Instructions
Follow Loading order below. Open the tasks companion for configure / build / run. Open the capabilities companion for GPU vs host path selection. Do not open every companion file.
Where to start: This skill assumes DOCA is already installed,
the CUDA toolkit is installed and matched to the DOCA install, and
the user is doing hands-on GPUNetIO work — i.e. wiring a DOCA
network queue into a CUDA kernel on an NVIDIA GPU. Open
the tasks companion if the user wants to do something
(configure / build / modify / run / test / debug); open
the capabilities companion when the question is what
can GPUNetIO express on this version + this GPU. If the user has
not installed DOCA yet, route to
doca-setup/SKILL.md first; if the user has
not set up the underlying Ethernet RX/TX queues yet, that is a
DOCA Ethernet question — route to
doca-eth/SKILL.md.
Example questions this skill answers well
The CLASSES of GPUNetIO questions this skill is built to answer, each with one worked example. The agent should treat the class as the load-bearing piece — the worked example is a single instance.
- "How do I get a CUDA kernel to receive packets directly from
the NIC?" — worked example: "persistent kernel on one GPU
reads packets from a
doca_gpu_eth_rxqbuilt on top of a representordoca_eth_rxqand counts them per-flow". Answered by the persistent-kernel pattern inCapabilities and modes
- the GPU-side bring-up workflow in
configure.
- "Can I run GPUNetIO on this GPU?" — worked example: "my
host has one Ampere card and one Turing card; which one
supports GPU-initiated networking?". Answered by the dual
capability-discovery rule (DOCA cap-query AND
cudaGetDevicePropertiesagainst the CUDA device ordinal) inCapabilities and modes
- the device-enumeration step in
configure.
- "Why does my GPUNetIO setup fail with
DOCA_ERROR_NOT_SUPPORTEDeven though doca-eth came up fine?" — worked example: "nvidia_peermemis not loaded so GPUDirect RDMA is unavailable". Answered by the env preconditions in ## Safety policy- the env checklist in
configure step 1.
- "How do I move data between CUDA-allocated buffers and a DOCA
queue?" — worked example: "use
cudaMallocfor the receive buffer pool and register it with DOCA viadoca_buf_arr_create+doca_buf_arr_set_target_gpubefore starting the context". Answered by the CUDA-allocator- DOCA-registration overlay in
Safety policy
- the buffer-prep step in
configure step 4.
- "Is the GPUNetIO API I'm reading about on my installed DOCA +
CUDA combination?" — worked example: "is the persistent-kernel
helper available with the CUDA toolkit version I have?".
Answered by the version-compatibility overlay in
Version compatibility
which cross-links the canonical detection chain indoca-version/SKILL.mdand adds the GPUNetIO-specific DOCA must match CUDA overlay. - "What does this
DOCA_ERROR_*from a GPUNetIO call mean and which layer caused it?" — worked example: "DOCA_ERROR_DRIVERondoca_gpu_*_create— is it DOCA, CUDA, or the underlying doca-eth queue?". Answered by the GPUNetIO overlay on the cross-library taxonomy inError taxonomy
- the layered ladder in
debug that escalates to
doca-debug/SKILL.md.
Audience
This skill serves external developers building applications
that consume the DOCA GPUNetIO library — i.e., users whose code
calls doca_gpu_* from host C/C++ to stand up the per-GPU
context and the GPU-visible queue handles, and whose CUDA kernel
(.cu translation unit) uses those handles from device code to
submit / receive packets. The canonical target shape is the GPU
Packet Processing reference application: a CUDA persistent
kernel on an NVIDIA GPU that polls a GPU-visible RX queue and
processes packets in-place on the GPU. It is not for NVIDIA
developers contributing to DOCA GPUNetIO itself.
Language scope. DOCA GPUNetIO ships as a C / CUDA library
with pkg-config module name doca-gpunetio. The host-side API
is C; the device-side API is CUDA C++ used inside a .cu
kernel. The shipped sa
Установить doca-gpunetio в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл doca-gpunetio?
Use this skill when the user is doing hands-on DOCA GPUNetIO programming — wiring a CUDA kernel on an NVIDIA GPU to a doca-eth queue via doca_gpu_eth_rxq / doca_gpu_eth_txq, standing up the per-CUDA-device doca_gpu context, designing the persistent CUDA kernel that drains the GPU-visible queue, running the dual capability check (DOCA cap-query plus cudaGetDeviceProperties), registering cudaMalloc pools via doca_buf_arr_create, or debugging DOCA_ERROR_* returns from the GPUNetIO API. Trigger even when the user does not explicitly mention "DOCA GPUNetIO" or "persistent kernel" — typical implicit phrasings include "CUDA kernel reading packets directly from the NIC", "GPU-initiated networking on BlueField", "DOCA_ERROR_DRIVER on doca_gpu_create", "nvidia_peermem not loaded", "kernel-per-packet is too slow", or "which GPU supports GPU-side packet I/O". Refuse and route elsewhere for general CUDA programming, DOCA Ethernet queue bring-up, DOCA DPA, or DOCA install — those belong to other skills.
Как установить скилл doca-gpunetio?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doca-gpunetio запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic