Building OpenMPI with intel compiler » History » Version 2
Alexis Jeandet, 06/11/2013 08:30 PM
1 | 1 | Alexis Jeandet | h1. BuildingOMPI |
---|---|---|---|
2 | |||
3 | To build openMPI with intel compiler: |
||
4 | |||
5 | <pre><code class="bash"> |
||
6 | export CC=icc |
||
7 | export CXX=icpc |
||
8 | export F77=ifort |
||
9 | export F90=ifort |
||
10 | export FC=ifort |
||
11 | export LIBS="-lirc" |
||
12 | ./configure |
||
13 | make -j 64 # or the number of cores you have |
||
14 | </code></pre> |
||
15 | 2 | Alexis Jeandet | |
16 | Then to install it, you must do it as super user: |
||
17 | |||
18 | <pre><code class="bash"> |
||
19 | su root #sudo -s on ubuntu |
||
20 | make install |
||
21 | exit #leave root session |
||
22 | </code></pre> |
||
23 | |||
24 | Once installed you need to tell the linker the library path, to do so: |
||
25 | |||
26 | <pre><code class="bash"> |
||
27 | su root #sudo -s on ubuntu |
||
28 | echo "/usr/local/lib" > /etc/ld.so.conf.d/iopenmpi.conf |
||
29 | ldconfig #Tell the linker to update cache |
||
30 | exit #leave root session |
||
31 | </code></pre> |