HP XC System Software Release Notes for Version 2.1

7
Programming and User Environment Notes
This chapter contains information that applies to the programming and user
environment.
7.1 Notes About the HP Math Library
The following notes apply to Intel compilers and the HP Math Library (MLIB):
After installation, MLIB directory information is located in the
/opt/mlib/README file.
MLIB requires the Intel Fortran Compiler.
When using /opt/mlib/intel_7.1/hpmpi_2.0, use the Intel Version 7
compilers.
When using /opt/mlib/intel_8.0/hpmpi_2.0, use the Intel Version 8
compilers.
When using /opt/mlib/pgi_5.2/hpmpi_2.0, use the Portland Group (PGI)
Version 5.2 compilers.
Use the following specific Fortran compilers:
- Version 8.0 Fortran Compiler
RPM: intel-ifort8-8.0-57.ia64.rpm
tar file: l_fc_pc_8[1].0.046.tar.gz
- Version 7.1 Fortran compiler
RPM: intel-efc7-7.1-41.ia64.rpm
tar file: l_fc_pc_7[1].1.040.tar
- Version 5.2 Portland Group (PGI) Fortran compiler
tar file: 5.2.4-linux86-64[1].tar
7.2 Notes About MLIB, HP MPI, and Modulefiles
When building and running an application built against MLIB, it is crucial
that the environment is consistent. Modulefiles can make it easier to access a
package, therefore, if modulefiles are used, it is necessary to use a consistent set of
modulefiles.
In particular, modulefiles can be used to select a compiler, both making its
command available in $PATH and making its shared objects available in
$LD_LIBRARY_PATH. MLIB has a modulefile corresponding to each supported
compiler, making its shared objects available in $LD_LIBRARY_PATH. If modulefiles
are used to facilitate the user environment, failure to use companion modulefiles
will result in build and run time errors or both.
If the HP Message Passing Interface (MPI) is used as well, it is important to make
sure the mpi** compiler scripts use the intended compiler, for example, by setting
the MPI_CC or MPI_F90 environment variables (or both). Failure to do so may
cause the compiler scripts to discover a compiler that is not the intended compiler,
and thus introduce an unintended inconsistency.
Programming and User Environment Notes 7-1