4
–
Running MPI on QLogic Adapters
Open MPI
IB0054606-02 A
4-5
Configuring MPI Programs for Open MPI
When configuring an MPI program (generating header files and/or Makefiles) for
Open MPI, you usually need to specify
mpicc
,
mpicxx
, and so on as the
compiler, rather than
gcc
,
g++
, etc.
Specifying the compiler is typically done with commands similar to the following,
assuming that you are using
sh
or
bash
as the shell:
$
export CC=mpicc
$
export CXX=mpicxx
$
export F77=mpif77
$
export F90=mpif90
The shell variables will vary with the program being configured. The following
examples show frequently used variable names. If you use
csh
, use commands
similar to the following:
$
setenv CC mpicc
You may need to pass arguments to
configure
directly, for example:
$
./configure -cc=mpicc -fc=mpif77 -c++=mpicxx
-c++linker=mpicxx
You may also need to edit a Makefile to achieve this result, adding lines similar to:
CC=mpicc
F77=mpif77
F90=mpif90
CXX=mpicxx
In some cases, the configuration process may specify the linker. QLogic
recommends that the linker be specified as
mpicc
,
mpif90
, etc. in these cases.
This specification automatically includes the correct flags and libraries, rather than
trying to configure to pass the flags and libraries explicitly. For example:
LD=mpif90
These scripts pass appropriate options to the various compiler passes to include
header files, required libraries, etc. While the same effect can be achieved by
passing the arguments explicitly as flags, the required arguments may vary from
release to release, so it is good practice to use the provided scripts.
To Use Another Compiler
Open MPI and all other MPIs that run on InfiniBand
®
, support a number of
compilers, in addition to the default GNU Compiler Collection (GCC, including gcc,
g++ and gfortran) versions 3.3 and later. These include the PGI 8.0, through 11.9;
and Intel 9.
x
, 10.1, 11.
x
, and 12.
x
.
Summary of Contents for OFED+ Host
Page 1: ...IB0054606 02 A OFED Host Software Release 1 5 4 User Guide...
Page 14: ...xiv IB0054606 02 A OFED Host Software Release 1 5 4 User Guide...
Page 22: ...1 Introduction Interoperability 1 4 IB0054606 02 A...
Page 96: ...4 Running MPI on QLogic Adapters Debugging MPI Programs 4 24 IB0054606 02 A...
Page 140: ...6 SHMEM Description and Configuration SHMEM Benchmark Programs 6 32 IB0054606 02 A...
Page 148: ...8 Dispersive Routing 8 4 IB0054606 02 A...
Page 164: ...9 gPXE HTTP Boot Setup 9 16 IB0054606 02 A...
Page 176: ...A Benchmark Programs Benchmark 3 Messaging Rate Microbenchmarks A 12 IB0054606 02 A...
Page 202: ...B SRP Configuration OFED SRP Configuration B 26 IB0054606 02 A Notes...
Page 206: ...C Integration with a Batch Queuing System Clean up PSM Shared Memory Files C 4 IB0054606 02 A...
Page 238: ...E ULP Troubleshooting Troubleshooting SRP Issues E 20 IB0054606 02 A...
Page 242: ...F Write Combining Verify Write Combining is Working F 4 IB0054606 02 A Notes...
Page 280: ...G Commands and Files Summary of Configuration Files G 38 IB0054606 02 A...
Page 283: ......