<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic undefined references when compiling with -fast on Intel MPI in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804017#M854</link>
    <description>Hi Andreas,&lt;BR /&gt;&lt;BR /&gt;As noted before you need to use wrappers for Intel compilers: mpiifort, mpiicc,mpiicpc...&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;'-fast' option is a bit dangerous for MPI applications because all libraries are linked statically and you may have problems with fast interconnects (or may not). It's equivalent to:&lt;/P&gt;&lt;P&gt; "-xHOST -O3 -ipo
-no-prec-div -static"&lt;/P&gt;&lt;P&gt;(HOST is a code name for platform) Much better to use :&lt;/P&gt;

&lt;P&gt; "-xHOST -O3
-ip -no-prec-div"&lt;/P&gt;If you need to link Intel
MPI library staticaly he can use '-static_mpi' option.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt; Dmitry&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Oct 2010 05:30:51 GMT</pubDate>
    <dc:creator>Dmitry_K_Intel2</dc:creator>
    <dc:date>2010-10-20T05:30:51Z</dc:date>
    <item>
      <title>undefined references when compiling with -fast on Intel MPI</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804014#M851</link>
      <description>&lt;B&gt;Dear all,&lt;/B&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;I have a fedora 13 linux system where I have installed the latest version of Intel fortran compilers and Intel MPI libraries&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;My parallel programs compile and run smoothly when i compile with&lt;/B&gt;&lt;B&gt;mpif90 -132 -O3 *.f *.f90&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;but when I try to compile with -fast (in the hopes of getting a faster executable) I get a series of errors for&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;undefined and unresolved references&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;The output is the following&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;[user@andreas 2p20d]$ mpif90 -132 -fast -O3 *.f *.f90&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Finalize&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(finalizef.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Reduce&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(reducef.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Barrier&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(barrierf.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Allreduce&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(allreducef.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved MPI_F_STATUS_IGNORE&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(waitf.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(setbot.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Wait&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(waitf.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Irecv&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(irecvf.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Isend&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(isendf.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Bcast&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(bcastf.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Comm_size&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(comm_sizef.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Comm_rank&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(comm_rankf.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved PMPI_Init&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(initf.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved MPI_F_STATUSES_IGNORE&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libmpigf.a(setbot.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved __rela_iplt_end&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libc.a(elf-init.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved __rela_iplt_start&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libc.a(elf-init.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: remark #11000: performing multi-file optimizations&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: remark #11005: generating object file /tmp/ipo_ifortXl2tNs.o&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;(.text+0x75ad): warning: the use of `mktemp' is dangerous, better use `mkstemp'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(allreducef.o): In function `pmpi_allreduce':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;allreducef.c:(.text+0x63): undefined reference to `PMPI_Allreduce'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(barrierf.o): In function `pmpi_barrier':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;barrierf.c:(.text+0x7): undefined reference to `PMPI_Barrier'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(bcastf.o): In function `pmpi_bcast':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;bcastf.c:(.text+0xe): undefined reference to `PMPI_Bcast'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(comm_rankf.o): In function `pmpi_comm_rank':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;comm_rankf.c:(.text+0x7): undefined reference to `PMPI_Comm_rank'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(comm_sizef.o): In function `pmpi_comm_size':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;comm_sizef.c:(.text+0x7): undefined reference to `PMPI_Comm_size'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(finalizef.o): In function `pmpi_finalize':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;finalizef.c:(.text+0x5): undefined reference to `PMPI_Finalize'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(initf.o): In function `pmpi_init':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;initf.c:(.text+0x18): undefined reference to `PMPI_Init'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(irecvf.o): In function `pmpi_irecv':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;irecvf.c:(.text+0x1a): undefined reference to `PMPI_Irecv'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(isendf.o): In function `pmpi_isend':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;isendf.c:(.text+0x1a): undefined reference to `PMPI_Isend'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(reducef.o): In function `pmpi_reduce':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;reducef.c:(.text+0x6d): undefined reference to `PMPI_Reduce'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(register_datarepf.o): In function `pmpi_register_datarep':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;register_datarepf.c:(.text+0x67): undefined reference to `i_malloc'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;register_datarepf.c:(.text+0xbe): undefined reference to `PMPI_Register_datarep'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;register_datarepf.c:(.text+0xca): undefined reference to `i_free'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(setbot.o): In function `mpirinitc_':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;setbot.c:(.text+0x11): undefined reference to `MPI_F_STATUS_IGNORE'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;setbot.c:(.text+0x18): undefined reference to `MPI_F_STATUSES_IGNORE'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(waitf.o): In function `pmpi_wait':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;waitf.c:(.text+0x29): undefined reference to `MPI_F_STATUS_IGNORE'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;waitf.c:(.text+0x3a): undefined reference to `PMPI_Wait'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;[yiotis@andreas 2p20d]$&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;[yiotis@andreas 2p20d]$ mpif90 -132 -fast -O3 *.f *.f90ipo: warning #11020: unresolved PMPI_Finalize   Referenced in libmpigf.a(finalizef.o)ipo: warning #11020: unresolved PMPI_Reduce   Referenced in libmpigf.a(reducef.o)ipo: warning #11020: unresolved PMPI_Barrier   Referenced in libmpigf.a(barrierf.o)ipo: warning #11020: unresolved PMPI_Allreduce   Referenced in libmpigf.a(allreducef.o)ipo: warning #11020: unresolved MPI_F_STATUS_IGNORE   Referenced in libmpigf.a(waitf.o)   Referenced in libmpigf.a(setbot.o)ipo: warning #11020: unresolved PMPI_Wait   Referenced in libmpigf.a(waitf.o)ipo: warning #11020: unresolved PMPI_Irecv   Referenced in libmpigf.a(irecvf.o)ipo: warning #11020: unresolved PMPI_Isend   Referenced in libmpigf.a(isendf.o)ipo: warning #11020: unresolved PMPI_Bcast   Referenced in libmpigf.a(bcastf.o)ipo: warning #11020: unresolved PMPI_Comm_size   Referenced in libmpigf.a(comm_sizef.o)ipo: warning #11020: unresolved PMPI_Comm_rank   Referenced in libmpigf.a(comm_rankf.o)ipo: warning #11020: unresolved PMPI_Init   Referenced in libmpigf.a(initf.o)ipo: warning #11020: unresolved MPI_F_STATUSES_IGNORE   Referenced in libmpigf.a(setbot.o)ipo: warning #11020: unresolved __rela_iplt_end   Referenced in libc.a(elf-init.o)ipo: warning #11020: unresolved __rela_iplt_start   Referenced in libc.a(elf-init.o)ipo: remark #11000: performing multi-file optimizationsipo: remark #11005: generating object file /tmp/ipo_ifortXl2tNs.o/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':(.text+0x75ad): warning: the use of `mktemp' is dangerous, better use `mkstemp'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(allreducef.o): In function `pmpi_allreduce':allreducef.c:(.text+0x63): undefined reference to `PMPI_Allreduce'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(barrierf.o): In function `pmpi_barrier':barrierf.c:(.text+0x7): undefined reference to `PMPI_Barrier'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(bcastf.o): In function `pmpi_bcast':bcastf.c:(.text+0xe): undefined reference to `PMPI_Bcast'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(comm_rankf.o): In function `pmpi_comm_rank':comm_rankf.c:(.text+0x7): undefined reference to `PMPI_Comm_rank'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(comm_sizef.o): In function `pmpi_comm_size':comm_sizef.c:(.text+0x7): undefined reference to `PMPI_Comm_size'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(finalizef.o): In function `pmpi_finalize':finalizef.c:(.text+0x5): undefined reference to `PMPI_Finalize'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(initf.o): In function `pmpi_init':initf.c:(.text+0x18): undefined reference to `PMPI_Init'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(irecvf.o): In function `pmpi_irecv':irecvf.c:(.text+0x1a): undefined reference to `PMPI_Irecv'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(isendf.o): In function `pmpi_isend':isendf.c:(.text+0x1a): undefined reference to `PMPI_Isend'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(reducef.o): In function `pmpi_reduce':reducef.c:(.text+0x6d): undefined reference to `PMPI_Reduce'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(register_datarepf.o): In function `pmpi_register_datarep':register_datarepf.c:(.text+0x67): undefined reference to `i_malloc'register_datarepf.c:(.text+0xbe): undefined reference to `PMPI_Register_datarep'register_datarepf.c:(.text+0xca): undefined reference to `i_free'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(setbot.o): In function `mpirinitc_':setbot.c:(.text+0x11): undefined reference to `MPI_F_STATUS_IGNORE'setbot.c:(.text+0x18): undefined reference to `MPI_F_STATUSES_IGNORE'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpigf.a(waitf.o): In function `pmpi_wait':waitf.c:(.text+0x29): undefined reference to `MPI_F_STATUS_IGNORE'waitf.c:(.text+0x3a): undefined reference to `PMPI_Wait'&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;Any ideas on what I am doing wrong here?&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;Thank you&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;Andreas&lt;/B&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Oct 2010 16:15:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804014#M851</guid>
      <dc:creator>andreas0674</dc:creator>
      <dc:date>2010-10-19T16:15:41Z</dc:date>
    </item>
    <item>
      <title>undefined references when compiling with -fast on Intel MPI</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804015#M852</link>
      <description>The Intel MPI mpif90 wrapper invokes gfortran, and so doesn't support .o files built by ifort, or by icc with -ipo.&lt;BR /&gt;Perhaps you meant to use mpiifort. That would not be compatible with .o files built by gfortran, but it should help with other problems you mentioned.&lt;BR /&gt;That said, it's unusual in my experience to attempt -ipo with MPI builds, and it's not unusual for Fortran applications to perform best with all interprocedural stuff turned off, using -fno-inline-functions.</description>
      <pubDate>Tue, 19 Oct 2010 22:06:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804015#M852</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-10-19T22:06:13Z</dc:date>
    </item>
    <item>
      <title>undefined references when compiling with -fast on Intel MPI</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804016#M853</link>
      <description>Hello Andreas,&lt;BR /&gt;The problem is due to IPO,because -fast implies -O3 -ipo -static. Static linking is supported for Intel MPI, sojusttry replacing-fast with -O3 -static. I don't know why IPO is causing the problem, but I've not seen IPO speedup MPI codes more than a few percent, so you won't be giving up much by compiling without -ipo.&lt;BR /&gt;&lt;BR /&gt;Patrick Kennedy&lt;BR /&gt;Intel Developer Support&lt;BR /&gt;&lt;BR /&gt;P.S. -- A race condition with Tim's reply put this thread in a funny state (it didn't show me as the author of the abovereply). &lt;BR /&gt;&lt;BR /&gt;I didn't catch you were using the mpif90 wrapper. As Tim said, use mpiifort/mpiicc if you really want to try an IPO link. But be prepared for long link times...I've seen SPEC MPI2007 codes take an hour or more to link with -ipo.&lt;BR /&gt;&lt;BR /&gt;Patrick</description>
      <pubDate>Tue, 19 Oct 2010 22:12:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804016#M853</guid>
      <dc:creator>IDZ_A_Intel</dc:creator>
      <dc:date>2010-10-19T22:12:27Z</dc:date>
    </item>
    <item>
      <title>undefined references when compiling with -fast on Intel MPI</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804017#M854</link>
      <description>Hi Andreas,&lt;BR /&gt;&lt;BR /&gt;As noted before you need to use wrappers for Intel compilers: mpiifort, mpiicc,mpiicpc...&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;'-fast' option is a bit dangerous for MPI applications because all libraries are linked statically and you may have problems with fast interconnects (or may not). It's equivalent to:&lt;/P&gt;&lt;P&gt; "-xHOST -O3 -ipo
-no-prec-div -static"&lt;/P&gt;&lt;P&gt;(HOST is a code name for platform) Much better to use :&lt;/P&gt;

&lt;P&gt; "-xHOST -O3
-ip -no-prec-div"&lt;/P&gt;If you need to link Intel
MPI library staticaly he can use '-static_mpi' option.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt; Dmitry&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2010 05:30:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804017#M854</guid>
      <dc:creator>Dmitry_K_Intel2</dc:creator>
      <dc:date>2010-10-20T05:30:51Z</dc:date>
    </item>
    <item>
      <title>undefined references when compiling with -fast on Intel MPI</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804018#M855</link>
      <description>&lt;B&gt;Thank you all forresponses.&lt;/B&gt;&lt;DIV&gt;&lt;B&gt;You are right; I was actually using the mpif90 wrapper with theenvironmental parameterI_MPI_F90 set to ifort.&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;Obviously, that was wrong.&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;I understand your concerns about using the -fast switch but I have seen some significant speedup when&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;using a version of OpenMPI (compiled with ifort and icc) and compiling my program with -fast rather than only -O3.&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;I have switched to the mpiifort wrapper and now the compilation stops with a different error.&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;[user@andreas 2p20d]$ mpiifort -132 -O3 -fast *.f *.f90&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Warning: the -fast option forces static linkage method for the Intel MPI Library.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved __rela_iplt_end&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libc.a(elf-init.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: warning #11020: unresolved __rela_iplt_start&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;   Referenced in libc.a(elf-init.o)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: remark #11000: performing multi-file optimizations&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipo: remark #11005: generating object file /tmp/ipo_ifortkvtaRV.o&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(mpid_nem_lmt_vmsplice.o): In function `MPID_nem_lmt_vmsplice_initiate_lmt':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;mpid_nem_lmt_vmsplice.c:(.text+0x1093): warning: the use of `tempnam' is dangerous, better use `mkstemp'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(dapl_module_util.o): In function `MPID_nem_dapl_module_util_get_ia_addr':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;dapl_module_util.c:(.text+0x4e5b): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;(.text+0x75ad): warning: the use of `mktemp' is dangerous, better use `mkstemp'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(tcp_init.o): In function `MPID_nem_tcp_get_business_card':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;tcp_init.c:(.text+0x716): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(simple_pmi.o): In function `PMI_Init':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;simple_pmi.c:(.text+0x6798): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(ofa_init.o): In function `load_ibv_library':&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ofa_init.c:(.text+0x3fc): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;[yiotis@andreas 2p20d]$ mpiifort -132 -O3 -fast *.f *.f90Warning: the -fast option forces static linkage method for the Intel MPI Library.ipo: warning #11020: unresolved __rela_iplt_end   Referenced in libc.a(elf-init.o)ipo: warning #11020: unresolved __rela_iplt_start   Referenced in libc.a(elf-init.o)ipo: remark #11000: performing multi-file optimizationsipo: remark #11005: generating object file /tmp/ipo_ifortkvtaRV.o/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(mpid_nem_lmt_vmsplice.o): In function `MPID_nem_lmt_vmsplice_initiate_lmt':mpid_nem_lmt_vmsplice.c:(.text+0x1093): warning: the use of `tempnam' is dangerous, better use `mkstemp'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(dapl_module_util.o): In function `MPID_nem_dapl_module_util_get_ia_addr':dapl_module_util.c:(.text+0x4e5b): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':(.text+0x75ad): warning: the use of `mktemp' is dangerous, better use `mkstemp'/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(tcp_init.o): In function `MPID_nem_tcp_get_business_card':tcp_init.c:(.text+0x716): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(simple_pmi.o): In function `PMI_Init':simple_pmi.c:(.text+0x6798): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/myprogs/opt/intel/impi/4.0.0.028/intel64/lib/libmpi.a(ofa_init.o): In function `load_ibv_library':ofa_init.c:(.text+0x3fc): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linkingld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;It seems that the problem now is with glibc in system that does not support static linking.&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;I found that this has been reported as a bug on Red Hat Bugzilla&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;META content="text/html; charset=utf-8" http-equiv="content-type" /&gt;&lt;A href="https://bugzilla.redhat.com/show_bug.cgi?id=606830"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=606830&lt;/A&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;So I have to wait for a newer version of the glibc library to try again.&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;In fact I get the same error when I try to statically link with OpenMPI libraries (built with ifort) on this machine.&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;All other flags that you suggested work fine and the flags&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;"-xHOST -O3 -ipo -no-prec-div" produce a slightly faster code.&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;Andreas&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Oct 2010 08:49:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804018#M855</guid>
      <dc:creator>andreas0674</dc:creator>
      <dc:date>2010-10-20T08:49:57Z</dc:date>
    </item>
    <item>
      <title>undefined references when compiling with -fast on Intel MPI</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804019#M856</link>
      <description>I'd recommend not to use statically linked libc library especially in case if your application will be used by other customers on other OSes.&lt;BR /&gt;For &lt;B&gt;"-xHOST -O3 -ipo -no-prec-div"&lt;/B&gt; you could add '-static-intel' and all libraries provided by Intel will be linked statically whilst all other will be linked dynamically.&lt;BR /&gt;Give it a try - might be this is a solution for you.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt; Dmitry&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2010 09:48:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/undefined-references-when-compiling-with-fast-on-Intel-MPI/m-p/804019#M856</guid>
      <dc:creator>Dmitry_K_Intel2</dc:creator>
      <dc:date>2010-10-20T09:48:27Z</dc:date>
    </item>
  </channel>
</rss>

