mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4971] [TUI] strata launch ignores the Intel Arc when an AMD APU iGPU is also present #2289
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2289
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
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,
xedriver) and an AMD Raphael APU integrated GPU (amdgpudriver) both visible in/sys/class/drm, Strata Terminal refuses the Arc and mis-detects the machine as an AMD/hipPC. 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
8086:e211, 24 GB,xedriver1002:164e(gfx1036),amdgpudriver, 512 MiBlibze-intel-gpu1 26.05.37020.3-1intel-opencl-icd 26.05.37020.3-1The GPU stack itself is healthy:
clinfo -lreports the Arc Pro B60 with no errors. The failure is purely in Strata's card/backend detection.Symptoms
strata launch:strata components engine:strata launch --planthen adds: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 callsintel_arc_cards()when the shared reader found nothing:The shared reader does find the AMD iGPU (
vendor 0x1002,mem_info_vram_total= 512 MiB), sohw["gpus"]is non-empty andintel_arc_cards()is never called. I confirmed this directly: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_gpusis empty → "no usable graphics card found".2.
strata_control/engine_component.py— vendor priority picks AMD over Intel.detect_backend()probessycl-ls, which isn't installed, so it falls through to the sysfs PCI-vendor heuristic_drm_vendor_backend():With both
0x1002(iGPU) and0x8086(Arc) present, it returnship. The whole PC is therefore classified as an AMD machine, and the installedsyclengine "does not pass Strata's check".Why this is a gap
The Windows path already handles exactly this:
WIN_AMD_IGPU_IDSexists 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
STRATA_ENGINE_BACKEND=sycl(the documented support-desk override) so the backend detector stops reportinghip.catalog.pyfallback condition above).With both,
strata components enginereportsthis PC linux-x86_64, sycl, selects the 0.1.55 SYCL engine, andstrata launch --planplans 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 theintel_arc_cards()fallback and (b) win the_drm_vendor_backend()priority. Minimum viable change: consultintel_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.
@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:
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
@github-actions[bot] commented on GitHub (Nov 2, 2026):
Thanks, this follows the format now.
@sharko789 commented on GitHub (Nov 3, 2026):
#5111
@XiaoBinGan commented on GitHub (Nov 4, 2026):
Thanks for the report and the
/sys/class/drmlisting. The cause is instrata_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.@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
@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