Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Get the current frequency of your Apple M1 GPU.

License

Notifications You must be signed in to change notification settings

dehydratedpotato/M1-gpufreq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M1-gpufreq

Get the current frequency of your Apple M1 GPU.

License Releases License

⚠️ Notice ⚠️

This project is now obsolete as of the current release. Please visit https://github.com/BitesPotatoBacks/SFMRM for the latest iteration.

What It Does and How It Works

This project is designed to get the current frequency (or clock speed) of your Apple M1 GPU, without requiring sudo or a kernel extension. This near-impossible feat is achieved by accessing performance state information from IOReport and performing some calculations based on them during a specified time interval (default 1 second).

Usage

Preparation:

Download the precompiled binary from the releases, cd into your Downloads folder, and run these commands to fix the binary permissions:

chmod 755 ./M1-gpufreq
xattr -cr ./M1-gpufreq

Now you can simply run ./M1-gpufreq.

Example:

Here is an example running ./M1-gpufreq -l6 -i1 on an M1 Mac Mini during a Geekbench Compute run:

Name      Type      Max Freq     Active Freq    Freq %

GPU      Complex   1278.00 MHz     43.59 MHz     3.41%
GPU      Complex   1278.00 MHz   1153.91 MHz    90.29%
GPU      Complex   1278.00 MHz   1263.43 MHz    98.86%
GPU      Complex   1278.00 MHz    837.17 MHz    65.51%
GPU      Complex   1278.00 MHz     39.89 MHz     3.12%
GPU      Complex   1278.00 MHz   1235.26 MHz    96.66%

Options

Available command line options are:

    -l <value> : loop output (0 = infinite)
    -i <value> : set sampling interval (may effect accuracy)
    -v         : print version number
    -h         : help

Bugs and Issues

Known Problems:

  • Sampling interval is currently broken for some reason... run script with option -i1 for now
  • Support for M1 Pro/Max is unofficial

If any other bugs or issues are identified, please let me know!

Support ❤️

If you would like to support me, you can donate to my Cash App.