DOCA DPA
Where to start: This skill assumes DOCA is already installed,
the user's BlueField has a DPA processor and the host can see it
through DOCA, and the user is doing hands-on DPA work from the
host side — i.e. using doca-dpa to load a DPA application
image, launch DPA kernels, and exchange data with the DPA
processor. Open TASKS.md if the user wants to do
something (configure / build / modify / run / test / debug); open
CAPABILITIES.md when the question is what
can the host-side DPA API express on this version + this
BlueField generation. If the user has not installed DOCA yet,
route to doca-setup first; if the
user is asking how to write the DPA-side kernel itself (the
code that runs on the DPA processor, compiled by dpacc), that
is a different scope — route via
doca-public-knowledge-map
to the public DOCA DPA / DPACC / DPA-Comms / DPA-Verbs guides
(this skill does not redefine those DPA-side surfaces).
Example questions this skill answers well
The CLASSES of DPA 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 run a piece of compute on the DPA processor from
my host program?" — worked example: "load a DPA kernel that
counts events in a loop and reports the count back to the
host". Answered by the two-side-program model + the
host-side launch workflow in
CAPABILITIES.md ## Capabilities and modes
- the bring-up steps in
TASKS.md ## configure.
- "Does this BlueField even have a DPA, and which DPA features
does my DOCA install expose?" — worked example: "my host
has a BlueField; can I use the DPA on it for a programmable
control workload?". Answered by the dual-axis capability rule
(BlueField-generation axis via
doca_dpa_cap_* against the
active doca_devinfo plus the DOCA-install axis via
pkg-config --modversion doca-dpa) in
CAPABILITIES.md ## Capabilities and modes
- the device-enumeration step in
TASKS.md ## configure.
- "Why does my host-side DPA setup fail with
DOCA_ERROR_NOT_SUPPORTED even though DOCA Core looks
healthy?" — worked example: "the BlueField generation in
this host predates the DPA feature my code uses". Answered by
the env-precondition matrix in
CAPABILITIES.md ## Safety policy
- the env checklist in
TASKS.md ## configure step 1.
- "How do I get arguments and results between my host program
and my DPA kernel?" — worked example: "pass a buffer pointer
and a length into the DPA kernel as launch arguments; read a
completion back when the kernel finishes". Answered by the
launch-argument + completion overlay in
CAPABILITIES.md ## Capabilities and modes
- the launch + drain steps in
TASKS.md ## run.
- "Is the DPA host-side API I'm reading about on my installed
DOCA?" — worked example: "is the host-side launch helper I
see in the docs available against the DOCA + DPACC versions on
this host?". Answered by the version-compatibility overlay in
CAPABILITIES.md ## Version compatibility
which cross-links the canonical detection chain in
doca-version and adds the
DPA-specific DOCA must match DPACC overlay.
- "What does this
DOCA_ERROR_* from a doca_dpa_* call mean
and which layer caused it?" — worked example: "DOCA_ERROR_DRIVER
on a host-side launch call — is it DOCA, the DPACC-produced
image, or the DPA processor itself?". Answered by the DPA
overlay on the cross-library taxonomy in
CAPABILITIES.md ## Error taxonomy
- the layered ladder in
TASKS.md ## debug that escalates to
doca-debug.
- "How does my DPA kernel send a small message to another
DPA thread on the same DPA processor?" — worked example:
"two DPA threads in the same loaded
doca_dpa_app; thread A
sends a counter value to thread B over a DPA-side comms
endpoint and thread B signals the host through
doca_dpa_completion". Answered by the DPA-Comms routing
rule, primitive families, host-side capability-budget rule,
and DPA-Comms error overlay in
CAPABILITIES.md ## comms plus the
configure / build / modify / run / test / debug overlay in
TASKS.md ## comms. Disambiguates the DPA
device-side comm component from host-side doca-comch and
host-side doca-rdma.
- "How do I do RDMA directly from inside my DPA kernel to a
remote peer, without round-tripping to the host?" — worked
example: "my DPA kernel needs to fetch the next 4 KiB input
buffer from a remote node via RDMA read before continuing
compute; the host round-trip is the measured bottleneck".
Answered by the 4-way RDMA matrix, the host-configures-QP /
DPA-uses-QP coupling rule, the host-side cap-query rule for
the specific verb, and the DPA-Verbs error overlay in
CAPABILITIES.md ## verbs plus the
workflow overlay in TASKS.md ## verbs.
Includes the climb-back rule for when the latency-tuning
premise stops holding.
Audience
This skill serves external developers building applications
that consume the DOCA DPA library from the host side — i.e.,
users whose code calls doca_dpa_* from host C / C++ to stand
up the per-DPA-instance context, load a DPA application image
that dpacc produced from their DPA-side source, create one or
more DPA threads, launch DPA kernels with arguments, and drain
completions. It is not for NVIDIA developers contributing to
DOCA DPA itself, nor is it the place to learn how to write
the DPA-side kernel code (that path goes through the public
DOCA DPA, DPACC, DPA-Comms, and DPA-Verbs guides via
doca-public-knowledge-map).
Language scope. DOCA DPA ships as a host-side C library
with pkg-config module name doca-dpa. The host-side API is
C; the DPA-side kernel is a separate translation unit written
in the language the DPACC compiler accepts and compiled by
dpacc into a binary that the host packages into the
executable as the DPA application image. The shipped samples
under /opt/mellanox/doca/samples/doca_dpa/ are written in C
plus DPA-side source (NVIDIA's choice). Other-language
consumers are limited in practice — the DPA-side kernel has no
FFI escape hatch because it must be a translation unit dpacc
accepts — but a Rust / Go / Python host-side wrapper that drives
doca_dpa_* setup and launches a DPA kernel image built
separately is still useful, and the skill keeps the lifecycle,
capability-discovery, env-precondition, and error-taxonomy
guidance language-neutral.
When to load this skill
Load this skill when the user is doing hands-on DOCA DPA work
from the host side, in any host language plus a DPA-side
translation unit built by dpacc. Concretely:
- Initializing a
doca_dpa against a doca_dev that maps to a
BlueField with a DPA processor visible to the host.
- Loading a DPA application image (
doca_dpa_app) that
dpacc produced from the user's DPA-side source, into the
doca_dpa context.
- Creating one or more DPA execution contexts (
doca_dpa_thread)
so DPA kernels have somewhere to run on the DPA processor.
- Launching a DPA kernel function with arguments from the host
via the
doca_dpa_kernel_launch_update_* family, and
reasoning about which argument shape is supported on this
install.
- Attaching a
doca_dpa_completion to observe when async DPA
work finishes, and draining it from the host side.
- Checking which DPA features are supported on the active
doca_devinfo via the doca_dpa_cap_* family — BlueField
generations differ in DPA hardware support.
- Debugging a
DOCA_ERROR_* returned from a doca_dpa_* call
— in particular disambiguating DPA not present on this
BlueField from DPA feature too new for this hardware
generation from DPACC-produced image mismatched against
the host-side DOCA install from DPA driver layer
reporting failure.
- Designing host-side bindings in a non-C language that drive
a DPA application image they built separately with
dpacc —
the env-precondition and capability-discovery rules in this
skill still apply.
- Writing DPA-side kernel code that calls the DPA device-side
comm component
libdoca_dpa_dev_comm.a (header
doca_dpa_dev_comch_msgq.h) — for inter-DPA-thread
messaging or coordination signals between DPA threads on the
same doca_dpa_app. The DPA-Comms routing rule, primitive
families, capability rule (there is no per-primitive host
cap-query family — host-side DPA discovery is only
doca_dpa_cap_is_supported /
doca_dpa_cap_get_max_kernel_time_alive_supported), error
overlay (_AGAIN → kernel must yield; _BAD_STATE
disambiguation from the parent's host-side _BAD_STATE), and
the configure / build / modify / run / test / debug overlay
live in CAPABILITIES.md ## comms and
TASKS.md ## comms under this same skill.
- Writing DPA-side kernel code that calls the DPA device-side
verbs component
libdoca_dpa_dev_verbs.a (header
doca_dpa_dev_verbs.h) — for RDMA from inside
the DPA kernel to a remote peer when the host round-trip is
the measured latency bottleneck. The 4-way RDMA matrix, the
host-configures-QP / DPA-uses-QP coupling rule, the
capability rule (no per-verb host cap-query family exists;
verb availability follows the BlueField generation + matched
DOCA/DPACC install, read from doca_dpa_dev_verbs.h and the
shipped sample), the IO_FAILED → CQE-inspection
overlay, and the climb-back rule live in
CAPABILITIES.md ## verbs and
TASKS.md ## verbs under this same skill.
Do not load this skill for general DOCA orientation,
install of DOCA or the DPACC compiler, the DPA-side
programming model itself (how to write a DPA kernel; the
DPA device-side comm and verbs components
(libdoca_dpa_dev_comm.a / libdoca_dpa_dev_verbs.a) that
run inside the DPA kernel), or non-DPA library questions.
For those, route through
doca-public-knowledge-map
to the matching upstream guide.
What this skill provides
This is a thin loader. The body keeps only the orientation
needed to pick the right next file. The substantive
DPA-specific material lives in two companion files:
CAPABILITIES.md — what the host-side DPA API can express on
this version + this BlueField generation: the per-DPA-instance
doca_dpa context, the loaded doca_dpa_app image produced
by dpacc, the doca_dpa_thread execution context, the
host-initiated kernel launch surface
(doca_dpa_kernel_launch_update_*), the doca_dpa_completion
mechanism, the capability-query surface (doca_dpa_cap_*),
the DPA error taxonomy mapped onto the cross-library
DOCA_ERROR_* set, the observability surface (host-side
completions plus the public DPA developer tools surface
reachable via doca-public-knowledge-map), and the safety
policy that gates env preconditions (DPA-capable BlueField,
matched DOCA + DPACC versions, DPA-side image and host-side
expected entry points agree).
TASKS.md — step-by-step workflows for the six in-scope DPA
verbs: configure, build, modify, run, test,
debug. Plus a Deferred task verbs block 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 BlueField with a DPA processor is
physically present and visible to the host, the DPACC compiler
is installed at a version matched to the DOCA install per the
DOCA Compatibility Policy, and the user already knows how (at
least at a sketch level) to write the DPA-side kernel that
dpacc will compile. It does not cover installing DOCA or the
DPACC compiler — 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 DPA application source code or DPA-side
kernel source, in any language. The verified DPA source is
the shipped C + DPA-side samples at
/opt/mellanox/doca/samples/doca_dpa/. The agent's job is to
route the user to those files and prescribe a minimum-diff
modification on them via the universal modify-a-sample
workflow in
doca-programming-guide,
layered with the DPA-specific overrides in
TASKS.md ## modify.
- Standalone build manifests (
meson.build,
CMakeLists.txt, …) parked inside the skill. The agent
constructs the build manifest in the user's project
directory against the user's installed DOCA + DPACC
compiler, where pkg-config --modversion doca-dpa and the
installed dpacc are the two sources of truth.
- A
samples/, bindings/, or reference/ subtree of any
kind. A mock or incomplete artifact in this skill's tree,
even one labeled "reference", is misleading: users will read
it as buildable.
- DPA device-side content for the comm / verbs components
(
libdoca_dpa_dev_comm.a / libdoca_dpa_dev_verbs.a).
These are DPA-side archives shipped as part of doca-dpa
(NOT separate pkg-config modules): their symbols are called
from inside the DPA kernel and linked into the DPA image by
dpacc, not from the host. Their public guides are reachable
via
doca-public-knowledge-map.
This skill names them and routes; it does not redefine them.
Loading order
- Read this
SKILL.md first to confirm the user's question is
in scope (host-side DPA work, not DPA-side kernel-writing).
- For the DPA capability matrix, the
doca_dpa per-instance
context, the loaded doca_dpa_app image, the
doca_dpa_thread execution context, the kernel-launch +
completion model, the dual capability query, the
env-precondition policy, the error taxonomy, the
observability surface, and the safety policy, see
CAPABILITIES.md.
- For step-by-step workflows — configure, build, modify,
run, test, debug — see TASKS.md.
Both companion files cross-link to each other,
doca-version for the canonical
DOCA version-handling rules (with the DPA overlay that DOCA
must match the DPACC compiler), and
doca-public-knowledge-map
whenever the right answer is "look it up in the public DOCA
DPA, DPACC, DPA-Comms, or DPA-Verbs guide, or in the on-disk
install layout" rather than "DPA host-side-specific guidance".
Related skills
doca-public-knowledge-map —
the routing table for every public DOCA documentation
source and the on-disk layout of an installed DOCA package.
The DPA public guide is at
https://docs.nvidia.com/doca/sdk/DOCA-DPA/index.html; the
DPACC compiler guide, the DPA-Comms guide (DPA-side
communications), the DPA-Verbs guide (DPA-side verbs), and
the DPA Tools umbrella (developer / admin CLIs for DPA)
live in the same routing table and are companion surfaces
to this skill rather than redefined by it.
doca-setup — env preparation,
install verification, DPACC compiler install / verification,
and the I have no install yet path with the public NGC
DOCA container. This skill assumes its preconditions are
satisfied AND that DPACC is installed at a version that
matches DOCA.
doca-version — canonical
DOCA version-handling rules. This skill's ## Version compatibility cross-links the four-way match rule and adds
the DPA-specific DOCA-and-DPACC must match overlay per the
DOCA Compatibility Policy.
doca-structured-tools-contract —
the bundle's structured-tools precedence rule (detect /
prefer / fall back / report). The Command appendix in
TASKS.md honors this contract.
doca-programming-guide —
general DOCA programming patterns shared by every library:
the canonical pkg-config + meson build pattern, the
universal modify-a-shipped-sample first-app workflow, the
universal Core-context lifecycle, the cross-library
DOCA_ERROR_* taxonomy, and the program-side debug order.
This skill layers DPA specifics on top.
doca-debug — the cross-cutting
debug ladder (install / version / build / link / runtime /
program / driver). DPA-specific debug (DPACC + DOCA version
skew, DPA not present on this BlueField generation, DPA
kernel hangs that show no host-side completion,
launch-argument shape mismatches between the host launch
call and the DPA-side function signature) overlays on top
of that ladder.
DOCA DPA's DPA device-side components — the comm archive
libdoca_dpa_dev_comm.a (communication primitives the DPA
kernel itself calls, header doca_dpa_dev_comch_msgq.h) and
the verbs archive libdoca_dpa_dev_verbs.a (ibverbs-like RDMA
verbs the DPA kernel itself calls, header
doca_dpa_dev_verbs.h) — are DPA-side archives shipped
within doca-dpa, not separate pkg-config modules, and each
has its own public guide. No library skill ships for them in
this bundle yet; for any DPA-side question, route via
doca-public-knowledge-map
to the public DOCA DPA Comms and DOCA DPA Verbs guides
and to the shipped /opt/mellanox/doca/samples/doca_dpa/
samples (which include both host-side and DPA-side
translation units). Conflating them with doca-dpa is the
single most common DPA first-app design error.
1---2name: doca-dpa3description: Use this skill when the user is doing hands-on DOCA DPA host-side work on a BlueField — creating the `doca_dpa` Core context, loading a DPACC-compiled DPA app image (`doca_dpa_app`), creating DPA threads, launching kernels via `doca_dpa_kernel_launch_update_*`, draining `doca_dpa_completion`, running `doca_dpa_cap_*` discovery, choosing between the DPA comm component (inter-DPA messaging) and the DPA verbs component (in-kernel RDMA), or debugging `DOCA_ERROR_*` from `doca_dpa_*`. Trigger even without "DOCA DPA" or "Data-Path Accelerator": "run compute on the DPA from my host", "DPA kernel hangs, no completion", "DOCA_ERROR_DRIVER on launch", "DOCA/DPACC version skew", or "does this BlueField expose a DPA". Route elsewhere for DPA-side kernel programming itself, DPACC compiler internals, host↔DPU messaging (doca-comch), host-side RDMA (doca-rdma), and GPU-initiated networking (doca-gpunetio).4license: Apache-2.05---67# DOCA DPA89**Where to start:** This skill assumes DOCA is already installed,10the user's BlueField has a DPA processor and the host can see it11through DOCA, and the user is doing **hands-on DPA work from the12host side** — i.e. using `doca-dpa` to load a DPA application13image, launch DPA kernels, and exchange data with the DPA14processor. Open [`TASKS.md`](TASKS.md) if the user wants to *do*15something (configure / build / modify / run / test / debug); open16[`CAPABILITIES.md`](CAPABILITIES.md) when the question is *what17can the host-side DPA API express* on this version + this18BlueField generation. If the user has not installed DOCA yet,19route to [`doca-setup`](../../doca-setup/SKILL.md) first; if the20user is asking how to *write* the DPA-side kernel itself (the21code that runs on the DPA processor, compiled by `dpacc`), that22is a different scope — route via23[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)24to the public DOCA DPA / DPACC / DPA-Comms / DPA-Verbs guides25(this skill does not redefine those DPA-side surfaces).2627## Example questions this skill answers well2829The CLASSES of DPA questions this skill is built to answer, each30with one worked example. The agent should treat the *class* as31the load-bearing piece — the worked example is a single32instance.3334- **"How do I run a piece of compute on the DPA processor from35 my host program?"** — worked example: *"load a DPA kernel that36 counts events in a loop and reports the count back to the37 host"*. Answered by the two-side-program model + the38 host-side launch workflow in39 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes)40 + the bring-up steps in41 [`TASKS.md ## configure`](TASKS.md#configure).42- **"Does this BlueField even have a DPA, and which DPA features43 does my DOCA install expose?"** — worked example: *"my host44 has a BlueField; can I use the DPA on it for a programmable45 control workload?"*. Answered by the dual-axis capability rule46 (BlueField-generation axis via `doca_dpa_cap_*` against the47 active `doca_devinfo` plus the DOCA-install axis via48 `pkg-config --modversion doca-dpa`) in49 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes)50 + the device-enumeration step in51 [`TASKS.md ## configure`](TASKS.md#configure).52- **"Why does my host-side DPA setup fail with53 `DOCA_ERROR_NOT_SUPPORTED` even though DOCA Core looks54 healthy?"** — worked example: *"the BlueField generation in55 this host predates the DPA feature my code uses"*. Answered by56 the env-precondition matrix in57 [`CAPABILITIES.md ## Safety policy`](CAPABILITIES.md#safety-policy)58 + the env checklist in59 [`TASKS.md ## configure`](TASKS.md#configure) step 1.60- **"How do I get arguments and results between my host program61 and my DPA kernel?"** — worked example: *"pass a buffer pointer62 and a length into the DPA kernel as launch arguments; read a63 completion back when the kernel finishes"*. Answered by the64 launch-argument + completion overlay in65 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes)66 + the launch + drain steps in67 [`TASKS.md ## run`](TASKS.md#run).68- **"Is the DPA host-side API I'm reading about on my installed69 DOCA?"** — worked example: *"is the host-side launch helper I70 see in the docs available against the DOCA + DPACC versions on71 this host?"*. Answered by the version-compatibility overlay in72 [`CAPABILITIES.md ## Version compatibility`](CAPABILITIES.md#version-compatibility)73 which cross-links the canonical detection chain in74 [`doca-version`](../../doca-version/SKILL.md) and adds the75 DPA-specific *DOCA must match DPACC* overlay.76- **"What does this `DOCA_ERROR_*` from a `doca_dpa_*` call mean77 and which layer caused it?"** — worked example: *"`DOCA_ERROR_DRIVER`78 on a host-side launch call — is it DOCA, the DPACC-produced79 image, or the DPA processor itself?"*. Answered by the DPA80 overlay on the cross-library taxonomy in81 [`CAPABILITIES.md ## Error taxonomy`](CAPABILITIES.md#error-taxonomy)82 + the layered ladder in83 [`TASKS.md ## debug`](TASKS.md#debug) that escalates to84 [`doca-debug`](../../doca-debug/SKILL.md).85- **"How does my DPA kernel send a small message to another86 DPA thread on the same DPA processor?"** — worked example:87 *"two DPA threads in the same loaded `doca_dpa_app`; thread A88 sends a counter value to thread B over a DPA-side comms89 endpoint and thread B signals the host through90 `doca_dpa_completion`"*. Answered by the DPA-Comms routing91 rule, primitive families, host-side capability-budget rule,92 and DPA-Comms error overlay in93 [`CAPABILITIES.md ## comms`](CAPABILITIES.md#comms) plus the94 configure / build / modify / run / test / debug overlay in95 [`TASKS.md ## comms`](TASKS.md#comms). Disambiguates the DPA96 device-side comm component from host-side `doca-comch` and97 host-side `doca-rdma`.98- **"How do I do RDMA directly from inside my DPA kernel to a99 remote peer, without round-tripping to the host?"** — worked100 example: *"my DPA kernel needs to fetch the next 4 KiB input101 buffer from a remote node via RDMA read before continuing102 compute; the host round-trip is the measured bottleneck"*.103 Answered by the 4-way RDMA matrix, the host-configures-QP /104 DPA-uses-QP coupling rule, the host-side cap-query rule for105 the specific verb, and the DPA-Verbs error overlay in106 [`CAPABILITIES.md ## verbs`](CAPABILITIES.md#verbs) plus the107 workflow overlay in [`TASKS.md ## verbs`](TASKS.md#verbs).108 Includes the climb-back rule for when the latency-tuning109 premise stops holding.110111## Audience112113This skill serves **external developers building applications114that consume the DOCA DPA library from the host side** — i.e.,115users whose code calls `doca_dpa_*` from host C / C++ to stand116up the per-DPA-instance context, load a DPA application image117that `dpacc` produced from their DPA-side source, create one or118more DPA threads, launch DPA kernels with arguments, and drain119completions. It is *not* for NVIDIA developers contributing to120DOCA DPA itself, nor is it the place to learn how to *write*121the DPA-side kernel code (that path goes through the public122DOCA DPA, DPACC, DPA-Comms, and DPA-Verbs guides via123[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)).124125**Language scope.** DOCA DPA ships as a host-side C library126with `pkg-config` module name `doca-dpa`. The host-side API is127C; the DPA-side kernel is a separate translation unit written128in the language the DPACC compiler accepts and compiled by129`dpacc` into a binary that the host packages into the130executable as the DPA application image. The shipped samples131under `/opt/mellanox/doca/samples/doca_dpa/` are written in C132plus DPA-side source (NVIDIA's choice). Other-language133consumers are limited in practice — the DPA-side kernel has no134FFI escape hatch because it must be a translation unit `dpacc`135accepts — but a Rust / Go / Python host-side wrapper that drives136`doca_dpa_*` setup and launches a DPA kernel image built137separately is still useful, and the skill keeps the lifecycle,138capability-discovery, env-precondition, and error-taxonomy139guidance language-neutral.140141## When to load this skill142143Load this skill when the user is doing hands-on DOCA DPA work144**from the host side**, in any host language plus a DPA-side145translation unit built by `dpacc`. Concretely:146147- Initializing a `doca_dpa` against a `doca_dev` that maps to a148 BlueField with a DPA processor visible to the host.149- Loading a DPA application image (`doca_dpa_app`) that150 `dpacc` produced from the user's DPA-side source, into the151 `doca_dpa` context.152- Creating one or more DPA execution contexts (`doca_dpa_thread`)153 so DPA kernels have somewhere to run on the DPA processor.154- Launching a DPA kernel function with arguments from the host155 via the `doca_dpa_kernel_launch_update_*` family, and156 reasoning about which argument shape is supported on this157 install.158- Attaching a `doca_dpa_completion` to observe when async DPA159 work finishes, and draining it from the host side.160- Checking which DPA features are supported on the active161 `doca_devinfo` via the `doca_dpa_cap_*` family — BlueField162 generations differ in DPA hardware support.163- Debugging a `DOCA_ERROR_*` returned from a `doca_dpa_*` call164 — in particular disambiguating *DPA not present on this165 BlueField* from *DPA feature too new for this hardware166 generation* from *DPACC-produced image mismatched against167 the host-side DOCA install* from *DPA driver layer168 reporting failure*.169- Designing host-side bindings in a non-C language that drive170 a DPA application image they built separately with `dpacc` —171 the env-precondition and capability-discovery rules in this172 skill still apply.173- Writing DPA-side kernel code that calls the DPA device-side174 comm component **`libdoca_dpa_dev_comm.a`** (header175 `doca_dpa_dev_comch_msgq.h`) — for inter-DPA-thread176 messaging or coordination signals between DPA threads on the177 same `doca_dpa_app`. The DPA-Comms routing rule, primitive178 families, capability rule (there is no per-primitive host179 cap-query family — host-side DPA discovery is only180 `doca_dpa_cap_is_supported` /181 `doca_dpa_cap_get_max_kernel_time_alive_supported`), error182 overlay (`_AGAIN` → kernel must yield; `_BAD_STATE`183 disambiguation from the parent's host-side `_BAD_STATE`), and184 the configure / build / modify / run / test / debug overlay185 live in [`CAPABILITIES.md ## comms`](CAPABILITIES.md#comms) and186 [`TASKS.md ## comms`](TASKS.md#comms) under this same skill.187- Writing DPA-side kernel code that calls the DPA device-side188 verbs component **`libdoca_dpa_dev_verbs.a`** (header189 `doca_dpa_dev_verbs.h`) — for RDMA from inside190 the DPA kernel to a remote peer when the host round-trip is191 the measured latency bottleneck. The 4-way RDMA matrix, the192 host-configures-QP / DPA-uses-QP coupling rule, the193 capability rule (no per-verb host cap-query family exists;194 verb availability follows the BlueField generation + matched195 DOCA/DPACC install, read from `doca_dpa_dev_verbs.h` and the196 shipped sample), the IO_FAILED → CQE-inspection197 overlay, and the climb-back rule live in198 [`CAPABILITIES.md ## verbs`](CAPABILITIES.md#verbs) and199 [`TASKS.md ## verbs`](TASKS.md#verbs) under this same skill.200201Do **not** load this skill for general DOCA orientation,202install of DOCA or the DPACC compiler, the DPA-side203 programming model itself (how to write a DPA kernel; the204 DPA device-side comm and verbs components205 (`libdoca_dpa_dev_comm.a` / `libdoca_dpa_dev_verbs.a`) that206 run *inside* the DPA kernel), or non-DPA library questions.207For those, route through208[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)209to the matching upstream guide.210211## What this skill provides212213This is a **thin loader**. The body keeps only the orientation214needed to pick the right next file. The substantive215DPA-specific material lives in two companion files:216217- `CAPABILITIES.md` — what the host-side DPA API can express on218 this version + this BlueField generation: the per-DPA-instance219 `doca_dpa` context, the loaded `doca_dpa_app` image produced220 by `dpacc`, the `doca_dpa_thread` execution context, the221 host-initiated kernel launch surface222 (`doca_dpa_kernel_launch_update_*`), the `doca_dpa_completion`223 mechanism, the capability-query surface (`doca_dpa_cap_*`),224 the DPA error taxonomy mapped onto the cross-library225 `DOCA_ERROR_*` set, the observability surface (host-side226 completions plus the public DPA developer tools surface227 reachable via `doca-public-knowledge-map`), and the safety228 policy that gates env preconditions (DPA-capable BlueField,229 matched DOCA + DPACC versions, DPA-side image and host-side230 expected entry points agree).231- `TASKS.md` — step-by-step workflows for the six in-scope DPA232 verbs: `configure`, `build`, `modify`, `run`, `test`,233 `debug`. Plus a `Deferred task verbs` block that points234 out-of-scope questions at the right next skill.235236The skill assumes a host where DOCA is already installed at237the standard location, a BlueField with a DPA processor is238physically present and visible to the host, the DPACC compiler239is installed at a version matched to the DOCA install per the240DOCA Compatibility Policy, and the user already knows how (at241least at a sketch level) to write the DPA-side kernel that242`dpacc` will compile. It does not cover installing DOCA or the243DPACC compiler — that path goes through244[`doca-setup`](../../doca-setup/SKILL.md).245246## What this skill deliberately does not ship247248This skill is **agent guidance**, not a samples or templates249bundle. To keep the boundary clean, it deliberately does not250contain — and pull requests should not add:251252- **Pre-written DOCA DPA application source code or DPA-side253 kernel source, in any language.** The verified DPA source is254 the shipped C + DPA-side samples at255 `/opt/mellanox/doca/samples/doca_dpa/`. The agent's job is to256 route the user to those files and prescribe a minimum-diff257 modification on them via the universal modify-a-sample258 workflow in259 [`doca-programming-guide`](../../doca-programming-guide/SKILL.md),260 layered with the DPA-specific overrides in261 [`TASKS.md ## modify`](TASKS.md#modify).262- **Standalone build manifests** (`meson.build`,263 `CMakeLists.txt`, …) parked inside the skill. The agent264 constructs the build manifest *in the user's project265 directory* against the user's installed DOCA + DPACC266 compiler, where `pkg-config --modversion doca-dpa` and the267 installed `dpacc` are the two sources of truth.268- **A `samples/`, `bindings/`, or `reference/` subtree** of any269 kind. A mock or incomplete artifact in this skill's tree,270 even one labeled "reference", is misleading: users will read271 it as buildable.272- **DPA device-side content for the comm / verbs components273 (`libdoca_dpa_dev_comm.a` / `libdoca_dpa_dev_verbs.a`).**274 These are *DPA-side* archives shipped as part of `doca-dpa`275 (NOT separate pkg-config modules): their symbols are called276 from inside the DPA kernel and linked into the DPA image by277 `dpacc`, not from the host. Their public guides are reachable278 via279 [`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md).280 This skill names them and routes; it does not redefine them.281282## Loading order2832841. Read this `SKILL.md` first to confirm the user's question is285 in scope (host-side DPA work, not DPA-side kernel-writing).2862. **For the DPA capability matrix, the `doca_dpa` per-instance287 context, the loaded `doca_dpa_app` image, the288 `doca_dpa_thread` execution context, the kernel-launch +289 completion model, the dual capability query, the290 env-precondition policy, the error taxonomy, the291 observability surface, and the safety policy, see292 [CAPABILITIES.md](CAPABILITIES.md).**2933. **For step-by-step workflows — configure, build, modify,294 run, test, debug — see [TASKS.md](TASKS.md).**295296Both companion files cross-link to each other,297[`doca-version`](../../doca-version/SKILL.md) for the canonical298DOCA version-handling rules (with the DPA overlay that DOCA299must match the DPACC compiler), and300[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)301whenever the right answer is "look it up in the public DOCA302DPA, DPACC, DPA-Comms, or DPA-Verbs guide, or in the on-disk303install layout" rather than "DPA host-side-specific guidance".304305## Related skills306307- [`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md) —308 the routing table for every public DOCA documentation309 source and the on-disk layout of an installed DOCA package.310 The DPA public guide is at311 <https://docs.nvidia.com/doca/sdk/DOCA-DPA/index.html>; the312 DPACC compiler guide, the DPA-Comms guide (DPA-side313 communications), the DPA-Verbs guide (DPA-side verbs), and314 the DPA Tools umbrella (developer / admin CLIs for DPA)315 live in the same routing table and are *companion surfaces*316 to this skill rather than redefined by it.317- [`doca-setup`](../../doca-setup/SKILL.md) — env preparation,318 install verification, DPACC compiler install / verification,319 and the *I have no install yet* path with the public NGC320 DOCA container. This skill assumes its preconditions are321 satisfied AND that DPACC is installed at a version that322 matches DOCA.323- [`doca-version`](../../doca-version/SKILL.md) — canonical324 DOCA version-handling rules. This skill's `## Version325 compatibility` cross-links the four-way match rule and adds326 the DPA-specific *DOCA-and-DPACC must match* overlay per the327 DOCA Compatibility Policy.328- [`doca-structured-tools-contract`](../../doca-structured-tools-contract/SKILL.md) —329 the bundle's structured-tools precedence rule (detect /330 prefer / fall back / report). The Command appendix in331 [TASKS.md](TASKS.md) honors this contract.332- [`doca-programming-guide`](../../doca-programming-guide/SKILL.md) —333 general DOCA programming patterns shared by every library:334 the canonical `pkg-config` + meson build pattern, the335 universal modify-a-shipped-sample first-app workflow, the336 universal Core-context lifecycle, the cross-library337 `DOCA_ERROR_*` taxonomy, and the program-side debug order.338 This skill layers DPA specifics on top.339- [`doca-debug`](../../doca-debug/SKILL.md) — the cross-cutting340 debug ladder (install / version / build / link / runtime /341 program / driver). DPA-specific debug (DPACC + DOCA version342 skew, DPA not present on this BlueField generation, DPA343 kernel hangs that show no host-side completion,344 launch-argument shape mismatches between the host launch345 call and the DPA-side function signature) overlays on top346 of that ladder.347348DOCA DPA's DPA device-side components — the comm archive349`libdoca_dpa_dev_comm.a` (communication primitives the DPA350kernel itself calls, header `doca_dpa_dev_comch_msgq.h`) and351the verbs archive `libdoca_dpa_dev_verbs.a` (ibverbs-like RDMA352verbs the DPA kernel itself calls, header353`doca_dpa_dev_verbs.h`) — are **DPA-side archives shipped354within `doca-dpa`**, not separate pkg-config modules, and each355has its own public guide. No library skill ships for them in356this bundle yet; for any DPA-side question, route via357[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)358to the public *DOCA DPA Comms* and *DOCA DPA Verbs* guides359and to the shipped `/opt/mellanox/doca/samples/doca_dpa/`360samples (which include both host-side and DPA-side361translation units). Conflating them with `doca-dpa` is the362single most common DPA first-app design error.