Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neuron + GPU: report utilization % of accelerators regardless of execution time #840

Merged
merged 12 commits into from
Jul 19, 2024

Conversation

emeryberger
Copy link
Member

Now reports device utilization (regardless of execution time) in pies for GPU/Neuron.

if False:
if stats.total_gpu_samples:
n_gpu_percent = n_gpu_samples * 100 / stats.total_gpu_samples
if True:

Check warning

Code scanning / CodeQL

Constant in conditional expression or statement Warning

Testing a constant will always give the same result.

system_data = data.get("system_data", {})
vcpu_usage = system_data.get("vcpu_usage", {})
memory_info = system_data.get("memory_info", {})

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'memory_info' is unnecessary as it is
redefined
before this value is used.
@emeryberger emeryberger changed the title Neuron + GPU fixes Neuron + GPU: report utilization % of accelerators regardless of execution time Jul 19, 2024
@emeryberger emeryberger merged commit 29f83f4 into master Jul 19, 2024
22 checks passed
@emeryberger emeryberger deleted the neuron_dev branch July 19, 2024 19:54
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.

1 participant