GPU physics in C++ with Apple's M series chips
1,849 views
0

 Published On Nov 21, 2022

The M series of chips produced by Apple have proven a capable and power-efficient alternative to mainstream Intel and AMD x86 processors for everyday tasks. In this work, we show how the M series chips can be leveraged using the Metal Shading Language (MSL) to accelerate typical array operations in C++ using minimal modifications to existing code. The resulting performance gain of simulating the wave equation is near an order of magnitude for specific settings, showing how unified processing units can be a valuable tool to seismologists and computational scientists in general, lowering the bar to writing performant codes that leverage modern GPUs.

Preprint: https://arxiv.org/abs/2206.01791
GitHub repo for array operations: https://github.com/larsgeb/m1-gpu-cpp
GitHub repo for PDE simulations: https://github.com/larsgeb/psvWave/tr...

show more

Share/Embed