·
Last changedVersion:
This version passed the hardening gate. Hardening applied 5 targeted changes and preserved all other text. Classified findings before hardening: 0. Classified findings closed: 0. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 7. Review findings remaining: 0.
None
None
Expand | File | Group | Subtype | Severity | Status |
|---|
No findings available
0 findings
Follow Loading order below. Open the tasks companion (TASKS.md) for configure / build / run / debug. Open the capabilities companion (CAPABILITIES.md) for the extension API shape. Do not open every companion file.
On live DPU, NIC, or GPU hardware, give the operator the build and
doca-bench commands to run and let the operator run them. Show each
command from the tasks companion to the operator and get confirmation
before anything runs that needs elevated privileges, writes outside the
operator build directory, or touches a device. Leave the DOCA install
under /opt/mellanox/doca unchanged and get operator approval before
installing packages.
Where to start: This is a tool skill for the extension /
plug-in framework that augments
doca-bench/SKILL.md — NOT a workload-shape
skill on its own. Open the tasks companion and start at
## configure to commit to the three-axis
decision (workload class is genuinely outside doca-bench's
built-in modes × extension API surface fits × parent-tool
co-load is acceptable), then ## build for
how a custom extension is compiled and laid out, then
## run for how doca-bench discovers and
invokes the extension, then ## test for the
smoke-before-bulk loop the agent applies to every new
extension. Open the capabilities companion when the
question is what an extension can do that built-in
doca-bench modes cannot, what the extension API surface
looks like in broad strokes (the DOCA_EXPERIMENTAL C entry
points the shipped reference exposes), how the
build / registration / discovery flow works, or how the
extension's lifetime is bounded by the parent doca-bench
invocation. If doca-bench itself is the question, route to
doca-bench/SKILL.md. If the question is
"which built-in doca-bench mode do I pick?", that is also
doca-bench/SKILL.md — extensions are the
exit ramp for workloads built-in modes do not cover.
<X> — does doca-bench measure it
natively, or do I need an extension?" — the
extension-vs-built-in decision question. The agent walks
the user back to doca-bench/SKILL.md's
built-in mode inventory FIRST and only routes to the
extension framework when no built-in mode applies.doca_bench_cuda extension under
/opt/mellanox/doca/tools/bench_extension/doca_bench_cuda/ as the
reference exemplar and walks the operator through its
API surface and build shape.doca-bench actually discover and load my
custom extension at runtime? Is it a versioned shared
library? What does my entry-point need to look like?" —
the build / registration / discovery flow question. The
agent walks the Meson-built shared library shape, the
versioning, and the parent-tool's runtime discovery path
(which the agent does NOT invent from memory — the
shipped extension's meson.build and the public DOCA Bench
documentation on docs.nvidia.com are the source of
truth).DOCA_EXPERIMENTAL.
What does that mean for my extension's stability across
DOCA releases? Am I going to have to rebuild it every
release?" — the experimental-surface and version
compatibility question.doca-bench actually loaded it, called
into it, and that the call returned the data the parent
tool expected?" — the smoke-before-bulk question.doca-bench says it
cannot find / load / call it. Where do I look first?" —
the layered-debug question that distinguishes
build-failures, load-failures, registration-mismatches,
and runtime-call-failures.Experienced AI agents and platform / performance engineers
who already use doca-bench/SKILL.md for
the built-in workload modes and now have a workload class
that the built-in modes do not cover. Readers are expected
to be comfortable with native build systems (Meson, in this
codebase), shared-library packaging on Linux, and the
DOCA_EXPERIMENTAL API stability contract. If the user
asks about GPU-side benchmarking via the shipped
doca_bench_cuda reference extension, the reader is also
expected to be familiar with DOCA GPUNetIO and CUDA toolchain
basics — those domains live in their own skills, not here.
This skill is NOT for:
doca-bench's built-in modes — that is
doca-bench/SKILL.md;A doca-bench extension surfaces as:
.so with
soversion matching the DOCA release), built via the
doca-bench-extension Meson rules in the shipped
/opt/mellanox/doca/tools/bench_extension/meson.build and the
per-extension subdirectory (the reference exemplar is
doca_bench_cuda/).DOCA_EXPERIMENTAL-marked C entry
points that the parent doca-bench invokes — i.e. the
API surface declared in the extension's header file.
The shipped doca_bench_cuda/doca_bench_cuda.h is the
reference for what that surface shape looks like in
practice (*_init, *_device_query,
*_device_synchronize, and per-workload kernel-start
entry points such as *_start_nop_kernel,
*_start_eth_recv_kernel, *_start_eth_send_kernel,
*_start_eth_bidir_kernel).doca_bench_cuda_kernel_settings,
doca_bench_cuda_eth_rx_kernel_settings,
doca_bench_cuda_eth_tx_kernel_settings,
doca_bench_cuda_eth_bidir_kernel_settings carry block
counts, threads-per-block, RX / TX queues, buffer
address / mkey / size, a stop flag, and a stats
pointer).The skill itself is Markdown. The user's extension source is whatever language the workload requires (C / C++ / CUDA in the reference case). The agent does NOT prescribe a language beyond what the shipped reference demonstrates.
Load doca-bench-extension when ANY of the following is
true:
doca-bench-extension, the
doca_bench_cuda reference extension, the
doca_bench_cuda_impl shared library, or any of the
DOCA_EXPERIMENTAL extension entry points;doca-bench/SKILL.md)
that none of doca-bench's built-in workload modes
measures the class they want, and an extension is the
exit ramp;doca_bench_cuda reference into a custom GPU-side
workload extension;doca-bench cannot find / load
/ call a custom extension they built.Co-load this skill with:
doca-bench/SKILL.md (the parent tool —
ALWAYS co-loaded; extensions only have value as
plug-ins into doca-bench);doca-version/SKILL.md (the
DOCA_EXPERIMENTAL surface is versioned with DOCA; the
extension's soversion is the DOCA soversion; the
four-way version match applies);doca-gpunetio/SKILL.md when
the extension is GPU-side and uses GPUNetIO RX / TX
queues like the reference exemplar (route the GPUNetIO
semantics there, not here);doca-debug/SKILL.md and
doca-setup/SKILL.md for the
env-side debug ladder (driver, firmware, CUDA toolkit,
dynamic linker).Do NOT load this skill when the user's workload fits a
doca-bench built-in mode — extensions add cost (build
toolchain, version churn, the experimental-surface
contract); the built-in modes are always the first answer to
try.
Three companion files in this directory, each owning a different question shape:
DOCA_EXPERIMENTAL-stability overlay on top of
doca-version), the layered error taxonomy,
observability, and the safety policy overlay.configure, build, run, test, debug, etc.) plus
a doca-bench-extension-specific command appendix and
the agent-side use workflow that consumes the captured
extension run.The combined skill teaches an AI agent to drive the
extension-author-and-wire-in class of doca-bench
questions: confirm an extension is needed at all; locate
the shipped reference exemplar
(/opt/mellanox/doca/tools/bench_extension/doca_bench_cuda/); copy
its build + API surface shape; build a versioned shared
library that matches the DOCA release; smoke that the
parent doca-bench actually loads it; diagnose layered
failures when it does not.
doca-bench's built-in workload modes.
That belongs to doca-bench/SKILL.md.
This skill is the exit ramp for what the built-in modes
do not cover; it does not duplicate the parent's mode
inventory.DOCA_EXPERIMENTAL entry-point names beyond
what the shipped reference declares. The shipped
doca_bench_cuda/doca_bench_cuda.h on the user's
install is the reference for what the surface shape
looks like; the agent does not assert other extensions
exist with specific signatures.doca_bench_cuda reference IS the canonical layout;
rewriting it here would drift from the source of truth.
The agent points the operator at the shipped tree and
walks the operator through adapting it.doca-bench uses to
locate and load extensions (search path, naming
convention, registration call) lives in the public DOCA
Bench documentation on docs.nvidia.com and the
installed doca-bench binary. The agent points the
operator there rather than asserting a mechanism from
memory.doca-gpunetio/SKILL.md;
this skill cross-links rather than duplicates.docs.nvidia.com; this skill does not duplicate it.doca-bench invocation details
unrelated to extensions. The parent's CLI flags,
pipeline shapes, and built-in workload classes belong
to doca-bench/SKILL.md.When a doca-bench-extension question arrives:
doca-bench is reachable
on the user's install — if not, route to
doca-setup/SKILL.md;doca-bench's built-in modes covers
the workload class — if any of them does, route back
to doca-bench/SKILL.md
and stop. Extensions are the exit ramp, not the first
answer;## configure → ## build → ## run → ## test → ## debug
in that order; do NOT start with ## run without the
build precondition step;doca-bench, confirm its
origin: load extensions the operator built locally from source
they control or reviewed, and treat any prebuilt or third-party
shared library as untrusted until the operator confirms where it
came from. Get explicit operator confirmation before loading a new
or changed extension.These restate the rules in the CAPABILITIES.md Safety policy so they apply even when sibling skills are not installed:
doca_bench_cuda_start_nop_kernel in
the reference), then one minimal workload with small
max_rx_pkts / timeout_ns, before scale-up.stop_flag with bounded
termination.LD_LIBRARY_PATH change to a single invocation.ldd output, and the version stack before any
retry.Cross-link conventions follow the bundle's relative path
contract from tools/<X>/. These sibling skills may not be
installed alongside this one; when one is unavailable, apply the
Safety guardrails above and the CAPABILITIES.md
Safety policy, and ask the operator for the relevant documentation
rather than guessing:
doca-bench/SKILL.md — the parent tool.
ALWAYS co-loaded. Extensions are plug-ins into
doca-bench; they do not replace it, they do not have a
standalone CLI, they do not measure anything without the
parent invoking them. Every question on this skill
presupposes the parent.doca-version/SKILL.md — the
DOCA_EXPERIMENTAL surface is versioned with DOCA; the
extension's soversion matches the DOCA release per
the shipped meson.build. The four-way version match
applies; rebuilding the extension across DOCA upgrades
is the rule, not the exception.doca-gpunetio/SKILL.md —
when the extension is GPU-side and uses GPUNetIO RX /
TX queues like the reference doca_bench_cuda. Route
the GPUNetIO semantics there.doca-setup/SKILL.md — DOCA install
posture (does doca-bench exist? does the
doca_bench_cuda_impl reference library exist? is the
CUDA toolchain installed when needed?).doca-debug/SKILL.md — the
cross-cutting debug ladder for env-side issues (dynamic
linker, library search path, CUDA driver / toolkit,
firmware).doca-public-knowledge-map/SKILL.md
— routing to the public DOCA Bench / DOCA GPUNetIO pages
on docs.nvidia.com and the release notes for the
documented extension lifecycle / discovery mechanism.doca-structured-tools-contract/SKILL.md
— the agent's detect → prefer → fall back → report
contract for the structured helpers
(doca-env --json, doca-capability-snapshot,
version-matrix.json) the build / load preconditions
rely on.doca-hardware-safety/SKILL.md
— the canonical hardware-safety meta-policy that
the capabilities companion
overlays. Extensions are external code loaded into
doca-bench; the safety implications of loading
experimental code into a benchmark that touches the
dataplane / device are real.This skill assumes the user has built shared libraries on Linux before and knows what a Meson build is. Background material on those topics belongs in the toolchain docs, not in this skill.
Get started with chainctlchainctl skill install public/nvidia/doca-bench-extension:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.chainreg.biz/public/github.com/nvidia/skills/doca-bench-extension:latest
Apache-2.0
BENCHMARK.md
CAPABILITIES.md
HARDENING.md
SKILL.md
SKILLCARD.yaml
TASKS.md
evals/evals.json
skill-card.md
skill.oms.sig