Optimal compiler flags M4 Max

Very simple question (I’ve searched, but I can’t find a matching answer).

I have a Mac M4 Max. How should I set compiler flags (in cmdstanpy) for optimal performance?

All advice appreciated.

On my M2 Mac Mini I use -03 -march=native -mtune=native when compiling cmdstan and it works quite well.

2 Likes

Thanks.