Improve GPU compatibility, RDNA2 kernels and startup diagnostics

- Match render/compute adapters and gate RR models by GPU capabilities
- Add RDNA2 native texture kernels and fix FP16 rounding
- Harden model builds, cache validation and packaging
- Add startup tracing, timeouts, documentation and regression tests
This commit is contained in:
ayo committed 2026-10-19 11:36:40 -04:00
1 parent ca93d0fbf7
commit 2558fcbd39
32 files changed
+1131 -81

No files matched your search

+6
View File
@@ -206,6 +206,12 @@ def main(argv):
env["D4R_SHIM_MARKER_POLL_US"] = value
value = flag("Engine", "Enabled")
if value is None:
models = Path(os.environ.get("D4R_RUNTIME_DIR", path.parent)) / "engine"
value = any((models / model).is_dir() for model in
("k", "k-ldr", "m", "m-ldr", "l", "l-ldr", "rr-d", "rr-e", "rr-f",
"rr-d-gfx11", "rr-e-gfx11"))
env["D4R_ENGINE_K"] = "0"
env["D4R_ENGINE"] = "1" if value else "0"
if path_value("Engine", "ModelDir"):
env["D4R_ENGINE_MODEL_DIR"] = path_value("Engine", "ModelDir")