GPU tests cs_exec64, cs_w32_permute and cs_wqm_w32: two runs, different words (Intel ANV, subgroup 8..32)

オープン
#774 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cmake, linux, python

調査の方向性

Start with runtime/test/shaders/check.py and scripts/run_gpu_tests.py, and the fixtures cs_exec64, cs_w32_permute and cs_wqm_w32 built by runtime/test/shaders/build.py. Reproduce the two runs on a Vulkan device to see whether the words change between runs. Done means the run is deterministic, or the fixture reports SKIP with the device subgroup range when it cannot run at 32 lanes.

索引モデルが issue の本文から書いたものです。

説明

What happens

On Intel ANV, three wave or compute fixtures fail, and two of them do not return the same words twice. Same device, same vk_* binaries, same SPIR-V: two runs of the same fixture gave two different results.

fixture run what came back
cs_w32_permute check.py out[0..7] = 0 29 8 0 0 15 183 15
cs_w32_permute run_gpu_tests.py 218 29 8 211 0 127 183 15
cs_wqm_w32 check.py out[0..7] = 8 1 4 0 8 15728880 4 16
cs_wqm_w32 run_gpu_tests.py 12 1 4 0 16 15728880 4 32
cs_exec64 both out[0..7] = 0 0 0 0 0 0 0 0 (exit 1)

The differing words are in the lanes the fixture reads back, so the difference is not a formatting or index difference. cs_exec64 returned all zeros both times.

System
  • GPU: Intel UHD Graphics 770 (Raptor Lake-S iGPU, 0x8086:0xa780, integrated)
  • Driver: Mesa 26.3.1 vulkan-intel (ANV), Vulkan 1.4.363, reported subgroup range 8..32
  • OS: Arch Linux, kernel 7.2.14-arch1-1
  • Commit: 67204bf (main)
  • Tools: llvm-mc 23.1.5 (Arch, native), spirv-tools 1.4.363.0, cmake and ninja, Python 3.14.10
  • No game files. Everything here is the synthetic fixtures in runtime/test/shaders.
  • The iGPU was selected on a hybrid box with VK_LOADER_DRIVERS_SELECT=*intel*.
Repro
python -I runtime/test/shaders/build.py /tmp/gpuout
VK_LOADER_DRIVERS_SELECT=*intel* python -I runtime/test/shaders/check.py /tmp/gpuout build
VK_LOADER_DRIVERS_SELECT=*intel* python -I scripts/run_gpu_tests.py --build build --work /tmp/gpurun

cs_w32_permute and cs_wqm_w32 were compared between those two commands; both were also re-run with --filter and the values moved again.

What this run cannot settle

#555 skips the wave32 lane-mask dumps below 32 lanes. This device reports a minimum of 8, so two readings fit the data: ANV picked a narrow subgroup for these entry points, or the wave32 lowering itself is wrong on ANV. The changing words point away from a clean lane-count mismatch, because a wrong subgroup size should be wrong the same way each time. I did not read ANV internals to tell them apart.

Ask
  1. Is there a way to pin the subgroup size for these fixtures (the harness choosing subgroupSizeControl and a required size, as #609 does for PSOs) so the same fixture can be run at 32 lanes and compared?
  2. If a narrow subgroup explains it, should these two fixtures report SKIP with the subgroup range, the way the 64-wide checks already do, so a #166 row does not show a FAIL for a device that cannot run them as written?

Counts and symptoms only; nothing from the game is in this report. AI-assisted (Halocline, a local model, in HADAL): it built main, ran the suite and wrote this.

主要言語
Python
スター
14.9k
フォーク
1.2k
平均マージ
1時間 58分
マージ済み PR(30日)
40

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ItsNotRexed/Leonida のほかの issue

ItsNotRexed/Leonida の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。