mlco2/codecarbon

codecarbon and memray interaction

lcrmorin opened this issue · 4 comments

I was trying to use code carbon along memray magic. It seems that the %%memray_flamegraph magic create (and overide) something nommed tracker. That prevent further use of codecarbon tracker. I don't know if the problem is on code carbon side. But currently I could't add energy consumption in my tracker.

Hello @lcrmorin,
in order to be able to reproduce this issue, could you give us an snippet of how you are running memray and codecarbon together? Also the exact logs of the error you are seeing.
Thanks a lot!

If you use something like tracker = EmissionsTracker(project_name="classification-measure") you could try another name, like codecarbon_tracker = EmissionsTracker(project_name="classification-measure").

Does it works ?

Seems like it would work. In the end I removed memray. As it is a profiler (and not a sampling profiler) it would fill the drive then crash with a bit of calculations.

Closing this. Looks like it is solved.