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

Open
github-bot wants to merge 1 commit from github-bot/gh-74 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:13 UTC · original
ubiquitarianism:old-pr/9801 → main · +69 −0 · 2 files · 1 commits · draft

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.)
**@⁠Andretuta** on GitHub · 2026-11-24 02:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/74) `ubiquitarianism:old-pr/9801` → `main` · +69 −0 · 2 files · 1 commits · draft > 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.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:43:14 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/74/head:github-bot/gh-74'
git switch 'github-bot/gh-74'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-74'
git switch 'github-bot/gh-74'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-74'
git switch 'github-bot/gh-74'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-74'
git switch 'main'
git merge --squash 'github-bot/gh-74'
git switch 'main'
git merge --ff-only 'github-bot/gh-74'
git switch 'main'
git merge 'github-bot/gh-74'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.