mlco2 / codecarbon

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

get the particular GPU energy #509

Closed qxpBlog closed 3 months ago

qxpBlog commented 4 months ago

@dsblank @Lothiraldan @ndevenish @mp15 , soryy, i want to know when i set the variable gpu_ids as 1 in the file ~/.codecarbon.config, if this project only monitor and record the energy of GPU 1?

image

benoit-cty commented 4 months ago

Hello, yes, but the syntax is 1 not [1]

It will only monitor GPU 1 for GPU but keep measuring CPU and RAM.

qxpBlog commented 4 months ago

Hello, yes, but the syntax is 1 not [1]

It will only monitor GPU 1 for GPU but keep measuring CPU and RAM.

thanks