Skip to content

More robust parsing of GPU parameters - #318

Merged
amete merged 2 commits into
mainfrom
robust-gpu-stats
Aug 12, 2026
Merged

More robust parsing of GPU parameters#318
amete merged 2 commits into
mainfrom
robust-gpu-stats

Conversation

@graeme-a-stewart

@graeme-a-stewart graeme-a-stewart commented Aug 10, 2026

Copy link
Copy Markdown
Member

GPU stats are obtained via an nvidia-smi call:

nvidia-smi --query-gpu=clocks.max.sm,memory.total,gpu_name --format=csv,noheader,nounits

That should give two numbers and a name. However, as seen on some CERN GPU nodes, this is also possible:

[N/A], 24576, NVIDIA H100L-2-24C

Which is coming from a MIG partitioned GPU.

The parser will now handle this case, as well as other parsing failures, by printing a warning and setting the frequency to 0.

Closes #317.

GPU stats are obtained via an nvidia-smi call:

nvidia-smi --query-gpu=clocks.max.sm,memory.total,gpu_name --format=csv,noheader,nounits

That should give two numbers and a name.  However, as seen on some CERN
GPU nodes, this is also possible:

[N/A], 24576, NVIDIA H100L-2-24C

Which is coming from a MIG partitioned GPU.

The parser will now handle this case, as well as other parsing failures,
by printing a warning and setting the frequency to 0.

@amete amete left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks @graeme-a-stewart!

@amete
amete merged commit 43fd5d3 into main Aug 12, 2026
9 checks passed
@graeme-a-stewart
graeme-a-stewart deleted the robust-gpu-stats branch August 12, 2026 20:24
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.

Mitigate against "unusual" output from GPU hardware probing

2 participants