Hprc banner tamu.png

Difference between revisions of "Ada:Compile:MPI"

From TAMU HPRC
Jump to: navigation, search
(Created page with "Under construction. For now see the Eos documentation.")
 
Line 1: Line 1:
Under construction.
+
== MPI Code ==
  
For now see the [[Eos:Compile:MPI | Eos documentation]].
+
The table below shows the commands to compile mpi programs. These commands are basically wrapper scripts that call the respective intel compilers with additional linker flags\
 +
. Any intel compiler flag will also work when using the wrappers below.
 +
 
 +
{| class="wikitable" style="text-align: left;"
 +
!Language
 +
!Compiler
 +
!Example
 +
|-
 +
|C
 +
|mpiicc
 +
|mpiicc  <compiler_flags> prog.c
 +
|-
 +
|C++
 +
|mpiicpc
 +
|mpiicpcp <compiler_flags> prog.cpp
 +
|-
 +
|F90
 +
|mpiifort
 +
|mpiifort <compiler_flags> prog.f90
 +
|-
 +
|F77
 +
|mpiifort
 +
|mpiifort <compiler_flags> prog.f
 +
|}
 +
 
 +
To see complete compiler command when calling the wrapper functions above use the **-show** flag:
 +
 
 +
<pre> -bash-4.1$ mpiifort -show
 +
ifort -I/software/easybuild/software/impi/4.1.3.049/intel64/include -I/software/easybuild/software/impi/4.1.3.049/intel64/include
 +
-L/software/easybuild/software/impi/4.1.3.049/intel64/lib -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker
 +
/software/easybuild/software/impi/4.1.3.049/intel64/lib -Xlinker -rpath -Xlinker -/opt/intel/mpi-rt/4.1 -lmpigf -lmpi -lmpigi -ldl -lrt -lpthread`
 +
</pre>
 +
 
 +
[[Category:Ada]]

Revision as of 16:07, 7 October 2014

MPI Code

The table below shows the commands to compile mpi programs. These commands are basically wrapper scripts that call the respective intel compilers with additional linker flags\ . Any intel compiler flag will also work when using the wrappers below.

Language Compiler Example
C mpiicc mpiicc <compiler_flags> prog.c
C++ mpiicpc mpiicpcp <compiler_flags> prog.cpp
F90 mpiifort mpiifort <compiler_flags> prog.f90
F77 mpiifort mpiifort <compiler_flags> prog.f

To see complete compiler command when calling the wrapper functions above use the **-show** flag:

 -bash-4.1$ mpiifort -show 
ifort -I/software/easybuild/software/impi/4.1.3.049/intel64/include -I/software/easybuild/software/impi/4.1.3.049/intel64/include 
-L/software/easybuild/software/impi/4.1.3.049/intel64/lib -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker 
/software/easybuild/software/impi/4.1.3.049/intel64/lib -Xlinker -rpath -Xlinker -/opt/intel/mpi-rt/4.1 -lmpigf -lmpi -lmpigi -ldl -lrt -lpthread`