doca-gpi
Use this skill for hands-on DOCA GPI programming — wiring a GPU-Packet-Initiator context so a CUDA kernel drives RDMA queues directly from GPU memory without host CPU mediation.
Install / Use
npx skills add NVIDIA/skills --skill doca-gpiInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of doca-gpi
doca-gpi scores 88/100 on our quality scale, 966th of 3,356 Development & Engineering skills we index (top 29%).
Its SKILL.md is 15 KB long, well organised into 9 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 3,421 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 5 days ago, so doca-gpi is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
doca-gpi compared with similar skills
All 4 of these similar skills score higher than doca-gpi; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| doca-gpi (this skill)by NVIDIA | 88 | 3.4k | 5d ago | SKILL.md |
| ai-job-searchby MadsLorentzen | 100 | 44.4k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 2d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 6d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 6d ago | SKILL.md |
Frequently asked questions
- How do I install doca-gpi?
- Run
npx skills add NVIDIA/skills --skill doca-gpi. The install tabs above show the steps for each supported agent. - Which AI agents does doca-gpi work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is doca-gpi safe to use?
- It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is doca-gpi still maintained?
- The repository was last updated 5 days ago, so doca-gpi is actively maintained.
Skill content
View source on GitHublicense: Apache-2.0
name: doca-gpi
description: >
Use this skill for hands-on DOCA GPI programming
— wiring a GPU-Packet-Initiator context so a CUDA kernel drives
RDMA queues directly from GPU memory without host CPU mediation.
Covers picking GPI vs doca-gpunetio, the doca_gpi / domain /
channel object model, the GPU-side handle handoff
(doca_gpu_gpi_channel*), attaching GPU memory to a GPI domain,
the domain and channel attribute objects, and debugging
DOCA_ERROR_* from doca_gpi_* calls. Trigger even when the user
does not explicitly mention "DOCA GPI" — implicit
phrasings include "my CUDA kernel needs to post RDMA directly
from GPU memory", "DOCA_ERROR_* from doca_gpi_gpu_channel_get",
"how do I hand a GPU handle to my CUDA kernel", "how many
channels can a GPI domain hold", or "GPU kernel driving RDMA
without the host CPU on the path". Refuse and route elsewhere
for the doca-gpunetio
Send/Receive surface, the doca-rdma queue lifecycle, DPA-side
initiation (doca-rdmi), or the CUDA programming model — those
belong to other skills.
metadata:
kind: library
compatibility: >
Requires DOCA SDK installed at /opt/mellanox/doca on Linux (Ubuntu
22.04/24.04 or RHEL/SLES) with a BlueField DPU or ConnectX NIC
attached, plus an NVIDIA GPU with CUDA Toolkit installed
(GPUDirect-style PCIe path between GPU and NIC). Reads the local
install via pkg-config doca-gpi (co-requires doca-gpunetio,
doca-dpa, doca-verbs) and inspects /opt/mellanox/doca/{lib,include,samples,applications}.
DOCA GPI
Where to start: This skill assumes DOCA is already installed
and the user is doing hands-on GPI work on a host that has both
a BlueField / ConnectX device and an NVIDIA GPU reachable over
PCIe. Open TASKS.md if the user wants to do
something (install / configure / build / modify / run / test /
debug / use); open CAPABILITIES.md when the
question is what can GPI express on this version — the domain +
channel object model, the GPU-side handle handoff, the relationship
to doca-gpunetio and doca-verbs, the attribute objects, and the
safety overlay. If the user has not installed DOCA yet, route to
doca-setup first.
Example questions this skill answers well
The CLASSES of GPI 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.
- "Should I use
doca-gpiordoca-gpunetiofor this case?" — worked example: "my CUDA kernel needs to post RDMA writes directly to a remote DPU's memory — do I want the higher-level Send/Receive surface or the lower-level channel/queue surface?". Answered by the channel-level vs Send/Receive-level selection rule inCAPABILITIES.md ## Capabilities and modessurface-selection table. - "How do I bring up a GPI channel and connect it to a remote
peer?" — worked example: "create the GPI, set domain + channel
attribute sizing, create the channel, exchange endpoint
connection info with the remote, connect the endpoint". Answered
by the channel-object lifecycle in
CAPABILITIES.md ## Capabilities and modes- the configure walk in
TASKS.md ## configure.
- the configure walk in
- "What is the GPU-side handle and how do I hand it to my CUDA
kernel?" — worked example: "
doca_gpi_gpu_channel_getreturns adoca_gpu_gpi_channel*— how do I get that into my CUDA kernel's argument list?". Answered by the GPU-handoff pattern inCAPABILITIES.md ## Capabilities and modes- the run-side wiring in
TASKS.md ## run, cross-linked intodoca-gpunetiofor the CUDA-side programming surface itself.
- the run-side wiring in
- "What does my CUDA + GPU + DOCA version stack need to look
like?" — worked example: "I have BlueField-3 + A100; which
CUDA Toolkit and which DOCA version do I need?". Answered by
the version-overlay in
CAPABILITIES.md ## Version compatibility- the install-checks in
TASKS.md ## install.
- the install-checks in
- "How do I size the channels and work queues I want?" —
worked example: "I want 64 channels in a domain, each with a
1024-entry send queue; which setters express that?". Answered
by the attribute-object sizing rule
(
doca_gpi_domain_attr_set_num_channels,doca_gpi_channel_attr_set_sq_wqe_num) inCAPABILITIES.md ## Capabilities and modes- the sizing step in
TASKS.md ## configure.
- the sizing step in
- "What does this
DOCA_ERROR_*from adoca_gpi_*call mean?" — worked example: "DOCA_ERROR_*fromdoca_gpi_gpu_channel_get". Answered by the GPI overlay on the cross-library taxonomy inCAPABILITIES.md ## Error taxonomy- the layered ladder in
TASKS.md ## debugthat escalates todoca-debug.
- the layered ladder in
Audience
This skill serves external developers building GPU-resident DOCA
applications that need to drive RDMA queues directly from CUDA
kernels — i.e., users whose accelerator-side code wants to post
RDMA work from GPU memory without round-tripping through the host
CPU. The canonical caller is a CUDA kernel that runs on an NVIDIA
GPU on the same host as a BlueField / ConnectX device, has
GPUDirect-style access to the DPU's RDMA queues through the
DOCA GPU-NetIO stack, and uses the GPI channel + queue handle to
drive RDMA initiation. This skill is not for NVIDIA developers
contributing to DOCA GPI itself, and it is not the right surface
for the higher-level Send/Receive Ethernet-shaped GPU NetIO API —
that belongs to doca-gpunetio.
Language scope
DOCA GPI ships as a C library with the pkg-config module name
doca-gpi. The library's host-side surface (doca_gpi_*)
is C; the GPU-side surface — the doca_gpu_gpi_channel*
handle and the device-side calls a CUDA kernel uses against that
handle — is compiled with nvcc against the DOCA GPU NetIO
device-side header set documented in
doca-gpunetio. Other-language
consumers (Rust, Go, Python, …) consume the host-side *.so
through FFI; the skill's contribution in that case is to keep the
channel / queue lifecycle, the GPU-handle handoff, the version
discipline, and the safety overlay language-neutral, and to route
the agent to the public C ABI as the authoritative surface that
any wrapper will eventually call. The GPU-side surface is not
wrappable in another language — it is compiled and linked into
the CUDA binary itself.
When to load this skill
Load this skill when the user is doing hands-on DOCA GPI work on a host with both a BlueField / ConnectX device and an NVIDIA GPU. Concretely:
- Deciding between
doca-gpi(the lower-level channel/queue surface) anddoca-gpunetio(the higher-level Send/Receive surface) for a new GPU-initiated RDMA workload. - Creating a
doca_gpion adoca_dev, configuring it via thedoca_gpi_set_*family (domain count, GID index, port) and sizing domains and channels through thedoca_gpi_domain_attr_*/doca_gpi_channel_attr_*setters beforedoca_gpi_start(). - Creating a channel with
doca_gpi_channel_createand retrieving its GPU-side handle withdoca_gpi_gpu_channel_get, then handing the GPU-side handle to a CUDA kernel. - Exchanging endpoint connection info with a remote peer using
doca_gpi_channel_ep_conn_info_create/doca_gpi_channel_ep_connectto establish the GPU-driven channel end-to-end. - Attaching memory regions to a GPI domain with
doca_gpi_domain_attach_local_mmap/doca_gpi_domain_attach_remote_mmap(each backed by adoca_mmapthe application created). - Debugging a
DOCA_ERROR_*returned by adoca_gpi_*call and deciding whether the cause is a lifecycle ordering bug, a GPU datapath mis-assignment, a CUDA-version mismatch, or a layer below DOCA.
Do not load this skill for general DOCA orientation, install
of DOCA itself, host-CPU-initiated RDMA, or the higher-level GPU
NetIO Send/Receive Ethernet-shaped API. For those, use
doca-public-knowledge-map,
doca-setup,
doca-rdma, and
doca-gpunetio respectively.
When one question spans the GPI channel lifecycle and CUDA-side
GPU NetIO behavior, load both skills: this skill owns GPI object
creation, connection, and teardown, while doca-gpunetio owns
kernel launch and device-side execution. If that boundary remains
ambiguous after reading both scopes, stop and ask which side is
failing instead of choosing one implicitly.
What this skill provides
This is a thin loader. The body keeps only the orientation needed to pick the right next file. The substantive GPI-specific material lives in two companion files:
CAPABILITIES.md— what GPI can express on this version: thedoca_gpi/doca_gpi_domain/doca_gpi_channelobject model, the GPU-side handle handoff, the relationship todoca-gpunetio(which owns the GPU-sidedoca_gpu_gpi_channel*device surface) and todoca-verbsanddoca-dpa(the transport and DPA layers GPI builds on), the domain and channel attribute objects, the maturity statement (everydoca_gpi_*symbol isDOCA_EXPERIMENTAL), the GPI overlay on the cross-libraryDOCA_ERROR_*taxonomy, the observability surface (CUDA-side channel polling, mmap-attach exchange), and the safety policy that gates GPU-side RDMA initiation.TASKS.md— step-by-step workflows for the eight in-scope verbs:install,configure,build,modify,run,test,debug,use. Plus aDeferred task verbsblock that points out-of-scope questions at the right next skill.
The skill assumes a host where DOCA is already installed at the
standard location, a CUDA Toolkit compatible with the installed
DOCA is present, and the user has the privileges their public
install profile expects. It does not cover installing DOCA — that
path goes through doca-setup.
What this skill deliberately does not ship
This skill is agent guidance, not a samples or templates bundle. To keep the boundary clean, it deliberately does not contain — and pull requests should not add:
- Pre-written DOCA GPI application source code, in any
language. The agent's job is to route the user to verified
reference code (the shipped DOCA GPU-NetIO samples on the
installed package set are the canonical worked examples for the
GPU-side handoff) and to prescribe a minimum-diff modification
via the universal modify-a-sample workflow in
doca-programming-guide. Because every GPI symbol is taggedDOCA_EXPERIMENTALin the public header, the skill refuses to author GPI source from documentation prose. - Standalone build manifests (
meson.build,CMakeLists.txt,Cargo.toml, …) parked inside the skill. The agent constructs the build manifest in the user's project directory against the user's installed DOCA, wherepkg-config --modversion doca-gpiis the source of truth. - CUDA kernel templates. The CUDA-side surface is owned by
doca-gpunetio; GPI's GPU-side handle is consumed by the CUDA programming model documented there. This skill names the GPI-specific handoff (thedoca_gpu_gpi_channel*type, the channel-connect call) but does not author CUDA kernels. - **A
samples/,bindings/, orreference/
Truncated for display — read the full file on GitHub.
Related Skills
ai-job-search
44.4kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
