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

  • 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 45
Compilers from GNU, Intel and PGI provide a -pthread sw itch to allow compilation with
the Pthread library.
Packages that link against Pthreads, such as MKL and MLIB, require that the application
is linked using the -pthread option. The Pthread optio n is invoked with the following
compiler-specific switches:
GNU
-pthread
Intel
-pthread
PGI
-lpgthread
For example:
$ mpicc object1.o ... -pthread -o myapp.exe
3.7.1.5 Quadrics SHMEM
The Quad rics implementation of
SHMEM is supported on HP XC systems with
Quadrics switches. SHMEM is a co
llection of high-performance routines (that sup port a
distributed-memory model) for
data passing between parallel executables.
To compil e programs that use SHMEM, it is necessary to include t he shmem.h fileandtouse
the SHMEM and Elan libraries. For example:
$ gcc -o shping shping.c -lshmem -lelan
3.7.1.6 MLIB Math Library
The HP MLIB mathematical library is included in the HP XC System Software and is installed
by default.
HP MLIB contains mathematical software and computational kernels for engi
neering and
scientific applications involving linear equations, least squares, eige
nvalue problem s, singular
value decomposition, vector and matrix computations, c onv olutions, and F
ourier Transforms.
This release of HP XC M LIB has four components: VECLIB, LAPACK, ScaLAPACK
,and
SuperLU_DIST.
You m ust install the Intel com pilers for the 6 4-bit architecture, or PGI compilers for XC4000,
in order to use the H P XC MLIB mathematical library. See y our system administrator if the
required compilers a re not installed on your system.
Information about
using HP MLIB is provided in Chapter 9. An HP XC MLIB Product
Overview and User
s Guide are available o n the HP XC Documentation CD-ROM.
3.7.1.7 MPI Library
The MPI library supports MPI 1.2 as d escrib ed in the 1997 release of MPI: A Message Passing
Interface Standard. Users should note that the MPI specification describes the application
programming interface, but d oes not specify the contents of the MPI header files, mpi.h
and mpif.h, that are included in the source code. Therefore, an MPI application must be
recompiled using the proper header files for the MP I library to which it is to be linked.
Parallel app lication s that use MPI for communication must include the HP XC infrastructure
libraries. MPI applications must be built with mpicc, mpic++, mpif77,ormpif90 util iti es.
When an MPI application is launched, the user environment, including any M PI environment
variables that have been set, is passed to the application.
MPI profiling support is included in the HP XC MPI library, so yo u do not need to link with a
separate library to access the PMPI_xxx() versions of the MPI routines.
3-6 Developing Applications
Vue de la page 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 153 154

Commentaires sur ces manuels

Pas de commentaire