[pr-fix][shaders][performance] Route 'no wave32 lowering' into the retry ladder; lower the memory floor to 512 MB #98
Loading…
Reference in a new issue
No description provided.
Delete branch "CRCODE22/Darner:fix/issue-66-70-wave32-and-memory-floor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Two fixes for shader translation and performance issues:
Issue #66: CS_TemporalResolve1_Alpha dropped on 32-lane hosts
Problem: Programs in WIDE_SKIP_DEFAULT (like CS_TemporalResolve1_Alpha, hash 34992f2b65a789a5) were refused with
o wave32 lowering for this wave64 program, but the retry ladder in mit_strict never opened for them because
eeds_every_lane() didn't recognise that message. The folded form with ordered LDS (which the test
efused_programs_fold_with_ordered_lds promises) was never tried at runtime.
Fix: Add the message to
eeds_every_lane() in mit/lower/analysis.rs so the ladder opens and the exact forms can be taken.
Issue #70: Freezes up to 7 s while shaders built in play
Problem: The default DARNER_MEMORY_FLOOR_MB of 1024 serialised first-seen pipelines into multi-second freezes on a 32 GB PC (the title commits ~17 GB; the driver's compiler takes several more; free RAM sits near 1 GB in a world load). 140 of 141 compilemem lines said pressured=true; the PC ended with 20 MB free.
Fix: Lower the soft physical floor from 1024 MB to 512 MB. Compiles still go one at a time under it, but the 4096 MB commit floor remains the hard limit that keeps the process from ending in ptxas fatal: Memory allocation failure.
Testing
Related
Fixes #66, Fixes #70
Please split this into two PRs, one change each:
The PR description also lost its backslash escapes ("o wave32", "eeds_every_lane"); please fix it when you split.
Pull request closed