[GH-ISSUE #4971] [TUI] strata launch ignores the Intel Arc when an AMD APU iGPU is also present #2289

Closed
opened 2026-11-04 01:58:11 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @sharko789 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4971

Summary

On a machine with an Intel Arc Pro B60 (discrete, xe driver) and an AMD Raphael APU integrated GPU (amdgpu driver) both visible in /sys/class/drm, Strata Terminal refuses the Arc and mis-detects the machine as an AMD/hip PC. The AMD chip is only a 512 MiB integrated GPU that Strata cannot use — but it is present in sysfs, and that is enough to break both detection paths.

This is a Ryzen APU board. The iGPU is the host APU's integrated graphics exposed through the container's shared sysfs (LXC); it has no usable VRAM and no compute role here. The real, working GPU is the Intel Arc Pro B60.

Environment

OS Ubuntu 26.04.1 LTS (LXC on Proxmox)
Intel GPU Intel Arc Pro B60 (Battlemage G21), PCI 8086:e211, 24 GB, xe driver
AMD iGPU AMD Raphael integrated, PCI 1002:164e (gfx1036), amdgpu driver, 512 MiB
Level Zero runtime libze-intel-gpu1 26.05.37020.3-1
OpenCL ICD intel-opencl-icd 26.05.37020.3-1
clinfo 3.0.25.02.14 → correctly lists Intel(R) Arc(TM) Pro B60 Graphics
Strata Terminal 0.2.9 (build 0.1.55)

The GPU stack itself is healthy: clinfo -l reports the Arc Pro B60 with no errors. The failure is purely in Strata's card/backend detection.

Symptoms

strata launch:

no usable graphics card found · 24 GB RAM · 67 GB free

strata components engine:

This Strata is for Intel cards. Your PC has an AMD card: download the AMD version from https://github.com/Niko1221/Strata/releases
this PC           linux-x86_64, hip (sysfs pci vendor)
  installed       0.1.55 linux-x86_64-sycl

strata launch --plan then adds:

An engine (0.1.50, 0.1.55) is installed, but it did not pass Strata's check on this computer

So the Arc is invisible to the launcher, and the installed SYCL engine is rejected as the wrong vendor.

Root cause (two independent paths, same trigger)

1. strata_cli/launch/catalog.py — the Arc is only consulted as a fallback.
Catalog.hardware() only calls intel_arc_cards() when the shared reader found nothing:

hw = dict(self.strata.hardware(fresh=fresh))
hw["gpus"] = self._admit_old_nvidia(list(hw.get("gpus") or []))
if not hw.get("gpus") and not str(hw.get("os", "")).startswith("Windows"):
    arc = intel_arc_cards()
    if arc:
        hw["gpus"] = arc

The shared reader does find the AMD iGPU (vendor 0x1002, mem_info_vram_total = 512 MiB), so hw["gpus"] is non-empty and intel_arc_cards() is never called. I confirmed this directly:

intel_arc_cards(): [{'vendor': 'intel', 'name': 'Intel Arc Pro B60', 'vram_gb': 24.0, 'usable': True, 'index': 0}]
shared-reader would see card1: vendor=0x1002 vram=512 MiB

The iGPU is usable: False (gfx1036 isn't a supported AMD target), so it counts as "a card was found" but can never be used → usable_gpus is empty → "no usable graphics card found".

2. strata_control/engine_component.py — vendor priority picks AMD over Intel.
detect_backend() probes sycl-ls, which isn't installed, so it falls through to the sysfs PCI-vendor heuristic _drm_vendor_backend():

for vendor, backend in (("0x10de","cuda"),("0x1002","hip"),("0x8086","sycl")):
    if vendor in vendors:
        return backend

With both 0x1002 (iGPU) and 0x8086 (Arc) present, it returns hip. The whole PC is therefore classified as an AMD machine, and the installed sycl engine "does not pass Strata's check".

Why this is a gap

The Windows path already handles exactly this: WIN_AMD_IGPU_IDS exists so that "an integrated Radeon beside a card never counts as 'the GPU'". The Linux sysfs path has no equivalent integrated-GPU exclusion, so an APU iGPU — which is neither the user's GPU nor a usable compute target — out-votes the discrete Arc in both the launcher and the backend detector.

Workaround that unblocked me

  • Set STRATA_ENGINE_BACKEND=sycl (the documented support-desk override) so the backend detector stops reporting hip.
  • The Arc still needs to be merged into the card list rather than only added when empty (the catalog.py fallback condition above).

With both, strata components engine reports this PC linux-x86_64, sycl, selects the 0.1.55 SYCL engine, and strata launch --plan plans against Intel Arc Pro B60 24 GB.

Suggested fix

On the Linux detection paths, exclude integrated GPUs the same way the Windows path does — i.e. when a discrete card of another (or the same) vendor is present, an iGPU/UMA device (low mem_info_vram_total, or a known APU device id) should not (a) suppress the intel_arc_cards() fallback and (b) win the _drm_vendor_backend() priority. Minimum viable change: consult intel_arc_cards() in parallel with the shared reader and merge, and in _drm_vendor_backend() prefer a discrete card's vendor over an integrated one.


Drafted by Qwen3.8-27B working on behalf of sharko789.


Originally created by @sharko789 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4971 ## Summary On a machine with an **Intel Arc Pro B60** (discrete, `xe` driver) *and* an **AMD Raphael APU integrated GPU** (`amdgpu` driver) both visible in `/sys/class/drm`, Strata Terminal refuses the Arc and mis-detects the machine as an AMD/`hip` PC. The AMD chip is only a **512 MiB integrated GPU** that Strata cannot use — but it is present in sysfs, and that is enough to break both detection paths. This is a Ryzen APU board. The iGPU is the host APU's integrated graphics exposed through the container's shared sysfs (LXC); it has no usable VRAM and no compute role here. The real, working GPU is the Intel Arc Pro B60. ## Environment | | | |---|---| | OS | Ubuntu 26.04.1 LTS (LXC on Proxmox) | | Intel GPU | Intel Arc Pro B60 (Battlemage G21), PCI `8086:e211`, 24 GB, `xe` driver | | AMD iGPU | AMD Raphael integrated, PCI `1002:164e` (gfx1036), `amdgpu` driver, 512 MiB | | Level Zero runtime | `libze-intel-gpu1 26.05.37020.3-1` | | OpenCL ICD | `intel-opencl-icd 26.05.37020.3-1` | | clinfo | 3.0.25.02.14 → correctly lists **Intel(R) Arc(TM) Pro B60 Graphics** | | Strata Terminal | 0.2.9 (build 0.1.55) | The GPU stack itself is healthy: `clinfo -l` reports the Arc Pro B60 with no errors. The failure is purely in Strata's card/backend detection. ## Symptoms `strata launch`: ``` no usable graphics card found · 24 GB RAM · 67 GB free ``` `strata components engine`: ``` This Strata is for Intel cards. Your PC has an AMD card: download the AMD version from https://github.com/Niko1221/Strata/releases this PC linux-x86_64, hip (sysfs pci vendor) installed 0.1.55 linux-x86_64-sycl ``` `strata launch --plan` then adds: ``` An engine (0.1.50, 0.1.55) is installed, but it did not pass Strata's check on this computer ``` So the Arc is invisible to the launcher, and the installed SYCL engine is rejected as the wrong vendor. ## Root cause (two independent paths, same trigger) **1. `strata_cli/launch/catalog.py` — the Arc is only consulted as a fallback.** `Catalog.hardware()` only calls `intel_arc_cards()` when the shared reader found *nothing*: ```python hw = dict(self.strata.hardware(fresh=fresh)) hw["gpus"] = self._admit_old_nvidia(list(hw.get("gpus") or [])) if not hw.get("gpus") and not str(hw.get("os", "")).startswith("Windows"): arc = intel_arc_cards() if arc: hw["gpus"] = arc ``` The shared reader *does* find the AMD iGPU (`vendor 0x1002`, `mem_info_vram_total` = 512 MiB), so `hw["gpus"]` is non-empty and `intel_arc_cards()` is never called. I confirmed this directly: ``` intel_arc_cards(): [{'vendor': 'intel', 'name': 'Intel Arc Pro B60', 'vram_gb': 24.0, 'usable': True, 'index': 0}] shared-reader would see card1: vendor=0x1002 vram=512 MiB ``` The iGPU is `usable: False` (gfx1036 isn't a supported AMD target), so it counts as "a card was found" but can never be used → `usable_gpus` is empty → "no usable graphics card found". **2. `strata_control/engine_component.py` — vendor priority picks AMD over Intel.** `detect_backend()` probes `sycl-ls`, which isn't installed, so it falls through to the sysfs PCI-vendor heuristic `_drm_vendor_backend()`: ```python for vendor, backend in (("0x10de","cuda"),("0x1002","hip"),("0x8086","sycl")): if vendor in vendors: return backend ``` With both `0x1002` (iGPU) and `0x8086` (Arc) present, it returns **`hip`**. The whole PC is therefore classified as an AMD machine, and the installed `sycl` engine "does not pass Strata's check". ## Why this is a gap The Windows path already handles exactly this: `WIN_AMD_IGPU_IDS` exists so that *"an integrated Radeon beside a card never counts as 'the GPU'"*. The Linux sysfs path has no equivalent integrated-GPU exclusion, so an APU iGPU — which is neither the user's GPU nor a usable compute target — out-votes the discrete Arc in both the launcher and the backend detector. ## Workaround that unblocked me - Set `STRATA_ENGINE_BACKEND=sycl` (the documented support-desk override) so the backend detector stops reporting `hip`. - The Arc still needs to be *merged* into the card list rather than only added when empty (the `catalog.py` fallback condition above). With both, `strata components engine` reports `this PC linux-x86_64, sycl`, selects the 0.1.55 SYCL engine, and `strata launch --plan` plans against **Intel Arc Pro B60 24 GB**. ## Suggested fix On the Linux detection paths, exclude integrated GPUs the same way the Windows path does — i.e. when a discrete card of another (or the same) vendor is present, an iGPU/UMA device (low `mem_info_vram_total`, or a known APU device id) should not (a) suppress the `intel_arc_cards()` fallback and (b) win the `_drm_vendor_backend()` priority. Minimum viable change: consult `intel_arc_cards()` in parallel with the shared reader and merge, and in `_drm_vendor_backend()` prefer a discrete card's vendor over an integrated one. --- *Drafted by Qwen3.8-27B working on behalf of sharko789.* ---
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6567015606 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6567092023 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): Thanks, this follows the format now.
Author
Owner

@sharko789 commented on GitHub (Nov 3, 2026):

#5111

<!-- gh-comment-id:6609552218 --> @sharko789 commented on GitHub (Nov 3, 2026): #5111
Author
Owner

@XiaoBinGan commented on GitHub (Nov 4, 2026):

Thanks for the report and the /sys/class/drm listing. The cause is in strata_control/engine_component.py: _drm_vendor_backend() returns the first PCI vendor it finds in a fixed order, so a 512 MiB AMD APU iGPU outvotes the discrete Arc Pro B60 and the PC is classified as AMD.

Pull request #5184 skips a card whose own VRAM is under 2 GiB (device/mem_info_vram_total) while another card is present, and leaves NVIDIA/Intel (no such file) alone. That is the component/engine-detection half of the issue; the launcher's own resolution is a separate path and is not in that pull request.

<!-- gh-comment-id:6624335014 --> @XiaoBinGan commented on GitHub (Nov 4, 2026): Thanks for the report and the `/sys/class/drm` listing. The cause is in `strata_control/engine_component.py`: `_drm_vendor_backend()` returns the first PCI vendor it finds in a fixed order, so a 512 MiB AMD APU iGPU outvotes the discrete Arc Pro B60 and the PC is classified as AMD. Pull request #5184 skips a card whose own VRAM is under 2 GiB (`device/mem_info_vram_total`) while another card is present, and leaves NVIDIA/Intel (no such file) alone. That is the component/engine-detection half of the issue; the launcher's own resolution is a separate path and is not in that pull request.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Hello sharko789,

Thank you for the thorough report and PR #5184. In Strata 0.2.11 an integrated GPU no longer outvotes a discrete card when the engine family is chosen: a small Radeon APU cannot outvote the Arc, and Arc cards above number 9 or with an unreadable entry beside them are still seen. The launcher on our base already merged an Arc beside other makes; the rest is the part we fixed. We tested with unit cases only, because no machine here has an Arc beside an AMD APU. Please try 0.2.11 and, if the Intel engine is still not chosen, send the output of strata launch --plan.

The Strata project

<!-- gh-comment-id:6658479349 --> @Niko1221 commented on GitHub (Nov 5, 2026): Hello sharko789, Thank you for the thorough report and PR #5184. In Strata 0.2.11 an integrated GPU no longer outvotes a discrete card when the engine family is chosen: a small Radeon APU cannot outvote the Arc, and Arc cards above number 9 or with an unreadable entry beside them are still seen. The launcher on our base already merged an Arc beside other makes; the rest is the part we fixed. We tested with unit cases only, because no machine here has an Arc beside an AMD APU. Please try 0.2.11 and, if the Intel engine is still not chosen, send the output of `strata launch --plan`. The Strata project
Author
Owner

@sharko789 commented on GitHub (Nov 6, 2026):

Yes, this seems to be resolved, I can't reproduce the problem on 0.2.11. Thanks for the PR @XiaoBinGan

<!-- gh-comment-id:6687377512 --> @sharko789 commented on GitHub (Nov 6, 2026): Yes, this seems to be resolved, I can't reproduce the problem on 0.2.11. Thanks for the PR @XiaoBinGan
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2289
No description provided.