Project

General

Profile

Building OpenMPI with intel compiler » History » Revision 2

Revision 1 (Alexis Jeandet, 06/11/2013 08:19 PM) → Revision 2/3 (Alexis Jeandet, 06/11/2013 08:30 PM)

h1. BuildingOMPI 

 To build openMPI with intel compiler: 

 <pre><code class="bash"> 
 export CC=icc 
 export CXX=icpc 
 export F77=ifort 
 export F90=ifort 
 export FC=ifort 
 export LIBS="-lirc" 
 ./configure 
 make -j 64    # or the number of cores you have 
 </code></pre> 

 Then to install it, you must do it as super user: 

 <pre><code class="bash"> 
 su root     #sudo -s on ubuntu 
 make install 
 exit    #leave root session 
 </code></pre> 

 Once installed you need to tell the linker the library path, to do so: 

 <pre><code class="bash"> 
 su root    #sudo -s on ubuntu 
 echo "/usr/local/lib" > /etc/ld.so.conf.d/iopenmpi.conf 
 ldconfig    #Tell the linker to update cache 
 exit    #leave root session 
 </code></pre>