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

Energy consumption for GPU does not seem to be in microJoules? #23

Open
johannabar opened this issue Apr 27, 2022 · 2 comments
Open

Energy consumption for GPU does not seem to be in microJoules? #23

johannabar opened this issue Apr 27, 2022 · 2 comments
Assignees

Comments

@johannabar
Copy link

johannabar commented Apr 27, 2022

Hi, thanks for building this library!

I see in the docs and from the issue #6 that the energy consumption is supposed to be in uJ (1e-6J), but this doesn't seem to match for the GPU output. It seems that I am getting the output in mJ (1e-3J) instead.

With an NVidia Titan RTX machine that consumes 16Watt when idle and 280Watt when fully active, we should use for 60seconds respectively 16*60=960 Joules (idle) and 280*60=16,800 Joules (active). But PyJoules is measuring 952,494 uJ = 0.95 Joules (idle) and 16,522,288 uJ = 16.52 Joules (active).

Could you confirm the metrics used for nvidia_gpu outputs?

Thanks in advance,
Johanna

@Xyfuture
Copy link

I think you are right,I use RTX2080 get the same result. Use nvidia-msi I saw power about 200w, runing 6 seconds , pyJoules tells energy:1245978

@rvandernoort
Copy link

According to the nvml docs it is indeed mJ instead of uJ
image

Maybe a good idea to add to the docs since I had to search in pyRAPL and pyNVML docs and this is nowhere mentioned.

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

No branches or pull requests

4 participants