sharpy icon indicating copy to clipboard operation
sharpy copied to clipboard

Shouldnt there be a compile option for -march=native?

Open x3oo opened this issue 2 years ago • 4 comments

i believe gfortran does support -march=native?

x3oo avatar Aug 20 '21 03:08 x3oo

Dear x3oo,

can you provide more information about this?

Thank you

ArturoMS13 avatar Aug 20 '21 07:08 ArturoMS13

I thought you could speed up sharpy by compiling it with -march=native. gfortran supports this option too. anyway this is unrelated to the other problem because i compiled without those options.

x3oo avatar Aug 20 '21 13:08 x3oo

I thought providing -march=native as compiler options would accelarate sharpy but its hard to find the option in the config files. anyway

x3oo avatar Aug 20 '21 14:08 x3oo

-march=native only works for local compilation (where the target is the same as your machine). Because of that, -march=native breaks the Docker container, as it is compiled in a different CPU (which might or might not be the same as yours). Maybe adding a note in the documentation for the performance-oriented user might make sense, but I'd rather be able to compile the Docker image with the same script as a normal user would.

fonsocarre avatar Sep 07 '21 13:09 fonsocarre