Skip to content

Add GPU power consumption, per process, via nvidia-smi pmon#83

Draft
Stapuck wants to merge 2 commits into
joular:39-support-gpu-energy-monitoring-per-process-and-per-applicationfrom
Stapuck:develop
Draft

Add GPU power consumption, per process, via nvidia-smi pmon#83
Stapuck wants to merge 2 commits into
joular:39-support-gpu-energy-monitoring-per-process-and-per-applicationfrom
Stapuck:develop

Conversation

@Stapuck

@Stapuck Stapuck commented May 23, 2025

Copy link
Copy Markdown

No description provided.

@Stapuck Stapuck changed the base branch from develop to 39-support-gpu-energy-monitoring-per-process-and-per-application May 23, 2025 13:08
@Stapuck Stapuck changed the title ajout de fonction sur la consommation ajout de fonction sur la consommation GPU via nvidia-smi pmon May 23, 2025
@Stapuck

Stapuck commented May 23, 2025

Copy link
Copy Markdown
Author

Aucun test n'a été réalisé sur le code.

@adelnoureddine adelnoureddine self-assigned this May 23, 2025
@adelnoureddine adelnoureddine added the enhancement New feature or request label May 23, 2025
@adelnoureddine adelnoureddine changed the title ajout de fonction sur la consommation GPU via nvidia-smi pmon Add GPU power consumption, per process, via nvidia-smi pmon Jun 5, 2025

-- Get the SM usage per PID from nvidia-smi pmon
function Get_SM_By_PID return SM_Vector.Vector is
Raw_Output : constant String := Execute_Command ("nvidia-smi pmon -s u"); -- run nvidia-smi pmon -s um pour plus d'info mémoire.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add -c 1 to run nvidia-smi once (otherwise it'll run continuously).
So it will be nvidia-smi pmon -s u -c 1

@adelnoureddine

adelnoureddine commented Jun 6, 2025

Copy link
Copy Markdown
Member

Todo:

  • Need to check that the type column is "G" for GPU and not "C"
  • add -c 1 to run nvidia-smi once (otherwise it'll run continuously). So it will be nvidia-smi pmon -s u -c 1

@adelnoureddine adelnoureddine marked this pull request as draft June 6, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants