eth-sri / ELINA

ELINA: ETH LIbrary for Numerical Analysis
http://elina.ethz.ch/
Other
129 stars 53 forks source link

-march=native and -DTIMING not supported in Apple M1 #90

Closed caballa closed 2 years ago

caballa commented 2 years ago

I get this error

clang: error: the clang compiler does not support '-march=native'

I found some discussion about it here: https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1

caballa commented 2 years ago

I think the option -DTIMING also causes problems with Apple M1 because it generates assembly code.

GgnDpSngh commented 2 years ago

Hi Jorge,

Thanks for the feedback. I have disabled both flags for Mac, please let me know if it works!

Cheers, Gagandeep Singh

caballa commented 2 years ago

it works. Thanks again!