[GH-ISSUE #1594] --gpu flag in setup.py only enumerates Nvidia GPUs #637

Closed
opened 2026-11-04 01:44:42 +07:00 by bsakaguchi · 3 comments
Owner

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.

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.
Author
Owner

@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.

<!-- gh-comment-id:6099622573 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:6140193253 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:6156147898 --> @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](https://github.com/Niko1221/Strata/releases/tag/v0.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.
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#637
No description provided.