Skip to content

zlicdt/apple-smi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apple SMI

Apple Silicon System Management Interface

Build Release Downloads License Stars

nvidia-smi like cli tool for Apple Silicon (macOS)

Overview

Lightweight macOS GPU inspector inspired by nvidia-smi. Shows GPU frequency / power / memory usage / utilization in a familiar table.

image

Quick start

Project is still high-speed developing, it is NOT stable now

Homebrew (Recommended)

If you have brew, you can:

brew install zlicdt/tap/apple-smi

Download

Go to Releases and download the prebuilt binary for your Mac.

Build from source

To build this, ensure the system have Rust toolchain and Cargo first.

git clone --depth=1 https://github.com/zlicdt/apple-smi
cargo build --release
sudo ./target/release/apple-smi

Requirements

  • Apple Silicon Macs

  • Because of use of powermetrics, this program needs root permissions to measure

    • Performance state
    • Frequency
    • GPU utilization
    • Processes

    Rootless is working in progress...

Tips

  • Using of powermetrics means requires root permissions.
  • Developing materials and documents placed in docs folder.

Test Run

cargo run

How it works

It shells out to system_profiler powermetrics ioreg, and get information from SMC.

Contributing

Issues and PRs welcome. Run cargo fmt and cargo clippy before sending changes.