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

Argobots automatically builds with Intel compiler #82

Open
jolivier23 opened this issue Dec 19, 2018 · 1 comment
Open

Argobots automatically builds with Intel compiler #82

jolivier23 opened this issue Dec 19, 2018 · 1 comment

Comments

@jolivier23
Copy link
Contributor

For now, we have worked around this by setting CC=gcc during configure stage.

But I have a suggestion when building with icc to consider using -static-intel flag. This causes Intel libraries to be linked in statically and avoids issue of not being able to link with libabt.so without either using the Intel compiler or at least having the Intel compiler libraries in the library search path.

@shintaro-iwasaki
Copy link
Collaborator

Thank you for your suggestion.

For now, the workaround is ./configure --prefix=[...] CC="icc -static-intel"; it can remove all Intel dependency from libabt.so as far as I checked with icc17.

I personally think that -static-intel can be a default behavior. As far as I tested, they don't produce link-time errors when I try to link multiple libraries compiled with -static-intel etc. I cannot assure that this modification causes any side effects, though.

If no one points out side effects and you think ./configure CC="icc -static-intel" is too hacky, we can add this flag by default when icc is used.

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

No branches or pull requests

2 participants