Intel® MPI Library Reference Manual for Linux* OS
The following table lists available MPI compiler commands and Intel® Composer XE 2013 for Linux* OS for Intel® MIC Architecture, languages, and application binary interfaces (ABIs) that they support.
Compiler Command |
Default Compiler |
Supported Language(s) |
Supported ABI(s) |
---|---|---|---|
mpiicc |
icc |
C |
64 bit |
mpiicpc |
icpc |
C++ |
64 bit |
mpiifort |
ifort |
Fortran77/Fortran 95 |
64 bit |
The compiler commands have the following common features:
The compiler commands reside in the <installdir>/intel64em64t/bin directory.
The environment settings should be established by sourcing the <installdir>/intel64em64t/bin/mpivars.sh script. If you need to establish environment settings for different library configurations, you can pass one of the following arguments to the mpivars.sh script to switch to corresponding configurations:
debug
release
debug_mt
release_mt
Multi-threaded optimized library is chosen by default.
To compile a heterogeneous MPI application, compile it twice: one time for Intel® 64 Architecture and another time for Intel® MIC Architecture.
To distinguish targeted architectures, the scripts parse the underlying compiler options. If they detect the compiler options that target Intel® MIC Architecture (such as -mmic) is currently used by Intel® Composer XE 2013 for Linux* OS for Intel® MIC Architecture, they create an Intel® MIC Compiler executable file. Otherwise, they create an Intel® Xeon processor executable file.
GNU* Compiler use requires that the compiler be specified with -cc/-cxx/-fc/-f77/-f90 options or through the environment variables described in the Reference Manual. For example:
(host)$ mpicc -cc=/usr/linux-k1om-4.7/bin/x86_64-k1om-linux-gcc -mmic test.c -o test_hello.mic
Use different file names and/or locations to distinguish Intel® MIC Architecture and Intel® 64 Architecture executable files.