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

Experimental comparisions #788

Open
Johhed15 opened this issue Feb 21, 2025 · 1 comment
Open

Experimental comparisions #788

Johhed15 opened this issue Feb 21, 2025 · 1 comment

Comments

@Johhed15
Copy link

Hi! I am planning to use codecarbon to track the energy consumption from my code in a thesis where energy consumption from CPU one of the questions, And I later found this paper:

https://inria.hal.science/hal-04030223v2/file/_CCGrid23__An_experimental_comparison_of_software_based_power_meters__from_CPU_to_GPU.pdf
which said:
"""Code Carbon tends to report power consumption
values almost twice as high as other tools based on the same
interface for obtaining consumption values (Intel RAPL)."""
[Mathilde Jay, Vladimir Ostapenco, Laurent Lefèvre, Denis Trystram, Anne-Cécile Orgerie, et al.. An
experimental comparison of software-based power meters: focus on CPU and GPU. CCGrid 2023

  • 23rd IEEE/ACM international symposium on cluster, cloud and internet computing, May 2023,
    Bangalore, India. pp.1-13, ff10.1109/CCGrid57682.2023.00020ff. ffhal-04030223v2f]

So I am wondering if this has been looked at before i start tracking my code.

Thanks!!

@benoit-cty
Copy link
Contributor

Hello,

Thanks for letting us know about this. We will try to reproduce the paper and contact the authors.

Don't hesitate to report if you saw similar issue.

CodeCarbon works on multi-CPU architecture. I experienced this issue on an AMD CPU that has only one physical CPU but two die and the Linux kernel write two RAPL file, so we sum them.

Despite this specific case you will be fine.

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

2 participants