diff options
| author | ubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com> | 2026-11-24 07:47:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-24 07:47:23 -0500 |
| commit | 51f31609236a952badeb9c9aba9efc2a6e4dc2ff (patch) | |
| tree | beb544a73c9f3356eb89d4221daa424f591103d8 /docs/testing.md | |
| parent | 43bbd572bc26f6e190febc70f5408e1c34c38cce (diff) | |
| parent | 49d904fef62f5cbde9796d688d378df6d62b124a (diff) | |
Merge pull request #590 from JiyouProt/codex/gpu-valu64-shifts
tests: GPU readback for dynamic 64-bit vector shifts (GPU-VALU64-SHIFTS)
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md index 743d7b640..ad6fdc539 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -345,6 +345,17 @@ on an Apple M3 Max (MoltenVK 1.4.2 and 1.4.3): 17 workgroup shapes from 1 to 102 | |||
| 345 | subgroups, with and without full subgroups and register pressure, all 32 lanes in order. A device whose default | 345 | subgroups, with and without full subgroups and register pressure, all 32 lanes in order. A device whose default |
| 346 | isn't the requested size still prints `not available`, and those tests skip. | 346 | isn't the requested size still prints `not available`, and those tests skip. |
| 347 | 347 | ||
| 348 | `cs_w32_shift64` checks `v_lshlrev_b64`, `v_lshrrev_b64` and `v_ashrrev_i64` with 64 memory-fed cases: | ||
| 349 | eight boundary values crossed with counts 0, 1, 31, 32, 33, 63, 64 and 65. The expected values come from Python | ||
| 350 | integers using the low six count bits, as specified by the [RDNA2 ISA, VOP3 opcodes 767–769](https://docs.amd.com/api/khub/documents/Et~wpu9g~Ffl7d9q0QZ~Og/content). | ||
| 351 | It also overlaps the destination with the count, one source word or the entire source pair. Both GPU runners | ||
| 352 | compare all 640 heap words (384 results and 256 unchanged input words); the operands are loaded at runtime so | ||
| 353 | the driver cannot replace the tested operations with constant-folded answers. Run it alone with | ||
| 354 | `python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_w32_shift64 --require-pass`. | ||
| 355 | It needs shader Int64 support; a device that lacks it reports a skip. This is a wave32 test of 64-bit values, | ||
| 356 | independent of wave64 emulation. On RTX 3080 Ti (616.92, Windows 11), all 640 words matched; replacing the count | ||
| 357 | mask with 31 or the arithmetic shift with a logical shift made the test fail at words 66 and 251 respectively. | ||
| 358 | |||
| 348 | ## Wave64 pixel, vertex and geometry shaders (`w64_graphics.py`) | 359 | ## Wave64 pixel, vertex and geometry shaders (`w64_graphics.py`) |
| 349 | 360 | ||
| 350 | Graphics stages have no emulation: on a 32-wide subgroup a wave64 VS, PS or GS runs as two 32-lane halves, and the | 361 | Graphics stages have no emulation: on a 32-wide subgroup a wave64 VS, PS or GS runs as two 32-lane halves, and the |