mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.07k stars 168 forks source link

Equivalent of codecarbon in another programming language? (C) #615

Open TECO-Octo opened 1 month ago

TECO-Octo commented 1 month ago

Hello!

Not really an issue here, but I was wondering if there were any equivalent to codecarbon in another programming language like C? (or at least, a way to replicate the tracking part codecarbon has) Actually working on a project using a microcontroller from ST.

Apart from that, did you ever consider porting codecarbon in another programming language?

Thanks!

SaboniAmine commented 1 month ago

Hi Theo! I don't personally know any equivalent tool, which could track emissions from a program. In virtualized environments, where a hypervisor is self-administrated, we recommend using Scaphandre, which can be used to segregate consumption from VMs (and maybe by process, also). For your use case, the chip is not supported by the project, and if its operating system doesn't expose a RAPL interface, there is a few chance that we could be able to read its electrical consumption.

benoit-cty commented 4 weeks ago

Hello, You are talking about a microcontroller, it's a very different world and we won't support that anytime soon, sorry.