Apple M1 chip problem

Apple M1 chip problem

par Jasper Kranias,
Nombre de réponses : 2

I was getting the error that " the clang compiler does not support '-march=native' "which i fixed by replacing -march=native by -mcpu=apple-m2, since apparently my M2 chip mac does not support -march=native. However, I'm worried this will cause a problem with my submission if the grader is not using a mac. Is there any way I can get around this?

En réponse à Jasper Kranias

Re: Apple M1 chip problem

par Ramses van Zon,

Have you tried the compilers available at https://hpc.sourceforge.net/ ? They are true g++ compilers, whereas the g++ only pretends to be, but is really clang++ (which in a now distant past was supposed to be a drop in replacement for g++).

En réponse à Ramses van Zon

Re: Apple M1 chip problem

par Ramses van Zon,
Otherwise, work without march first, copy the code to the teach cluster, add the march and make sure it runs and compiles.