-
Notifications
You must be signed in to change notification settings - Fork 24
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
GPU and Node Utilization JSON API (CPU, GPU, Memory) #431
Conversation
Capturing discussion here as we'll need to resolve the comments that are on outdated commits. The Only the GPU usage will be different based on which architecture you are on. We have a Collaborator |
To do before merging:
|
Description
This PR adds two utilization APIs:
variorum_get_node_utilization_json
: it populates a string in JSON format with total CPU node utilization, user CPU utilization, kernel CPU utilization, total node memory utilization, and GPU utilization.variorum_get_gpu_utilization_json
: it populates string in JSON format with utilization of each GPUFixes #440
Docs: https://variorum.readthedocs.io/en/pr-from-fork-431/
Closes #495 once all tests pass.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please provide hardware architecture specs and
instructions so we can reproduce.
Checklist:
./scripts/check-code-format.sh
and confirm my code code follows the style guidelines of variorum-DENABLE_WARNINGS=ON
)