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++

hip_archs_present: an explicit kfd folder is always read (the Windows adapter lookup only replaces the default Linux one)

Niko122167bd2a1609c1
diff --git a/strata_control/engine_component.py b/strata_control/engine_component.py
index 0cf2bc2eb..b8c554423 100644
--- a/strata_control/engine_component.py
+++ b/strata_control/engine_component.py
@@ -536,12 +536,14 @@ def cuda_archs_present(environ=None) -> list[str]:
return found
-def hip_archs_present(kfd_root: str = "/sys/class/kfd/kfd/topology/nodes") -> list[str]:
+def hip_archs_present(kfd_root: str | None = None) -> list[str]:
"""``gfxNNNN`` for each AMD GPU the Linux kernel driver lists (``gfx_target_version`` is MMmmss: gfx1201 = 120001,
gfx1103 = 110003, gfx90a = 90010); Windows: from the display adapters' PCI ids (integrated Radeons left out); empty when
it cannot say (no amdgpu/kfd, no permission, an id not in the table)."""
- if os.name == "nt":
- return sorted({c["arch"] for c in windows_amd_cards() if c["arch"]})
+ if kfd_root is None:
+ if os.name == "nt":
+ return sorted({c["arch"] for c in windows_amd_cards() if c["arch"]})
+ kfd_root = "/sys/class/kfd/kfd/topology/nodes"
found = []
try:
nodes = sorted(Path(kfd_root).iterdir())