GPU test cs_w32_lds_add_f32: ds_add_f32 and ds_add_rtn_f32 #176

Closed
github-bot wants to merge 6 commits from gh-pr/176/head into gh-pr/176/base
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:35 UTC · original
ubiquitarianism:old-pr/9911 → main · +266 −3 · 5 files · 6 commits · closed without merging

Carried over from old PR 9911 by LouisRiverstone in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9911, 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.
LouisRiverstone: 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):

#3120 merged ds_add_f32 / ds_add_rtn_f32 with CPU-only checks. This adds a GPU fixture, runtime/test/shaders/cs_w32_lds_add_f32.asm. Lane 0 of a wave32 group stores eight dwords:

Re-submission of #4323. #4323 was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current main.

Checked on #4323 by: justr4mzi (AMD Radeon RX 6700 XT), radv-tinker (AMD Radeon RX 9070 XT), sebashord (Windows 11 Pro build 26300.9974 with two), javdc (Steam Deck LCD), tylerstraub (RTX 5090), lukasas74 (RTX 5080), TG0000 (RX 6800), matheusfermiano-source (main 867d922f0)), zorde23 (RX 6750 XT), nicolasabosch (RTX 4070 Laptop GPU).

No game files.

AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with main.

**@⁠Andretuta** on GitHub · 2026-11-24 02:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/176) `ubiquitarianism:old-pr/9911` → `main` · +266 −3 · 5 files · 6 commits · closed without merging > Carried over from **old PR 9911** by `LouisRiverstone` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9911`, 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. > `LouisRiverstone`: 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): `#3120` merged `ds_add_f32` / `ds_add_rtn_f32` with CPU-only checks. This adds a GPU fixture, `runtime/test/shaders/cs_w32_lds_add_f32.asm`. Lane 0 of a wave32 group stores eight dwords: Re-submission of `#4323`. `#4323` was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current `main`. Checked on `#4323` by: justr4mzi (AMD Radeon RX 6700 XT), radv-tinker (AMD Radeon RX 9070 XT), sebashord (Windows 11 Pro build 26300.9974 with two), javdc (Steam Deck LCD), tylerstraub (RTX 5090), lukasas74 (RTX 5080), TG0000 (RX 6800), matheusfermiano-source (main 867d922f0)), zorde23 (RX 6750 XT), nicolasabosch (RTX 4070 Laptop GPU). No game files. AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with `main`.
#3120 merged ds_add_f32 with CPU-only checks. Lane 0 of a wave32 group checks
the returned old value, a plain sum, ties to even both ways, -0 + +0,
overflow to +inf, the non-returning form and offset:. No denormal or NaN
input (not measured). Registered in check.py, run_gpu_tests.py and
regen_fixtures.py; tests/semantic/test_lds_add_f32_fixture.py runs it on the
CPU against a once-rounded double sum and checks both runners expect the
same words.
@justr4mzi: python -I on the file failed with ModuleNotFoundError: support, as
the folder was not on sys.path (now inserted, as test_cs_shared_memory_limit
does). @tupacfan04: a double sum of two binary32 values is not exact in
general; the docstring says it is for this file's inputs.
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:47:31 +00:00
github-bot closed this pull request 2026-11-26 08:47:31 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-24 19:19 UTC · original

This carry-over of old upstream PR 9911 has been taken over in #862, so I'm closing this draft as #17 describes. The branch old-pr/9911 stays.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-24 19:19 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/176#issuecomment-7141923023) This carry-over of old upstream PR 9911 has been taken over in #862, so I'm closing this draft as #17 describes. The branch `old-pr/9911` stays. AI-assisted (Claude Code, Claude Opus 5.5).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.