Skip to content

fix(envs): correct METHERDS typo in MThreads visible devices mapping - #52

Merged
thxCode merged 1 commit into
gpustack:mainfrom
alvaroalonsoparrondo-a11y:fix-mthreads-visible-devices
Nov 24, 2026
Merged

thxCode merged 1 commit into
gpustack:mainfrom
alvaroalonsoparrondo-a11y:fix-mthreads-visible-devices

Conversation

@alvaroalonsoparrondo-a11y

Copy link
Copy Markdown
Contributor

Fixes gpustack/gpustack#6876

gpustack_runtime/envs.py maps mthreads.com/devices to METHERDS_VISIBLE_DEVICES, which is a typo. The MThreads image sets MTHREADS_VISIBLE_DEVICES (pack/Dockerfile:474) and nothing in the repo reads METHERDS_VISIBLE_DEVICES, so the mapping never took effect.

This changes the one string to MTHREADS_VISIBLE_DEVICES. No other occurrences of METHERDS remain.

Replaces #50, which was missing the DCO sign-off.

Signed-off-by: alvaroalonsoparrondo-a11y <alvaroalonsoparrondo@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:27

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request corrects a typo in the environment variable name mapped to Moore Threads devices, changing it from METHERDS_VISIBLE_DEVICES to MTHREADS_VISIBLE_DEVICES. There are no review comments, and I have no feedback to provide.

@gpustack-code-review

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the MThreads device-selection environment variable correction.

No open issues 🎉

What changed in this PR

Corrects the MThreads runtime mapping so container device selection uses the expected environment variable.

Changes:

  • Replaces METHERDS_VISIBLE_DEVICES with MTHREADS_VISIBLE_DEVICES, matching the packaged MThreads image.
File Description
gpustack_runtime/​envs.py Fixes the default runtime variable for mthreads.com/devices.

Review effort: Balanced

@thxCode thxCode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@thxCode
thxCode merged commit 8b07369 into gpustack:main Nov 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typo in GPUSTACK_RUNTIME_DEPLOY_RESOURCE_KEY_MAP_RUNTIME_VISIBLE_DEVICES: METHERDS_VISIBLE_DEVICES should be MTHREADS_VISIBLE_DEVICES

3 participants