mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1594] --gpu flag in setup.py only enumerates Nvidia GPUs #637
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#637
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 @jintakhan on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1594
Noticed trying to isolate Strata to a single card in a multi-AMD GPU setup that the arg --gpu only targets Nvidia GPUs and Strata will crash and fail if specified with no Nvidia GPU is present.
The documentation at AMD_HIP.md specifically references this flag as working with AMD cards. From my testing, it does not.
On a side note, specifying a "gpu" key in a strata config.json does work. This allows for full hardware monitoring in the web UI.
HIP_VISIBLE_DEVICES and ROCR_VISIBLE_DEVICES also isolate the device but I found it results in broken GPU monitoring. I am guessing it is caused by an index mismatch between ROCm and the kernel. Therefore my current recommended single-GPU isolation method is via a model config.json.
@Niko1221 commented on GitHub (Oct 10, 2026):
Thank you for isolating this. The config's "gpu" key worked because it goes straight to the server; the command-line path went through the NVIDIA-only list. On v0.1.42 --gpus (and --gpu 0,2, which means --gpus) on a PC with AMD cards and no NVIDIA card is read as AMD numbers, as setup lists them, and --gpu's help says so. Unit tests cover it; not run on an AMD card here. If --gpu N alone still fails for you on v0.1.42, please post the output.
@jintakhan commented on GitHub (Oct 13, 2026):
Thank you. Will test tonight and report back. If it works, I’ll mark the issue as completed.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.