Skip to content

Kemerd port, etap C: VICTORY_SEND_THREAD (off by default) - #5

Merged
Matartos merged 1 commit into
ampere-sm86-perf-exp1from
claude/practical-euler-95ngzp
Nov 29, 2026
Merged

Matartos merged 1 commit into
ampere-sm86-perf-exp1from
claude/practical-euler-95ngzp

Conversation

@Matartos

Copy link
Copy Markdown
Owner

Zakres

Etap C z planu A–C, robiony jako pierwszy, bo nie zależy od A i B. Szczegóły: docs/KEMERD-AUDIT.md, punkt 7.

  • VICTORY_SEND_THREAD=1 (1ccd907): przy wysyłce z wyprzedzeniem (late()) gotowe listy i zarezerwowaną wartość fence przejmuje wątek victory-send, przypięty do rdzeni P. Wątek submitujący od razu przygotowuje następną submisję.
  • Źródło: Kemerd/VIctory-NVIDIA-RT rt-test-11 (0549d44c), GPL-3.0: d06b7ab i 8b40230 (Kemerd), 4c0d0e9 (D Everett Hinton).
  • Poza Kemerd: wait_idle() także przed gałęzią synchroniczną Host::submit, przed card_back (obie biorą kolejną wartość fence, która nie może zostać zasygnalizowana przed zadaniem z niższą) i przed read_defrag_counters.

late() jest u nas aktywne domyślnie (relay włączony, late_stage() == 3). Do testu nie trzeba ustawiać VICTORY_LATE_WAIT, a VICTORY_LATE_WAIT=1 cofnęłoby relay do etapu 1.

Etap A (VICTORY_REFRESH_SET) wstrzymany: jego kroki pochodzą z pamięci po adresie (memory.rs, ścieżka RT). Przy RT OFF najpewniej nic nie da. Warunek sprawdzenia jest w audycie, punkt 6. Etap B osobno.

Testy

  • Lokalnie: cargo clippy --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warnings OK, także z --all-features.
  • Testy jednostkowe: host::send_thread::tests::* (kolejność zadań). Maszyny stanów z prawdziwym Host nie da się przetestować jednostkowo, potrzebny jest test w grze.
  • CI: w toku.

Status benchmarku: otwarty.

Rollback

Nie ustawiać VICTORY_SEND_THREAD. Albo git revert 1ccd907.


Generated by Claude Code

…m a thread of their own (off by default)

From Kemerd/VIctory-NVIDIA-RT rt-test-11 (0549d44),
GPL-3.0: host/send_thread.rs and its Host::submit hand-over (d06b7ab,
Kemerd), the relay fetch waiting for it (8b40230, Kemerd) and the
present waiting for it (4c0d0e9, D Everett Hinton).

With late() (on by default here: the relay) the submitting thread hands
the closed lists and the reserved fence value to victory-send, which
executes, signals (also after a panic) and notes them, and goes on to
the next submission. Every other path that puts work on the host queue
waits for the thread first: card_before's sync list, the relay fetch on
the host queue, the present, and in this tree also the synchronous
submit branch and card_back (both take the next fence value) and the
defrag counters' read. A frame-line counter says how many jobs the
thread sent and how many came out of order.

docs/KEMERD-AUDIT.md: section 7, and section 6 on why the refresh sets
are held back (their steps come from by-address memory, the ray-tracing
path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
@Matartos
Matartos merged commit ce37674 into ampere-sm86-perf-exp1 Nov 29, 2026
1 check passed
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.

2 participants