Hp XC System 2.x Software Manuel d'utilisateur Page 127

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 154
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 126
9.2.4 Modulefiles and MLIB
When building or running an application built against MLIB, it is crucial th at 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 comm and available
in $PATH as well as 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 m odulefiles are used to facilitate the user environment,
failure to use compan ion modulefiles will result in build and/or run-time errors.
If HP-MPI is used as well, it is important to make sure the mpi** comp iler scripts use the
intended co mpiler. Do thi s by setting environment variables such as, MPI_CC and MPI_F90.
Failure to do so may cause the compiler scripts to discover a co mp iler that is n ot the intended
compiler, and thus introduce an unin tended inconsistency. It is im portant to note that the MLIB
modulefiles do not set any MPI environment variables.
For more information, refer to the MLIB Users Guide.
9.2.5 Using Intel Compilers with HP MLIB
HP MLIB requires Intel compilers. Wh en using /opt/mlib/intel_7.1/hpmpi_2.1,
use t he Intel V7 compilers. When using /opt/mlib/intel_8.0/hpmpi_2.1,usethe
Intel V8 compilers. Note that Intel compilers are not supplied with the HP XC system. Ref
er to
Section 3.7.1 for further information.
9.2.6 Compiling and Linking
This section outlines compiling and linking information fo r HP XC ML I B libraries.
9.2.6.1 Linking VECLIB
For programs that link VECLIB, you can specify the entire path of the library file on the
compiler command line. Yo u can use the following comm a nds to link VECLIB:
$ ifort [options] file ...
/opt/mlib/[intel_7.1\intel_8.0]/hpmpi_2.1/lib/64/libveclib.a \
-openmp
$ icc [options] file ...
/opt/mlib/[intel_7.1\intel_8.0]/hpmpi_2.1/lib/64/libveclib.a \
-openmp
9.2.6.2 Linking LAPACK
For programs that link LAPACK ,
you can sp ecify the entire path o f the library file on the
compiler comm and line. You can
use the following co mm and s to l ink LAPACK:
$ mpi90 [options] file ...
/opt/mlib/[intel_7.1\intel_8.0]/hpmpi_2.1/lib/64/liblapack.a \
-openmp
$ mpicc [options] file ...
/opt/mlib/[intel_7.1\intel_8.0]/hpmpi_2.1/lib/64/liblapack.a \
-openmp
9.2.6.3 Linking ScaLAPACK
For programs that link ScaLAPA C K, you can specify the entire path of the library file on t he
compiler command line. You can use the following commands to link ScaLAPACK:
Using HP MLIB 9-3
Vue de la page 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 153 154

Commentaires sur ces manuels

Pas de commentaire