I am following this https://developer.apple.com/documentation/metal/performing_calculations_on_a_gpu on building a metal app for performing a GPU calculation.
I am not able to figure out how to build and execute the project from the command line. Any help on how to build a main.m file using xcrun will be useful.
I have tried xcrun -sdk macosx clang MetalComputeBasic/main.m but it doesn't work.