mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3892] [Host] Strata insists on loading CUDA while I have HIP GPU on W11 #1664
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#1664
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 @bob-u on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3892
I started using strata with Nvidia card which I since swapped with Radeon. However, strata insists on starting CUDA engine no matter what I do:
'strata launch' fails '(after going through config steps) due to trying to load CUDA engine
I go through all the model config steps, select RX9070 but strata insists on using CUDA:
Log says: [host] inference · No Strata engine for this PC. This Strata is for AMD RX 9000 cards. Your PC has an NVIDIA card: download the NVIDIA version from https://github.com/Niko1221/Strata/releases
So it appears that part of Strata recognizes I have Radeon but another continues to use CUDA.
my device list:
@github-actions[bot] commented on GitHub (Oct 23, 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 (Oct 23, 2026):
Thanks, this follows the format now.
@bob-u commented on GitHub (Oct 23, 2026):
I also used windows uninstaller to uninstall Strata and reinstalled HIP version, unfortunately problem continues:
log:
[host] inference · No Strata engine for this PC. This Strata is for AMD RX 9000 cards. Your PC has an NVIDIA card: download the NVIDIA version from https://github.com/Niko1221/Strata/releasesAfter the failure, I checked the %AppData%\Local\Strata\components\enginefolder and it has CUDA engine in it, even though I installed Strata-0.2.3-windows-hip.exe
So it may be HIP/CUDA detection logic within Strata. Perhaps reading stale registry? I uninstalled all nvidia drivers and apps, btw.
@bob-u commented on GitHub (Oct 24, 2026):
I found Nico's patch from 17 hours ago where they mention I can force to download proper engine.
first option did not work:
Unfortunately, Strata continues to think that my PC has CUDA not RX9070:
same problem via TUI:
@bob-u commented on GitHub (Oct 24, 2026):
I found a workaround:
set engine to: $env:STRATA_ENGINE_BACKEND = "hip-rx9070"
download engine: strata update
set engine to: $env:STRATA_ENGINE_BACKEND = "hip"
start strata: strata launch
The issue appears to be that parts of strata expect hip engine while engine update expects hip-rx9070
@bob-u commented on GitHub (Oct 24, 2026):
Another data point: after reboot I am unable to start strata unless STRATA_ENGINE_BACKEND is set to hip:
Btw, nvidia-smi does not detect any Nvidia cards:
@Vop3p commented on GitHub (Oct 25, 2026):
From the source (v0.2.3.1 and current
mainread the same way), both the app and the Terminal take the card make from the display-class registry key, and both put NVIDIA first:apps/host/server/bundled-engine.mjs,windowsDisplayVendors()runsreg query HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318} /s /v MatchingDeviceIdand collects everyVEN_xxxxunder that key;gpuBackendHere()then returnscudaif10deis among them, before1002. That is where[host] inference · No Strata engine for this PC ... Your PC has an NVIDIA cardcomes from (wrongMakeNotice).strata_control/engine_component.py,_windows_display_adapters_registry()reads every numbered subkey of the same key;detect_backend()uses those adapters first and_first_make()orderscuda,hip,sycl.Neither checks whether the device behind a subkey is still in the PC. With
STRATA_ENGINE_BACKENDunset and your RX 9070 in that key, the only way both reach "NVIDIA" is a subkey whoseMatchingDeviceIdhasVEN_10DE; yourGet-PnpDevice -PresentOnlylist has no NVIDIA device, so that subkey belongs to the card you took out. That is also why$env:STRATA_ENGINE_BACKEND = "hip"works for you: both functions read that variable before the registry.To see the entry:
Removing it: Device Manager > View > Show hidden devices > Display adapters, right-click the greyed-out NVIDIA adapter > Uninstall device (tick "Attempt to remove the driver" if offered). After that the first command should list only
VEN_1002(and your iGPU), and Strata should pickhipwithout the variable.For the code, a fix would be to count only adapters that are present (for example, map each class subkey to its device instance through
HKLM\SYSTEM\CurrentControlSet\Enum\PCI\*\*\Driverand keep the onesGet-PnpDevice -PresentOnly/ CM_Get_DevNode_Status report present), in both places. The--backend hip-rx9070part is #4013.Developed with an AI coding assistant.
@bob-u commented on GitHub (Oct 25, 2026):
@Vop3p If you read through my messages (and screenshots) you'll notice that my issue is that Strata insists that I have CUDA and refuses to use RX9070. Another is that update and launch are looking for different backend string.
@Vop3p commented on GitHub (Oct 25, 2026):
Yes, that's exactly the problem I'm describing. My guess from reading Strata's code: Windows still has an entry for your old NVIDIA card, and Strata, which checks for NVIDIA first, takes that entry as a card that is still there. Setting
STRATA_ENGINE_BACKEND=hipworks because it skips that check.Could you confirm it first? Paste this into the same PowerShell window you've been using (cmd works too, no admin needed) and send me the output:
On my PC it lists two cards,
VEN_1002(the AMD card) andVEN_8086(Intel graphics). If yours also has a line withVEN_10DE, that is the leftover NVIDIA entry Strata is reacting to, even though Device Manager no longer shows the card. Once I see the output I can say what to do about it.The other problem (update wants
hip-rx9070, launch only acceptship) is a separate bug, reported in #4013.@denkmalnach commented on GitHub (Oct 25, 2026):
same problem here with fresh installation:
Setup:
Windows 11
AMD R9700 for AI inference
NVIDIA RTX4070 for Desktop
What happened:
the Strata app
the install script
@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you and Vop3p for the analysis. The Terminal was fixed in 0.2.5 (a card taken out of the PC no longer decides the engine). The desktop app still read the old registry entry; Fixed in 0.2.7 with the same rule. The hip-rx9070 versus hip mismatch is tracked in #4013.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7