M post: the history encode relies on a driver conversion fold without a start-up check
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 15/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- build-system, computer-graphics
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C++
- Sterne
- 12
- Forks
- 2
- Ø Merge
- 3 Std. 10 Min.
- Gemergte PRs (30 T.)
- 171
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus phantoslayer21/wronggpu
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
phantoslayer21/wronggpu#275 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
phantoslayer21/wronggpu#274 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
phantoslayer21/wronggpu#241 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug build
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
phantoslayer21/wronggpu#234 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug build
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
phantoslayer21/wronggpu#233 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in phantoslayer21/wronggpu
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
ReyeMe/SaturnRingLib#155 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Nheko-Reborn/nheko#2092 ·
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 78/100
isocpp/CppCoreGuidelines#2345 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 71/100
ROCm/rocm-libraries#16108 ·
Maintainer antworten meist innerhalb von 2 Tagen