Based on https://github.com/larsgeb/m1-gpu-cpp/tree/main
References
Requires XCode 15.3 or higher. Check with xcode-select -p
the active developer directory.
Be sure it points to /Applications/Xcode.app/Contents/Developer
. If it is not the case,
switch the developer directory with
/Applications/Xcode.app/Contents/Developer