Closed jdoerfert closed 1 year ago
Thanks for the report! That flag was added based on this discussion: https://github.com/archspec/archspec-json/pull/55#issuecomment-1276552320 Do you know of any authoritative places where to look for the appropriate microarchitecture flag to use for Apple M2?
The best I could find are sparse answers like: https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1
Do you know of any authoritative places where to look for the appropriate microarchitecture flag to use for Apple M2?
Not really. I would probably reach out to apple people. Other than that, I would have chosen a12 as that is what native resolves too.
For an M2 and apple clang > 13 it specifies
-mcpu=vortex
but that is not a supported cpu option. https://github.com/archspec/archspec-json/blob/b70be5ca6a072afdb731e47c3cea51faf0a54a10/cpu/microarchitectures.json#L2794Supported options (except
apple-latest
which doesn't actually work):I'm assuming we should fallback to m1 if m2 and a15/16 are not available. That said, it picks
apple-a12
if you choosenative
.Thoughts?