The Ctrl/C key sequence will report the state of all tasks associated with the srun command. If the Ctrl/C key sequence is entered twice within one second, the associated SIGINT signal will be sent to all tasks. If a third Ctrl/C key sequence is entered, the job will be terminated without waiting for remote tasks to exit.

The Ctrl/Z key sequence is ignored.

Setting Debugging Options

In general, the debugging information for your application that is needed by most debuggers can be produced by supplying the -gswitch to the compiler. For more specific information about debugging options, refer to the documentation and manpages associated with your compiler.

Developing Serial Applications

This section describes how to build and run serial applications in the HP XC environment. The following topics are covered:

Serial Application Build Environment (page 39) describes the serial application programming model.

Building Serial Applications (page 39) discusses how to build serial applications.

For further information about developing serial applications, refer to the following sections:

Debugging Serial Applications (page 53) describes how to debug serial applications.

Launching Jobs with the srun Command (page 63) describes how to launch applications with the srun command.

Building and Running a Serial Application (page 99) provides examples of serial applications.

Serial Application Build Environment

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.

Building Serial Applications

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.

Compiling and Linking Serial Applications

Serial applications are compiled and linked by invoking compile and link drivers.

You can change compilers by using modules. Refer to "Overview of Modules" for information about using modules.

As an alternative to using dynamic libraries, serial applications can also be linked to static libraries. Often, the -staticoption is used to do this.

Refer to "Building and Running a Serial Application" for examples of building serial applications with the GNU C, GNU Fortran, and Intel C/C++, and Intel Fortran compilers.

Setting Debugging Options 39

Page 39
Image 39
HP XC System 3.x Software Setting Debugging Options, Developing Serial Applications, Serial Application Build Environment