<?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 Re: Error with Intel MPI (ld: cannot find -lmpi) in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907830#M2292</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/198675"&gt;Gergana Slavova (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Susheel,&lt;/P&gt;
&lt;P&gt;First off, to answer your question, -lmpi is the Intel MPI Library. It's what you need to link with if using any MPI routines.&lt;/P&gt;
&lt;P&gt;Do you have an Intel 64 machine (a Xeon of some type) that you're using in 64-bit mode? If yes, then the solution is simple: You're using a 32-bit version of the library, based on your path:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;/opt/intel/impi/3.2.2.006/&lt;STRONG&gt;lib&lt;/STRONG&gt;/libmpi.so&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Instead, try the libmpi.so file from the /opt/intel/impi/3.2.2.006/&lt;STRONG&gt;lib64&lt;/STRONG&gt; directory. To do so, we recommend that you source the appropriate mpivars.&lt;C&gt;sh script (depending on your shell) located in the &lt;STRONG&gt;/opt/intel/impi/3.2.2.006/bin64&lt;/STRONG&gt; directory.&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;It should go something like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;$ source /opt/intel/impi/3.2.2.006/&lt;STRONG&gt;bin64&lt;/STRONG&gt;/mpivars.csh&lt;BR /&gt;$ which mpiifort&lt;BR /&gt;/opt/intel/impi/3.2.2.006/&lt;STRONG&gt;bin64&lt;/STRONG&gt;/mpiifort&lt;BR /&gt;$ mpiifort test.f&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps. Let me know how it goes.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks very much, Gergana. You're right, I am working on a 64 bit Intel machine and problem seems to have been because of the 32 bit version of the library. I have tried recompiling it with the 64 bit version and it works just fine. &lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Susheel&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Oct 2009 14:40:23 GMT</pubDate>
    <dc:creator>Susheel_Kumar_Sekhar</dc:creator>
    <dc:date>2009-10-20T14:40:23Z</dc:date>
    <item>
      <title>Error with Intel MPI (ld: cannot find -lmpi)</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907828#M2290</link>
      <description>I installed Intel MPI Library and tried compiling one of the test programs that come along with it (test.f). While doing so, here's the error message that I see.&lt;BR /&gt;&lt;BR /&gt;[susheel@localhost intel_mpi_test]$ /opt/intel/impi/3.2.2.006/bin/mpiifort test.f&lt;BR /&gt;ld: skipping incompatible /opt/intel/impi/3.2.2.006/lib/libmpi.so when searching for -lmpi&lt;BR /&gt;ld: skipping incompatible /opt/intel/impi/3.2.2.006/lib/libmpi.a when searching for -lmpi&lt;BR /&gt;ld: cannot find -lmpi&lt;BR /&gt;&lt;BR /&gt;I couldn't find any information regarding -lmpi. Is there something that I'm missing here?&lt;BR /&gt;Thanks very much.</description>
      <pubDate>Tue, 20 Oct 2009 03:55:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907828#M2290</guid>
      <dc:creator>Susheel_Kumar_Sekhar</dc:creator>
      <dc:date>2009-10-20T03:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Intel MPI (ld: cannot find -lmpi)</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907829#M2291</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/448263"&gt;Susheel Kumar Sekhar&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;[susheel@localhost intel_mpi_test]$ /opt/intel/impi/3.2.2.006/bin/mpiifort test.f&lt;BR /&gt;ld: skipping incompatible /opt/intel/impi/3.2.2.006/lib/libmpi.so when searching for -lmpi&lt;BR /&gt;&lt;BR /&gt;I couldn't find any information regarding -lmpi. Is there something that I'm missing here?&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Hi Susheel,&lt;/P&gt;
&lt;P&gt;First off, to answer your question, -lmpi is the Intel MPI Library. It's what you need to link with if using any MPI routines.&lt;/P&gt;
&lt;P&gt;Do you have an Intel 64 machine (a Xeon of some type) that you're using in 64-bit mode? If yes, then the solution is simple: You're using a 32-bit version of the library, based on your path:&lt;BR /&gt;
&lt;/P&gt;&lt;BLOCKQUOTE&gt;/opt/intel/impi/3.2.2.006/&lt;STRONG&gt;lib&lt;/STRONG&gt;/libmpi.so&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Instead, try the libmpi.so file from the /opt/intel/impi/3.2.2.006/&lt;STRONG&gt;lib64&lt;/STRONG&gt; directory. To do so, we recommend that you source the appropriate mpivars.&lt;C&gt;sh script (depending on your shell) located in the &lt;STRONG&gt;/opt/intel/impi/3.2.2.006/bin64&lt;/STRONG&gt; directory.&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;It should go something like this:&lt;BR /&gt;
&lt;/P&gt;&lt;BLOCKQUOTE&gt;$ source /opt/intel/impi/3.2.2.006/&lt;STRONG&gt;bin64&lt;/STRONG&gt;/mpivars.csh&lt;BR /&gt;$ which mpiifort&lt;BR /&gt;/opt/intel/impi/3.2.2.006/&lt;STRONG&gt;bin64&lt;/STRONG&gt;/mpiifort&lt;BR /&gt;$ mpiifort test.f&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps. Let me know how it goes.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2009 05:05:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907829#M2291</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2009-10-20T05:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Intel MPI (ld: cannot find -lmpi)</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907830#M2292</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/198675"&gt;Gergana Slavova (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Susheel,&lt;/P&gt;
&lt;P&gt;First off, to answer your question, -lmpi is the Intel MPI Library. It's what you need to link with if using any MPI routines.&lt;/P&gt;
&lt;P&gt;Do you have an Intel 64 machine (a Xeon of some type) that you're using in 64-bit mode? If yes, then the solution is simple: You're using a 32-bit version of the library, based on your path:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;/opt/intel/impi/3.2.2.006/&lt;STRONG&gt;lib&lt;/STRONG&gt;/libmpi.so&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Instead, try the libmpi.so file from the /opt/intel/impi/3.2.2.006/&lt;STRONG&gt;lib64&lt;/STRONG&gt; directory. To do so, we recommend that you source the appropriate mpivars.&lt;C&gt;sh script (depending on your shell) located in the &lt;STRONG&gt;/opt/intel/impi/3.2.2.006/bin64&lt;/STRONG&gt; directory.&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;It should go something like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;$ source /opt/intel/impi/3.2.2.006/&lt;STRONG&gt;bin64&lt;/STRONG&gt;/mpivars.csh&lt;BR /&gt;$ which mpiifort&lt;BR /&gt;/opt/intel/impi/3.2.2.006/&lt;STRONG&gt;bin64&lt;/STRONG&gt;/mpiifort&lt;BR /&gt;$ mpiifort test.f&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps. Let me know how it goes.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks very much, Gergana. You're right, I am working on a 64 bit Intel machine and problem seems to have been because of the 32 bit version of the library. I have tried recompiling it with the 64 bit version and it works just fine. &lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Susheel&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Oct 2009 14:40:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907830#M2292</guid>
      <dc:creator>Susheel_Kumar_Sekhar</dc:creator>
      <dc:date>2009-10-20T14:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Intel MPI (ld: cannot find -lmpi)</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907831#M2293</link>
      <description>&lt;P&gt;I'm glad you have it working, Susheel. Enjoy your new library :)&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2009 15:04:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-with-Intel-MPI-ld-cannot-find-lmpi/m-p/907831#M2293</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2009-10-20T15:04:36Z</dc:date>
    </item>
  </channel>
</rss>

