pytorch / pytorch/cpuinfo

[feature request] specify log-level during cpuinfo_initialize()

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
1.2k
Forks
409
PR merge metrics
No merged PRs in 30d

Description

Quoted from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918177 :

libcpuinfo library selects log level during compile time.
1. It would be better if one could specify log-level during cpuinfo_initialize().
2. Anyway current compile-time setting is very annoing: on many processors it prints

Note (cpuinfo): Line power management: in /proc/cpuinfo is ignored: value contains only spaces

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating cpuinfo_initialize() and the compile-time logging configuration in the library. Determine how initialization could accept a log level and how the reported /proc/cpuinfo message should be controlled; done means callers can select the level during initialization and the current noisy behavior is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.