upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorenlight3d <19186686+enlight3d@users.noreply.github.com>2026-11-29 01:42:48 +0100
committerenlight3d <19186686+enlight3d@users.noreply.github.com>2026-11-29 02:22:23 +0100
commit202ad50e5b686a885f7e6e72d55608a5bb0162fd (patch)
treef9fb0106a7f90a44d76c0f1a1c770ff3cf1e55f8 /runtime/test/cpp_unwind_test.cpp
parent0a325350e4a9e58ca83ae43e886f4e6caa9955b5 (diff)
Windows boot: LEONIDA_DEVICE_FAULT=2 by default, so a boot on NVIDIA reads the compute journal gta6rt --precompile-pipelines wrote (1 with LEONIDA_AFTERMATH=1)
boot.ps1 set LEONIDA_DEVICE_FAULT=1 when the shell had not set it. On NVIDIA, 1 also enables VK_NV_device_diagnostics_config (d3d12_vulkan_device.cpp:23349-23360), and the runtime then puts that config into the key of every compute journal file (d3d12_vulkan_device.cpp:11818-11824, "nv-diagnostics-config"). So a boot read none of the journal a pre-compile without the variable had written, though boot.ps1 hands that journal to the boot as its seed since #2481. 2 is the runtime's mode for this case: the device-fault report, checkpoints and the submit ring, without the diagnostics config. LEONIDA_AFTERMATH=1 still gets 1. The runtime takes the LEONIDA_DEVICE_FAULT branch before the Aftermath one (d3d12_vulkan_device.cpp:23352-23371), so under 2 a crash dump would lose NVIDIA's diagnostics config (no shader debug info). A LEONIDA_DEVICE_FAULT the user gives (shell, -SetEnv or KEY=VALUE) always wins, and LEONIDA_DEVICE_FAULT= leaves it unset, as before. Measured on an RTX 3090 24 GB, NVIDIA 621.40, Windows 11: two builds, each with its own fresh compute pre-compile and an A/B pair of 60 s boots of that build, n=1 per cell. The counts are from the runtime's last "pipeline journal" progress line within the 60 s (it prints at the first event of a kind, then every 100th): build LEONIDA_DEVICE_FAULT from the precompiled journal compiled 1bc055e6c 1 0 500 1bc055e6c unset 700 0 ace0e9d1c unset 700 0 ace0e9d1c 2 700 0 With 1 the line said 25 from journal files: files that same boot had just written (zmasi's reading on #2570; the boot's writable journal gained about 519 files). No commit in 1bc055e6c..ace0e9d1c touches d3d12_vulkan_device.cpp, vulkan_device_fault.h or pipeline_cache_journal.h. Found by MoonEyes on #2570; zmasi pointed there at mode 2. The README's row says 2, when 1 is used, and that "NVIDIA diagnostics config unavailable" in the runtime's device-fault line means "not requested" under 2. Its seed row no longer says the script sets 1. The comment over the defaults says the Linux harness does not set the variable. Test: tests/test_windows_boot_journal_seed.py, dry runs for the default, the shell, -SetEnv and KEY=VALUE overrides, the removal and LEONIDA_AFTERMATH, and the README row (read as text, on any system). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions