Re:Dissecting the Apple M1 GPU, Part III
by saagarjha on Monday April 19, 2021 @04:53AM
(#26860433)
In a few months Apple is going to release a successor to the M1 processor, and then maybe in a year or two another revision after that. Apple would like your code to be optimized for that processor as well, in addition to the M1. The way Apple does this is by wrapping their hardware in a high-level API that knows how to use the hardware it is running on, rather than exposing architectural details and having developers hardcode assumptions into their code until the end of time.
[ Parent
| on HN ]
Re:Dissecting the Apple M1 GPU, Part III
by snovv_crash on Monday April 19, 2021 @10:38AM
(#26863211)
Abstractions are both leaky and expensive. There are a lot of things that could have much better performance if they had access to the lower level APIs.
Metal is a good fit for the M1 GPU (since the GPU was essentially designed to run it). There isn't a need for a lower level API than Metal.
Most people will not end up writing code in the optimal way though, since they also want to support discrete GPUs with their own VRAM and those have totally different memory management.