sharpy
sharpy copied to clipboard
Shouldnt there be a compile option for -march=native?
i believe gfortran does support -march=native?
Dear x3oo,
can you provide more information about this?
Thank you
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.
I thought providing -march=native as compiler options would accelarate sharpy but its hard to find the option in the config files. anyway
-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.