[PR #74] docs: D3D-56 descriptor lookup numbers on RTX 3070 (Ampere, ReBAR off) #126

Open
opened 2026-11-26 20:16:52 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/74
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9801


📝 Commits (1)

  • d82d910 docs: D3D-56 descriptor lookup numbers on RTX 3070 (Ampere, ReBAR off)

📊 Changes

2 files changed (+69 additions, -0 deletions)

View changed files

📝 docs/README.md (+1 -0)
➕ docs/descriptor_lookup_ampere.md (+68 -0)

📄 Description

Carried over from old PR 9801 by ramon-victor in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9801, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
ramon-victor: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116586259

What and why

Adds docs/descriptor_lookup_ampere.md and indexes it in docs/README.md: D3D-56 vk_descriptor_bench measurements on an NVIDIA GeForce RTX 3070 (Ampere, 8 GiB, PCIe 3.0 x16, Windows 11, Resizable BAR off / 256 MiB BAR1 aperture), complementing the existing Apple M3 Max (descriptor_lookup_apple.md), NVIDIA RTX 4070 SUPER / Ada with ReBAR (descriptor_lookup_ada.md) and Intel UHD 770 (descriptor_lookup_intel.md) measurements.

Key takeaway for descriptor-table placement on Ampere without ReBAR:

  • The 214 MiB Vulkan BAR1 heap (DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT, exposed even with Resizable BAR off) stayed within 0.5% of GPU-only VRAM in every cell up to 100,000 entries (20.0 MiB table).
  • Non-device-local host_visible RAM over PCIe 3.0 x16 degraded sharply at 100,000 entries: 5.0× slower on uniform T# hits, 14.2× slower on divergent T# hits, 21.9× slower on divergent T#+S# pairs and 22.6× slower on divergent misses.

Tested

  • Hardware / environment: NVIDIA GeForce RTX 3070 (Ampere, 0x10de:0x2488), driver 621.24, Vulkan API 1.4.357, PCIe 3.0 x16, Resizable BAR off (256 MiB BAR1 / 214 MiB Vulkan heap 2), Windows 11 Pro 26H2 (build 26300.9974), idle desktop (2% GPU util, 993 MiB VRAM used, P5), MSVC 19.51.36260.0 (RelWithDebInfo, CMake + Ninja, Vulkan headers 1.4.363.0).
  • Benchmark: 12 counterbalanced rounds (36 processes, 1,188 ok rows, 29,124 timed dispatches, 0 errors, 0 stderr) of runtime/build/vk_descriptor_bench.exe --device 0 --memory {device,host,rebar} --sizes <order> --groups 4096 --iters 64 --warmup 5 --reps 25 --warmup-ms 300 --csv on 5d74c27 (vk_descriptor_bench --self-test passed).
  • Repo checks (rebased onto main 2d53a8055):
    • python -I scripts/check_no_game_data.py docs/descriptor_lookup_ampere.md docs/README.md — pass
    • Line endings verified LF-only (crlf=0) on both files
    • tests/test_docs_list_items.py, test_docs_pr_template.py, test_docs_python_deps.py, test_docs_repeated_lines.py, test_docs_repo_paths.py, test_docs_table_ids.py, test_docs_table_rows.py — all pass

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (N/A — docs-only hardware measurement PR.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/74 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9801` --- ### 📝 Commits (1) - [`d82d910`](https://github.com/ubiquitarianism/leonida/commit/d82d9109a86a408a5aefde44e19cfeb41e783ac4) docs: D3D-56 descriptor lookup numbers on RTX 3070 (Ampere, ReBAR off) ### 📊 Changes **2 files changed** (+69 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -0) ➕ `docs/descriptor_lookup_ampere.md` (+68 -0) </details> ### 📄 Description > Carried over from **old PR 9801** by `ramon-victor` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9801`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `ramon-victor`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116586259 ### What and why Adds `docs/descriptor_lookup_ampere.md` and indexes it in `docs/README.md`: D3D-56 `vk_descriptor_bench` measurements on an NVIDIA GeForce RTX 3070 (Ampere, 8 GiB, PCIe 3.0 x16, Windows 11, Resizable BAR off / 256 MiB BAR1 aperture), complementing the existing Apple M3 Max (`descriptor_lookup_apple.md`), NVIDIA RTX 4070 SUPER / Ada with ReBAR (`descriptor_lookup_ada.md`) and Intel UHD 770 (`descriptor_lookup_intel.md`) measurements. Key takeaway for descriptor-table placement on Ampere without ReBAR: - The 214 MiB Vulkan BAR1 heap (`DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT`, exposed even with Resizable BAR off) stayed within 0.5% of GPU-only VRAM in every cell up to 100,000 entries (20.0 MiB table). - Non-device-local `host_visible` RAM over PCIe 3.0 x16 degraded sharply at 100,000 entries: 5.0× slower on uniform T# hits, 14.2× slower on divergent T# hits, 21.9× slower on divergent T#+S# pairs and 22.6× slower on divergent misses. ### Tested - **Hardware / environment**: NVIDIA GeForce RTX 3070 (Ampere, `0x10de:0x2488`), driver `621.24`, Vulkan API `1.4.357`, PCIe 3.0 x16, Resizable BAR off (256 MiB BAR1 / 214 MiB Vulkan heap 2), Windows 11 Pro 26H2 (build `26300.9974`), idle desktop (2% GPU util, 993 MiB VRAM used, P5), MSVC `19.51.36260.0` (`RelWithDebInfo`, CMake + Ninja, Vulkan headers `1.4.363.0`). - **Benchmark**: 12 counterbalanced rounds (36 processes, 1,188 `ok` rows, 29,124 timed dispatches, 0 errors, 0 stderr) of `runtime/build/vk_descriptor_bench.exe --device 0 --memory {device,host,rebar} --sizes <order> --groups 4096 --iters 64 --warmup 5 --reps 25 --warmup-ms 300 --csv` on `5d74c27` (`vk_descriptor_bench --self-test` passed). - **Repo checks** (rebased onto `main` `2d53a8055`): - `python -I scripts/check_no_game_data.py docs/descriptor_lookup_ampere.md docs/README.md` — pass - Line endings verified LF-only (`crlf=0`) on both files - `tests/test_docs_list_items.py`, `test_docs_pr_template.py`, `test_docs_python_deps.py`, `test_docs_repeated_lines.py`, `test_docs_repo_paths.py`, `test_docs_table_ids.py`, `test_docs_table_rows.py` — all pass AI-assisted: yes ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (N/A — docs-only hardware measurement PR.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#126
No description provided.