Skip to content

Improve errors on peermem/dmabuf - #41

Merged
dleshchev merged 2 commits into
mainfrom
cburdick/peermem_error
May 4, 2026
Merged

dleshchev merged 2 commits into
mainfrom
cburdick/peermem_error

Conversation

@cliffburdick

@cliffburdick cliffburdick commented May 1, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #43

@dleshchev
dleshchev merged commit 9ebd729 into main May 4, 2026
@cliffburdick
cliffburdick deleted the cburdick/peermem_error branch May 4, 2026 15:29
RamyaGuru added a commit that referenced this pull request May 6, 2026
* #45 - Add DGX Spark walkthrough to system configuration tutorial

Wraps the existing IGX Orin content under a top-of-page mkdocs-material
content tab and adds a parallel "DGX Spark" tab with a full walkthrough
for the Grace Blackwell GB10 superchip platform.

The Spark tab calls out the platform deltas:
- CX-7 hotplug warning (cable required; PFs disappear without one)
- 4 PFs / 2 chips / tied chassis sockets, with the cable-yank diagnostic
- Skip nvidia_peermem (EINVAL on Grace) and the daqiri DMA-BUF path
  (CUDA reports DMA_BUF_SUPPORTED=0); use kind: host_pinned in YAML
- Skip GPU BAR1 sizing and the PIX/PXB topology requirement (N/A on
  unified-memory single-SoC integrated GPUs)
- grub drop-in pattern under /etc/default/grub.d/ for hugepages and
  isolcpus=16-19 (Spark composes the cmdline from drop-ins)
- systemd unit pattern for MRRS via raw setpci CAP_EXP+8.w
  (Secure Boot must be off)
- nmcli profile pattern that folds IP + MTU=9000 into one step

Anchor stability: existing cross-page links from
benchmarking_examples.md and configuration-walkthrough.md
(#enable-gpudirect, #step-4-enable-huge-pages, #step-5-isolate-cpu-cores)
keep landing on the IGX heading because mkdocs gives the first
heading occurrence the bare slug; Spark duplicates get _1 suffixes.
mkdocs --strict build passes.

Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>

* #45 - Add DGX Spark example YAML configurations

Drop in two ready-to-run YAML configs for the DGX Spark workstation
so users do not have to read three docs to know which substitutions
to make:

- daqiri_bench_raw_tx_rx_spark.yaml: kind: host_pinned (mandatory on
  GB10 since PR #41), PCIe 0000:01:00.0 / 0002:01:00.0 (mlx5_0 ↔
  mlx5_2 across the chassis QSFP loop), cpu_core 17/18 from the
  isolated big-cluster cores 16-19, ip_src/ip_dst matching the
  daqiri-tx / daqiri-rx nmcli profiles documented in the system
  configuration tutorial.

- daqiri_bench_rdma_tx_rx_spark.yaml: same IP/core conventions for
  the RDMA bench. host_pinned was already correct upstream, IPs swap
  from 10.100.x.x to 1.1.1.1 / 2.2.2.2 to match Spark's nmcli
  profiles.

The original templated *_tx_rx.yaml files are preserved unchanged.
eth_dst_addr remains a placeholder in the raw bench since the RX
MAC is per-system; the comment block tells the user how to populate it.

Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>

* #45 - Recommend host_pinned on integrated GPUs in configuration reference

The current memory_regions kind table flags host_pinned as "not
recommended for high-throughput RX/TX", which is true on discrete GPUs
but actively misleading on integrated GPUs (e.g. NVIDIA GB10 /
DGX Spark) where it is the only working path: nvidia_peermem returns
EINVAL by design and CUDA reports DMA_BUF_SUPPORTED=0 on the
unified-memory platform, so device is unreachable.

Update both the configuration reference and the
configuration-walkthrough annotation #6 to call out the integrated-GPU
recommendation while preserving the discrete-GPU guidance for users on
RTX 6000 Ada / A100 / H100 setups.

Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>

* #45 - Add CUDA arch sm_121 (Blackwell GB10) to default build

Extend CMAKE_CUDA_ARCHITECTURES from "80;90" to "80;90;121" so the
default build targets the Grace Blackwell GB10 superchip (DGX Spark)
in addition to A100 / H100. Purely additive: A100/H100 builds keep
sm_80 and sm_90, GB10 builds gain sm_121, and downstream users can
still override via -DCMAKE_CUDA_ARCHITECTURES.

Sync the corresponding CLAUDE.md note in the Build & run section per
the docs-sync rules.

Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>

* #45 - Suppress integrated-GPU false positives in tune_system.py

Several --check assertions in tune_system.py were written for discrete
GPUs and emit WARN-level false positives on platforms like NVIDIA GB10
(DGX Spark) where the GPU is integrated and shares memory with the CPU.

Add an is_any_integrated_gpu() helper that queries
CU_DEVICE_ATTRIBUTE_INTEGRATED via the CUDA driver API. Thread it
through:

- check_peermem_kernel: when integrated, downgrade "module not loaded"
  to INFO with the host_pinned guidance, since peermem is not expected
  to load on Grace platforms.
- check_gpudirect_support: per-GPU; for an integrated GPU reporting
  GPUDirect-RDMA-supported=0 (expected on GB10), log INFO instead of
  WARNING.
- check_topology_connections: skip the PIX/PXB requirement and log INFO
  when any visible GPU is integrated; there is no separable PCIe path
  GPU↔NIC to optimize.
- check_bar1_size: skip and log INFO when integrated; no resizable
  BAR1 on unified memory.

Also harden update_mrrs_for_nvidia_devices: read back after the write
and report an error if the high nibble didn't land. The most common
cause is kernel lockdown from Secure Boot, which makes setpci appear
to succeed.

Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>

* #45 - Sync getting-started.md CUDA arch note with sm_121 addition

docs/getting-started.md's build-section table still listed CUDA
architectures as "80;90" (A100, H100). The CMakeLists.txt default and
CLAUDE.md note were updated to "80;90;121" in 0308c76 — bring
getting-started.md into line with the same wording so the docs-sync
rule (.claude/rules/docs-sync.md mapping for src/CMakeLists.txt) is
fully covered.

Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>

* #45 - Set client_address in DGX Spark RDMA bench config

Populate the previously empty client_address field in rdma_bench_client
with 1.1.1.1, matching the client interface IP used elsewhere in the
Spark config.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com>

* #45 - Surface DGX Spark ready-to-run configs in benchmarking tutorial

Add a tip admonition under "Update the loopback configuration" pointing
DGX Spark users at the two ready-to-run Spark YAMLs
(daqiri_bench_raw_tx_rx_spark.yaml and daqiri_bench_rdma_tx_rx_spark.yaml)
so they can skip the manual placeholder edits below.

The admonition leads with the prerequisite ("for systems configured per
the DGX Spark profile") and calls out the asymmetry between the two
configs: the raw variant still needs eth_dst_addr filled in from the RX
interface MAC, while the rdma variant needs no further edits. Cross-
references the DGX Spark profile section in the system configuration
tutorial.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com>

* #45 - Add DGX Spark YAML configs to benchmark table in CLAUDE.md

Surface the new Spark variants (daqiri_bench_raw_tx_rx_spark.yaml and
daqiri_bench_rdma_tx_rx_spark.yaml) alongside their non-Spark
counterparts in the benchmark table so they are discoverable from
developer onboarding.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com>

---------

Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>
Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com>
Co-authored-by: Ramya Gurunathan <rgurunathan@nvidia.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
RamyaGuru added a commit that referenced this pull request May 13, 2026
…to active tab (#80)

Refine the IGX Orin / DGX Spark dual-platform UX so the two reference
platforms read as a clear top-level choice and the right-hand TOC stops
exposing links that lead into the hidden tab.

- Wrap the platform-tab block in <div class="platform-tabs"> and enlarge
  its tab labels via a scoped CSS rule, leaving every nested sub-tab
  (tune_system.py / manual, One-time / Persistent, …) at the default size.
- Add platform-tab-toc.js + a :has() CSS rule that hide TOC entries for
  the inactive platform, so anchor links into hidden content disappear
  and the TOC mirrors what is on screen.
- Trim the intro: drop the "tabs are linked" implementation note and the
  PR #41 reference, soften "pick yours below" to "pick the one closest
  to yours below".

Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] DGX Spark memory allocation issue for host_pinned kind

2 participants