Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
B
benchmark
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • benchmark
  • Repository

Switch branch/tag
  • benchmark
  • src
  • sysinfo.cc
Find file
BlameHistoryPermalink
  • Roman Lebedev's avatar
    [sysinfo] Fix CPU Frequency reading on AMD Ryzen CPU's (#1117) · c05843a9
    Roman Lebedev authored Apr 23, 2021
    Currently, i get:
    ```
    Run on (32 X 7326.56 MHz CPU s)
    CPU Caches:
      L1 Data 32 KiB (x16)
      L1 Instruction 32 KiB (x16)
      L2 Unified 512 KiB (x16)
      L3 Unified 32768 KiB (x2)
    ```
    which seems mostly right, except that the frequency is rather bogus.
    Yes, i guess the CPU could theoretically achieve that,
    but i have 3.6GHz configured, and scaling disabled.
    So we clearly read the wrong thing.
    
    With this fix, i now get the expected
    ```
    Run on (32 X 3598.53 MHz CPU s)
    CPU Caches:
      L1 Data 32 KiB (x16)
      L1 Instruction 32 KiB (x16)
      L2 Unified 512 KiB (x16)
      L3 Unified 32768 KiB (x2)
    ```
    c05843a9
sysinfo.cc 21.8 KB
EditWeb IDE
×

Replace sysinfo.cc

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.