Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.61 KB

File metadata and controls

29 lines (16 loc) · 1.61 KB

🍊 Metal

Overview

Metal is Apple's own GPU framework that allows developers to have low-level access to the GPUs on iPhones and Macs for rendering 3D graphics and high-performance computing.

It powers hardware-accelerated graphics on Apple platforms by providing a low-overhead API, and rich shading language, tight integration between graphics and compute, and an unparalleled suite of GPU profiling and debugging tools.

Metal allows the computation to be executed on the GPU for Apple devices.

Metal Performance Shaders(MPS)

It is a framework that exposes Metal machine learning APIs and can be used to accelerate machine learning tasks on Apple devices.

MPS Graphs is a part of the MPS framework that provides a graph-based API for machine learning computations.

MPS Graph can be used to build and execute machine learning graphs on the GPU. It provides a set of operations that can be used to build ML models. such as:

  • convolution
  • pooling
  • activation functions

Metal can be used to accelerate PyTorch model training on macOS, and the MPS backend extends the PyTorch framework, providing scripts and capabilities to set up and run operations on Mac.

The MPS framework optimizes compute performance with kernels that are fine-tuned for the unique characteristics of each Metal GPU family.

Reference

{% embed url="https://developer.apple.com/documentation/metal/performing_calculations_on_a_gpu" %}