Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

strata update: a feed whose only HIP engine is for another AMD card family says so in one plain line (This build of Strata is for AMD RX 7000 cards ... Ask for the RX 9000 build)

Niko12216aa502d938ba
diff --git a/strata_cli/update_cmd.py b/strata_cli/update_cmd.py
index 4e89a4334..953b4dd9f 100644
--- a/strata_cli/update_cmd.py
+++ b/strata_cli/update_cmd.py
@@ -136,7 +136,7 @@ def _print_check(report: dict) -> None:
offered = (eng["offered"] or {}).get("version")
text = {"available": f"update available: {installed} -> {offered} ({_mib(eng['download_bytes'])})",
"install": f"no engine installed yet; {offered} is the one for this PC ({_mib(eng['download_bytes'])})",
- "current": f"{installed} is up to date", "none-for-this-pc": "the feed has no engine for this PC",
+ "current": f"{installed} is up to date", "none-for-this-pc": eng.get("note") or "the feed has no engine for this PC",
"not-in-feed": "the feed lists no engines"}.get(eng["status"], eng.get("note") or eng["status"])
print(f" Engine {text}")
for reason in eng.get("reasons") or []:
diff --git a/strata_control/updater.py b/strata_control/updater.py
index adca61d41..b83cc869f 100644
--- a/strata_control/updater.py
+++ b/strata_control/updater.py
@@ -435,6 +435,12 @@ def _choose_engine(feed: feedmod.Feed, ctx: Context, state: State) -> tuple[dict
if offered is None:
if not feed.engine:
report["status"] = "not-in-feed"
+ else:
+ hip = [p for p in feed.engine if p.backend == "hip" and p.platform == ctx.hardware.get("platform")]
+ if hip and ctx.hardware.get("backend") == "hip" and ctx.hardware.get("gfx") and not any(
+ feedmod.engine_fit_reasons(p, ctx.hardware) == [] for p in hip):
+ # a build for another AMD card family: one plain line instead of the list of reasons
+ report["note"] = ec.arch_notice(tuple(sorted({a for p in hip for a in p.archs if a.startswith("gfx")})), ctx.hardware["gfx"])
return report, None
report["download_bytes"] = offered.size
if installed is None:
diff --git a/tests/terminal/test_updater.py b/tests/terminal/test_updater.py
index 8d19d3836..67d93edaf 100644
--- a/tests/terminal/test_updater.py
+++ b/tests/terminal/test_updater.py
@@ -686,5 +686,22 @@ class Cli(UpdaterCase):
self.assertEqual(self.archive_requests(), [])
+class AnotherCardFamilyNote(unittest.TestCase):
+ """A feed whose only HIP engine is built for another AMD card family says so in one plain line."""
+
+ def test_the_note_names_both_families_and_the_build_to_ask_for(self):
+ import tempfile
+ from types import SimpleNamespace
+ pkg = SimpleNamespace(label="0.1.45.1 linux-x86_64-hip-rx7900", platform="linux-x86_64", backend="hip", min_runtime=None,
+ archs=("gfx1100", "gfx1101", "gfx1102"), min_driver={})
+ hardware = {"platform": "linux-x86_64", "backend": "hip", "runtime": None, "gfx": ["gfx1201"], "cuda_archs": [], "nvidia_driver": None}
+ with tempfile.TemporaryDirectory() as d:
+ ctx = SimpleNamespace(components=Path(d), hardware=hardware)
+ report, offered = updater._choose_engine(SimpleNamespace(engine=[pkg]), ctx, SimpleNamespace(section=lambda name: {}))
+ self.assertIsNone(offered)
+ self.assertEqual(report["status"], "none-for-this-pc")
+ self.assertEqual(report["note"], "This build of Strata is for AMD RX 7000 cards. This computer has an AMD RX 9000 card (gfx1201). Ask for the RX 9000 build.")
+
+
if __name__ == "__main__":
unittest.main()