M post: the history encode relies on a driver conversion fold without a start-up check
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
Línea de trabajo
Read #231 first to see the Model L guard this mirrors, then the history-encode block in clean/dx12/kernels/post.hlsl around lines 1127-1132 where the mad(log2(..), kEncK, 0.0f) result feeds cvt3_f16. Pair that with the earlier round-to-odd encode to build the needs=nofold port, add the needs=fold port, and write the start-up self-test that runs both real post shaders over the crafted midpoint frame and compares raw bytes. Add the isa= rules in build_dx12.py last; done when the probe selects a port from real shader output and both sites are guarded.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Model M's D3D12 post kernels (clean/dx12/kernels/post.hlsl, around lines 1127-1132) write the history texel as
mad(log2(..), kEncK, 0.0f) fed into the driver's round-to-nearest-even matrix conversion (cvt3_f16). The gfx1201
D3D12 compiler folds that into v_fma_mixlo_f16 .., kEncK, 0, which is HIP's own instruction, so today's bytes match HIP.
The exactness depends on that fold. A driver that does not fold would round the FP32 product first and then convert
it: two roundings, one FP16 ulp off wherever the FP32 product lands exactly on an FP16 midpoint. The frame checks would
likely not see it, because synthetic data rarely hits such midpoints.
Model L's post is getting the same guard in #231. M's post should get it too:
- a
needs=fold/needs=nofoldpair of post ports, with the previous round-to-odd form as the no-fold fallback; - a start-up self-test that runs the REAL fold and no-fold post shaders on one small crafted frame whose history-encode
inputs sit on FP16 midpoints from both sides, ties, +-0, subnormals and the floor, and compares their raw bytes
(equal: fold port; different or any error: no-fold port). A separate probe shader is not enough, because the driver
can compile the real post shader differently; - an
isa=rule inbuild_dx12.pyon each port that relies on the fold, tied to the actual sites.
- Lenguaje dominante
- C++
- Estrellas
- 12
- Forks
- 2
- Merge medio
- 3 h 10 min
- PR fusionados (30 d)
- 171
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de phantoslayer21/wronggpu
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
phantoslayer21/wronggpu#275 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
phantoslayer21/wronggpu#274 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
phantoslayer21/wronggpu#241 ·
Los mantenedores suelen responder en 1 día
-
bug build
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
phantoslayer21/wronggpu#234 ·
Los mantenedores suelen responder en 1 día
-
Launcher tests: "an older record: update available" fakes a version newer than the test buildAbiertobug build
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
phantoslayer21/wronggpu#233 ·
Los mantenedores suelen responder en 1 día
Todos los issues de phantoslayer21/wronggpu
Issues similares
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
ReyeMe/SaturnRingLib#155 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Nheko-Reborn/nheko#2092 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
isocpp/CppCoreGuidelines#2345 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 71/100
ROCm/rocm-libraries#16108 ·
Los mantenedores suelen responder en 2 días