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

  • 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 43
Section 3.6.1 describes the serial application programming model.
Section 3.6.2 discusses how to build serial applications.
For further information about developing s erial applications, refer to the following sections:
Section 4.1 describes how to debu g serial applications.
Section 6.4 describes how to launch ap pli cations wi th the srun command.
Section A .1 provides examples of serial applications.
3.6.1 Serial App lication Build Environment
The HP XC programming environment supports building and running serial applications. A
serial application is a comm and or application that does not use any form of parallelism.
An example of a serial application is a standard Linux command, such as the ls or hostname
command. A serial application is basically a single-processor application that has no
communication library calls such as MPI.
3.6.1.1 Using MLIB in Serial Applications
Information about using HP MLIB in serial applications is provided in Chapter 9. The HP MLIB
Product O verview and HP MLIB User ’s Guide are available on the HP X C Documentation CD.
3.6.2 Building Serial A pplications
This section discusses how to build serial a pplications on an HP XC system. Compiling,
linking, and running serial applications are discussed.
To build a seri a l application, you must be logged in to an HP XC node with the login role. Serial
applications are compiled and linked by invoking compilers and linkers directly.
You launch a serial application either by submitting it to LSF with the bsub command, or by
invoking th e srun command t o run it. The process is sim ilar to launching a parallel application,
except that only one compute node processor is used. To run on an compute node processor,
the serial application and any required dynamic libraries must be accessible from that node. A
serial applicat ion can also be tested locally by running it on the login node.
3.6.2.1 Compiling and Linking Serial Applications
Serial applications are compiled and linked by invoking compile and link drivers directly.
Yo u can change compilers by using m odules. Refer to S ection 2.2 for information about using
modules.
As an alternative to usi ng dynamic libraries, serial applications can also be linked to static
libraries. Often, the -static optionisusedtodothis.
Refer to Section A.1 for examples of building serial applications wit h the GNU C , GNU
Fortran, and Intel C/C++, and Intel Fortran com pilers.
3.7 Developing Parallel Applications
This section describes how t o build and run parallel applications. The following topics are
discussed:
The parallel b uild environment (Section 3.7.1)
Building parallel applications (Section 3.7.2)
For further information about dev elop ing parallel applications in the HP XC environment, refer
to the followin g sections:
3-4 Developing Applications
Vue de la page 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 153 154

Commentaires sur ces manuels

Pas de commentaire