GPU test cs_imgstore_cube fails on Tesla V100 (Volta), driver 580.178.04 #1492

Closed
opened 2026-11-25 01:53:12 +00:00 by 31415-n · 6 comments
31415-n commented 2026-11-25 01:53:12 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by 31415-n on 2026-11-25T01:53:12Z.


run_gpu_tests.py fails one fixture on a Tesla V100-SXM2-16GB (Volta) under Linux.

  • Commit: b4b7756e8c64e7ae8b310288d543db0e428c0796 (main, 2026-11-25)
  • GPU: NVIDIA Tesla V100-SXM2-16GB (Volta, PCI device 0x1db1), subgroup 32..32
  • Driver: NVIDIA 580.178.04 (driverVersion 580.178.4.0), Vulkan 1.4.312
  • Tools: llvm-mc 23.1.6, SPIRV-Tools v2026.4

Failure:

cs_imgstore_cube: exit 1: r32 sint (sint view): 63 bad, texel(5,3) = 0

Reproduced in the native run, in the wave64-emulated run, in the all-fallbacks run, and once with --filter cs_imgstore_cube.

It is not listed under docs/testing.md "Known problems". The full record with all pass/skip counts is being added in the first Volta GPU-results pull request (gpu-test-results/V100-SXM2.txt), which will link this issue.

Repro (no game data, no account or machine identifiers):

LLVM_MC=<llvm-mc 23.1.6> LEONIDA_VK_DEVICE=V100 \
python3 -I scripts/run_gpu_tests.py --build <external-build-dir> --filter cs_imgstore_cube

AI-assisted (OpenCode agent). Counts and error classes only; no game data, paths, or personal identifiers.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6595320823 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/1492). Originally posted by [31415-n](https://github.com/31415-n) on 2026-11-25T01:53:12Z. --- `run_gpu_tests.py` fails one fixture on a Tesla V100-SXM2-16GB (Volta) under Linux. - Commit: `b4b7756e8c64e7ae8b310288d543db0e428c0796` (`main`, 2026-11-25) - GPU: NVIDIA Tesla V100-SXM2-16GB (Volta, PCI device 0x1db1), subgroup 32..32 - Driver: NVIDIA 580.178.04 (driverVersion 580.178.4.0), Vulkan 1.4.312 - Tools: llvm-mc 23.1.6, SPIRV-Tools v2026.4 Failure: ``` cs_imgstore_cube: exit 1: r32 sint (sint view): 63 bad, texel(5,3) = 0 ``` Reproduced in the native run, in the wave64-emulated run, in the all-fallbacks run, and once with `--filter cs_imgstore_cube`. It is not listed under docs/testing.md "Known problems". The full record with all pass/skip counts is being added in the first Volta GPU-results pull request (`gpu-test-results/V100-SXM2.txt`), which will link this issue. Repro (no game data, no account or machine identifiers): ``` LLVM_MC=<llvm-mc 23.1.6> LEONIDA_VK_DEVICE=V100 \ python3 -I scripts/run_gpu_tests.py --build <external-build-dir> --filter cs_imgstore_cube ``` AI-assisted (OpenCode agent). Counts and error classes only; no game data, paths, or personal identifiers.
31415-n commented 2026-11-25 01:55:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by 31415-n on 2026-11-25T01:55:23Z.


Recorded in the first Volta GPU-results pull request: #1494.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7150115379 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/issues/1492#issuecomment-7150115379). Originally posted by [31415-n](https://github.com/31415-n) on 2026-11-25T01:55:23Z. --- Recorded in the first Volta GPU-results pull request: #1494.
j-weiner commented 2026-11-25 16:53:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by j-weiner on 2026-11-25T16:53:00Z.


I built and ran the existing synthetic cs_imgstore_cube fixture from current main (9e7720c9e) through vk_store_test on an NVIDIA GeForce RTX 5090 (driver 621.14, Windows 11 Pro 26200, Vulkan SDK 1.4.363.1). Translation and spirv-val both passed; all three cube formats reported 0 bad texels, including r32 sint at face 4 texel (5,3) = -4029. This does not reproduce the Tesla V100 failure, so I cannot validate a V100-specific fix on this machine. No game files were used; no code change made.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7168674818 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/issues/1492#issuecomment-7168674818). Originally posted by [j-weiner](https://github.com/j-weiner) on 2026-11-25T16:53:00Z. --- I built and ran the existing synthetic `cs_imgstore_cube` fixture from current `main` (`9e7720c9e`) through `vk_store_test` on an NVIDIA GeForce RTX 5090 (driver 621.14, Windows 11 Pro 26200, Vulkan SDK 1.4.363.1). Translation and `spirv-val` both passed; all three cube formats reported 0 bad texels, including `r32 sint` at face 4 texel (5,3) = -4029. This does not reproduce the Tesla V100 failure, so I cannot validate a V100-specific fix on this machine. No game files were used; no code change made.
kevincommits commented 2026-11-27 01:21:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by kevincommits on 2026-11-27T01:21:48Z.


Data point on Turing (same 580 Linux driver branch): cs_imgstore_cube passes on an NVIDIA Tesla T4 (Turing / TU104, PCI 10de:1eb8, Google Colab T4 runtime) with driver 580.82.07 (Vulkan 1.4.312), Ubuntu 24.04.4 LTS (6.6.159+), llvm-mc 23.1.6, SPIRV-Tools 2026.4, at main d1dff7949:

PASS  cs_imgstore_cube      r32 sint cube (sint view): 0 bad, face 4 texel(5,3) = -4029

Passed in native, LEONIDA_W64_EMULATE=1, and isolated --filter cs_imgstore_cube runs. That narrows this between Volta (GV100) and Turing (TU104) on the 580 driver branch (or 580.82.07 vs 580.178.04). Full Tesla T4 record staged on kevincommits/leonida:gpu/tesla-t4-colab (claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7207211628).

No game files used. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7207227838 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/issues/1492#issuecomment-7207227838). Originally posted by [kevincommits](https://github.com/kevincommits) on 2026-11-27T01:21:48Z. --- Data point on Turing (same 580 Linux driver branch): `cs_imgstore_cube` **passes** on an NVIDIA Tesla T4 (Turing / TU104, PCI `10de:1eb8`, Google Colab T4 runtime) with driver `580.82.07` (Vulkan `1.4.312`), Ubuntu 24.04.4 LTS (`6.6.159+`), `llvm-mc 23.1.6`, `SPIRV-Tools 2026.4`, at `main` `d1dff7949`: ``` PASS cs_imgstore_cube r32 sint cube (sint view): 0 bad, face 4 texel(5,3) = -4029 ``` Passed in native, `LEONIDA_W64_EMULATE=1`, and isolated `--filter cs_imgstore_cube` runs. That narrows this between Volta (GV100) and Turing (TU104) on the 580 driver branch (or 580.82.07 vs 580.178.04). Full Tesla T4 record staged on `kevincommits/leonida:gpu/tesla-t4-colab` (claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7207211628). No game files used. AI-assisted.
akimfomin commented 2026-11-27 01:36:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by akimfomin on 2026-11-27T01:36:54Z.


I compared the V100 and T4 revisions. The cs_imgstore_cube.asm blob is identical, but both the helper and runner changed. For example, the T4 harness adds descriptor-kind metadata where the cube descriptor is inserted. Also, the V100 summary has the text the older source uses for its ordinary 2D path; the cube path prints a distinct line with face 4. The older Python script did pass cube. The summary alone does not tell us why those differ.

PortBridge Lab #111 pins the first useful run: the T4-passing revision on Volta in a clean build directory, returning the cube-specific line and driver. A complementary run of the older revision on T4 is useful if someone already has that device. Existing reports remain credited to 31415-n and kevincommits. One isolated synthetic test is enough to start.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7207434291 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/issues/1492#issuecomment-7207434291). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-27T01:36:54Z. --- I compared the V100 and T4 revisions. The `cs_imgstore_cube.asm` blob is identical, but both the helper and runner changed. For example, [the T4 harness adds descriptor-kind metadata where the cube descriptor is inserted](https://github.com/ubiquitarianism/leonida/blob/d1dff7949be62b6609c3c2ca937df7f50fbf1305/runtime/test/vk_store_test.cpp#L240-L249). Also, the V100 summary has the text the older source uses for its ordinary 2D path; the cube path [prints a distinct line with face 4](https://github.com/ubiquitarianism/leonida/blob/b4b7756e8c64e7ae8b310288d543db0e428c0796/runtime/test/vk_store_test.cpp#L587-L609). The older Python script did pass `cube`. The summary alone does not tell us why those differ. [PortBridge Lab #111](https://github.com/akimfomin/PortBridge/issues/111#issuecomment-7207400733) pins the first useful run: the T4-passing revision on Volta in a clean build directory, returning the cube-specific line and driver. A complementary run of the older revision on T4 is useful if someone already has that device. Existing reports remain credited to 31415-n and kevincommits. One isolated synthetic test is enough to start.
kevincommits commented 2026-11-27 13:59:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by kevincommits on 2026-11-27T13:59:19Z.


@akimfomin Ran the complementary check on a Google Colab Tesla T4 (Turing / TU104, PCI 0x1EB810DE, NVIDIA driver 580.82.07, Linux) at both the exact older V100 revision b4b7756e8 and d1dff7949 in clean build directories (vk_store_test + vk_compute_test + vk_harness):

At b4b7756e8 (same revision as the V100 failure)

  • python3 -I scripts/run_gpu_tests.py --build runtime/build/older_v100_rev --filter cs_imgstore_cube --require-pass:
    PASS  cs_imgstore_cube      r32 sint cube (sint view): 0 bad, face 4 texel(5,3) = -4029
    1/1 passed
    
  • Direct vk_store_test cs_imgstore_cube.spv cube (rc=0):
    device: Tesla T4
    rgba8 unorm cube (float view): 0 bad, face 4 texel(5,3) = 182 109 204 255
    r32 uint cube (uint view): 0 bad, face 4 texel(5,3) = 4129
    r32 sint cube (sint view): 0 bad, face 4 texel(5,3) = -4029
    
  • Negative control (direct vk_store_test cs_imgstore_cube.spv without cube, rc=1): 64/64/63 bad, all zeros.

At d1dff7949

  • Identical 1/1 passed (0 bad on all three cube views: rgba8 unorm, r32 uint, r32 sint).

Additional NVIDIA 580.82.07 Colab data points (at d1dff7949)

  • NVIDIA L4 (Ada / AD104, 580.82.07): PASS cs_imgstore_cube r32 sint cube (sint view): 0 bad, face 4 texel(5,3) = -4029
  • NVIDIA A100-SXM4-40GB (Ampere / GA100, 580.82.07): passed inside the full run_gpu_tests.py suite (209/269 native and 244/269 LEONIDA_W64_EMULATE=1, sole failure cs_imgatomic_ext #1518).

This rules out a commit difference between b4b7756e8 and d1dff7949 and points specifically to Volta (V100) and/or driver 580.178.04 vs 580.82.07.

No game files used. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7220191428 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/issues/1492#issuecomment-7220191428). Originally posted by [kevincommits](https://github.com/kevincommits) on 2026-11-27T13:59:19Z. --- @akimfomin Ran the complementary check on a **Google Colab Tesla T4** (Turing / TU104, PCI `0x1EB810DE`, NVIDIA driver `580.82.07`, Linux) at both the exact older V100 revision **`b4b7756e8`** and **`d1dff7949`** in clean build directories (`vk_store_test` + `vk_compute_test` + `vk_harness`): ### At `b4b7756e8` (same revision as the V100 failure) - `python3 -I scripts/run_gpu_tests.py --build runtime/build/older_v100_rev --filter cs_imgstore_cube --require-pass`: ```text PASS cs_imgstore_cube r32 sint cube (sint view): 0 bad, face 4 texel(5,3) = -4029 1/1 passed ``` - Direct `vk_store_test cs_imgstore_cube.spv cube` (`rc=0`): ```text device: Tesla T4 rgba8 unorm cube (float view): 0 bad, face 4 texel(5,3) = 182 109 204 255 r32 uint cube (uint view): 0 bad, face 4 texel(5,3) = 4129 r32 sint cube (sint view): 0 bad, face 4 texel(5,3) = -4029 ``` - Negative control (direct `vk_store_test cs_imgstore_cube.spv` without `cube`, `rc=1`): `64/64/63 bad`, all zeros. ### At `d1dff7949` - Identical **`1/1 passed`** (`0 bad` on all three cube views: `rgba8 unorm`, `r32 uint`, `r32 sint`). ### Additional NVIDIA `580.82.07` Colab data points (at `d1dff7949`) - **NVIDIA L4** (Ada / AD104, `580.82.07`): `PASS cs_imgstore_cube r32 sint cube (sint view): 0 bad, face 4 texel(5,3) = -4029` - **NVIDIA A100-SXM4-40GB** (Ampere / GA100, `580.82.07`): passed inside the full `run_gpu_tests.py` suite (`209/269` native and `244/269` `LEONIDA_W64_EMULATE=1`, sole failure `cs_imgatomic_ext` #1518). This rules out a commit difference between `b4b7756e8` and `d1dff7949` and points specifically to **Volta (V100) and/or driver `580.178.04` vs `580.82.07`**. No game files used. AI-assisted.
aslan2142 commented 2026-12-01 17:06:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:06:12Z.


Closing this issue because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the report/contribution! If you believe this issue was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7318757218 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/1492#issuecomment-7318757218). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:06:12Z. --- Closing this issue because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the report/contribution! If you believe this issue was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy#1492
No description provided.