Skip to content

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

Closed
alvaroalonsoparrondo-a11y wants to merge 1 commit into
gpustack:mainfrom
alvaroalonsoparrondo-a11y:patch-1
Closed

alvaroalonsoparrondo-a11y wants to merge 1 commit into
gpustack:mainfrom
alvaroalonsoparrondo-a11y:patch-1

Conversation

@alvaroalonsoparrondo-a11y

@alvaroalonsoparrondo-a11y alvaroalonsoparrondo-a11y commented Nov 23, 2026 •

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.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:07

@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 gpustack_runtime/envs.py, changing METHERDS_VISIBLE_DEVICES to MTHREADS_VISIBLE_DEVICES for Moore Threads 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 were identified for the MThreads device-selection environment variable correction.

No open issues 🎉

What changed in this PR

Corrects the default MThreads device-selection mapping to use the environment variable set by the MThreads image.

Changes:

  • Replaces METHERDS_VISIBLE_DEVICES with MTHREADS_VISIBLE_DEVICES for mthreads.com/devices.
File Description
gpustack_runtime/​envs.py Fixes the MThreads runtime environment variable name.

Review effort: Balanced

@alvaroalonsoparrondo-a11y

Copy link
Copy Markdown
Contributor Author

Superseded by #52, which has the same change with the DCO sign-off.

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

2 participants