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

  • 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 128
9.3.3 MPI Parallelism
Internal parallelism in ScaLAPACK and SuperLU_DIST is implemented using MPI a
portable, scalable programming model that gives distributed-memory parallel programmers a
simple and flexible interface for developing parallel applications.
9.3.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 mp iler. Do this by set tin g the appropriate environment variables, such as, MPI_CC
and MPI_F90. Failure to do so may cause the compiler scripts to discover a compiler that is
not the intended compiler, and th us introduce an unintended inconsistency. It is importan t to
note that the MLIB modulefiles do not set any MPI environmen t variables.
For more information, refer to the MLIB Users Guide.
9.3.5 Compiling and Linking
This section outlines compiling and linking information fo r HP XC ML I B libraries.
9.3.5.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:
$ pgf90 [options] file ...
/opt/mlib/pgi_5.1/hpmpi_2.1/lib/64/libveclib.a -mp
$ pgcc [options] file ...
/opt/mlib/pgi_5.1/hpmpi_2.1/lib/64/libveclib.a -mp -lpgf90
-lpgf90_rpml -lpgf902 -lpgf90rtl -lpgftnrtl
9.3.5.2 Linking LAPACK
For programs that l ink LAPACK , you can specify the entire path of the library f ile on the
compiler command line. You can use the following commands to l ink LAPACK:
$ pgf90 [options] file ...
/opt/mlib/pgi_5.1/hpmpi_2.1/lib/64/liblapack.a -mp
$ pgcc [options] file ...
/opt/mlib/pgi_5.1/hpmpi_2.1/lib/64/liblapack.a -mp -lpgf90
-lpgf90_rpml -lpgf902 -lpgf90rtl -lpgftnrtl
9.3.5.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:
$ mpi90 [options] file ...
/opt/mlib/pgi_5.1/hpmpi_2.1/lib/64/libscalapack.a -mp
Using HP MLIB 9-5
Vue de la page 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 153 154

Commentaires sur ces manuels

Pas de commentaire