Skip to content

Fix regex in partition_gpu to support MIG profiles with + and - suffixes after reboot - #630

Closed
ankitjoju-google wants to merge 1 commit into
masterfrom
fix-gpu-partition-regex-g4
Closed

Fix regex in partition_gpu to support MIG profiles with + and - suffixes after reboot#630
ankitjoju-google wants to merge 1 commit into
masterfrom
fix-gpu-partition-regex-g4

Conversation

@ankitjoju-google

Copy link
Copy Markdown
Collaborator

The regex used to parse nvidia-smi mig -lgi output was missing + and - in the character class for profile names, causing parsing to fail for extended MIG profiles (like +gfx or -me) when they already existed (aka after a reboot action). This led to incorrect state detection and failed attempts to recreate active partitions.

Added + and - to the character class and added unit tests. All passing

@ankitjoju-google
ankitjoju-google force-pushed the fix-gpu-partition-regex-g4 branch from f81302a to 2436759 Compare August 11, 2026 19:16
The regex used to parse nvidia-smi mig -lgi output was missing + and -
in the character class for profile names, causing parsing to fail for
extended MIG profiles (like +gfx or -me) when they already existed.
This led to incorrect state detection and failed attempts to recreate
active partitions.

Added + and - to the character class and added unit tests.

BUG=544643611
TAG=agy
CONV=00248ed8-608d-4a1c-9326-f43f2e8b5cf4
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.

4 participants