Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
x3oo opened this issue Aug 20, 2021 · 4 comments
Open

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

x3oo opened this issue Aug 20, 2021 · 4 comments

Comments

@x3oo
Copy link

x3oo commented Aug 20, 2021

i believe gfortran does support -march=native?

@ArturoMS13
Copy link
Collaborator

Dear x3oo,

can you provide more information about this?

Thank you

@x3oo
Copy link
Author

x3oo commented Aug 20, 2021

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
Copy link
Author

x3oo commented Aug 20, 2021

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

@fonsocarre
Copy link
Collaborator

-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants