diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-12-03 03:20:45 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-12-03 03:20:45 +0100 |
| commit | 7809f10bf7461d4c2cb96a3501decfcbd5484a7b (patch) | |
| tree | 57fab6e7f1853c328d63e3f1a69bb0be13feaee8 /tests/test_run_gpu_tests_python_assembler.py | |
| parent | beb14940233307082e60863895d1dc6769448e9b (diff) | |
play-nvidia, launcher: a VRAM size is an integer or exactly eight bytes; one bad adapter skips only itself
Review of beb149402 (merzleckeier, ecox982745):
- Parity on malformed values: the launcher's card_memory took byte arrays
of 1 to 8 bytes, the script's decode took 8 or more and cast strings, so
a 5-byte, 9-byte or string value greyed frame generation on one side and
not the other. Both now read only an integer (REG_QWORD/REG_DWORD) or
exactly eight little-endian bytes; anything else is no size.
- A terminating error reading one adapter (Get-ItemProperty, now with
-ErrorAction Stop inside the per-adapter try) and an error while listing
the class (-ErrorAction SilentlyContinue, a foreach over what was listed)
no longer stop the walk before a later adapter's size.
Tests: test_nvidia_frame_generation_with_ray_tracing gains seven cases
(5-byte, 9-byte and string values; an 8 GB integer followed by a 5-byte or
9-byte 24 GB value; an adapter whose read throws before an 8 GB one; a
listing that reports an error before an 8 GB adapter); card_memory's test
gains the 5-byte and 9-byte arrays. tests/test_win_launchers.py 11 OK and
tests/test_leonida_launcher.py OK in Windows PowerShell 5.1; on the
previous script the new cases fail (9-byte and string values, 8 GB + 9-byte
24 GB, the throwing adapter and the listing error).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions