Skip to content

Split hardware detection from measurement #1000

@inimaz

Description

@inimaz

Is your feature request related to a problem? Please describe.
Imagine I want to know the hardware that codecarbon is able to detect in my machine. Like this I can setup properly (setup RAPL if missing, open a PR with the TDP, why is it detecting only 3 GPUs? I thought I had 5 connected in this machine...).

With the current setup, the flow is:

  1. codecarbon detects the hardware,
  2. logs it
  3. and starts measuring right away.

Describe the solution you'd like
Continue doing that, but allow the user to obtain 1 and 2 without the need to run measurements. In another PR we could even add to the cli codecarbon detect and it will return the detected hardware.

What do you think?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions