View Metal GPU information from the command-line.
$ metalgpu
Index: 0
Name: Apple M1 Max
Registry ID: 4294969661
Location: Built-in
Characteristics: Unified Memory
Features:
32-Bit Float Filtering: Supported
32-Bit MSAA: Supported
BC Texture Compression: Supported
Barycentric Coordinates: Supported
Dynamic Libraries: Supported
Function Pointers: Supported
Programmable Sample Position: Supported
Pull Model Interpolation: Supported
Query Texture LOD: Supported
Raster Order Groups: Supported
Shader Barycentric Coordinates: Supported
Recommended Maximum Memory Size: 42.67 GB
Max Buffer Length: 32 GB
Max Threads per Thread Group: (Width: 1024, Height: 1024, Depth: 1024)
Max Thread Group Memory Size: 32 KB
Sparse Tile Size: 16 KB
- Install Homebrew
- Install metalgpu with Homebrew:
brew install mysticlgbt/made/metalgpu
- Install Mint:
brew install mint
- Install metalgpu with Mint:
mint install mysticlgbt/metalgpu@main
- Clone the source:
git clone https://github.com/mysticlgbt/metalgpu.git metalgpu
- Switch to source directory:
cd metalgpu
- Run metalgpu with SwiftPM:
swift run metalgpu