Skip to content

Added an new item how to link intel statically #7

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

Merged
merged 4 commits into from
Oct 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions faq/building.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1744,3 +1744,26 @@ href=\"$topdir/community/help/\">Getting Help</a> page -- it details
how to send a request to the Open MPI mailing lists.";

/////////////////////////////////////////////////////////////////////////

$q[] = "How do I statically link to the libraries of Intel compiler suite?";

$anchor[] = "statically-link-with-intel-libraries";

$a[] = "The Intel compiler suite, by default, dynamically links its runtime libraries
against the Open MPI binaries and libraries. This can cause problems if the Intel
compiler libraries are installed in non-standard locations. For example, you might
get errors like:

<blockquote>
error while loading shared libraries: libimf.so: cannot open shared object file:
No such file or directory
</blockquote>

To avoid such problems, you can pass flags to Open MPI's configure script that instruct
the Intel compiler suite to statically link its runtime libraries with Open MPI:

<geshi bash>
shell$ ./configure CC=icc CXX=icpc FC=ifort LDFLAGS=-Wc,-static-intel ...
</geshi>";

/////////////////////////////////////////////////////////////////////////