| United States-English |
|
|
|
![]() |
HP XC System Software: User's Guide > Chapter 4 Developing ApplicationsDeveloping Serial Applications |
|
This section describes how to build and run serial applications in the HP XC environment. The following topics are covered:
For further information about developing serial applications, see the following sections:
You can build and run serial applications in the HP XC programming environment. A serial application is a command 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-core application that has no communication library calls such as MPI. This section discusses how to build serial applications on an HP XC system. Compiling, linking, and running serial applications are discussed. To build a serial 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. You launch a serial application either by submitting it to LSF-HPC with the bsub command, or by invoking the srun command to run it. The process is similar to launching a parallel application, except that only one compute node core 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 application can also be tested locally by running it on the login node. Serial applications are compiled and linked by invoking compile and link drivers. You can change compilers by using modules. For information about using modules, see “Overview of Modules”. As an alternative to using dynamic libraries, serial applications can also be linked to static libraries. Often the -static option is used to do this. For examples of building serial applications with the GNU C, GNU Fortran, and Intel C/C++, and Intel Fortran compilers, see “Building and Running a Serial Application”. |
||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||