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

Abierto
#774 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cmake, linux, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
14.9k
Forks
1.2k
Merge medio
1 h 58 min
PR fusionados (30 d)
40

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ItsNotRexed/Leonida

Todos los issues de ItsNotRexed/Leonida

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.