HP XC System Software XC User Guide
Page
Table of Contents
Compiling and Linking Serial Applications
Configuring Your Environment with Modulefiles
Srun Roles Srun Modes
Debugging Applications
115
107
131
125
11-1
List of Figures
10-1
List of Tables
List of Examples
Typographic Conventions
About This Document
Intended Audience
New and Changed Information in This Edition
HP XC and Related HP Products Information
HP XC System Software Users Guide
Related Information
Https//computing.llnl.gov/linux/slurm/documentation.html
Http//systemimager.org
Http//www-unix.mcs.anl.gov/mpi
Manpages
$ man -k keyword
HP Encourages Your Comments
$ man discover $ man 8 discover
Page
Page
/proc/cpuinfo file is dynamic
Only to the administrator of the HP XC system
Node Specialization
Determining the Node Platform
Local Storage
Storage and I/O
File System
SAN Storage
HP XC System Interconnects
System Interconnect Network
File System Layout
1 LVS
Determining System Configuration Information
User Environment
Network Address Translation NAT
Parallel Applications
Commands
Application Development Environment
Load Sharing Facility LSF
Run-Time Environment
Serial Applications
Slurm
Nodes for the job
Requested by the HP-MPI mpirun command
How LSF and Slurm Interact
HP-MPI
Components, Tools, Compilers, Libraries, and Debuggers
Page
Logging In to the System
Using the System
LVS Login Routing
Using the Secure Shell to Log
$ bqueues
Introduction
Getting Information About Queues
Getting Information About Resources
Performing Other Common User Tasks
$ man sinfo
Getting System Help and Information
Determining the LSF Cluster Name and the LSF Execution Host
$ lsid
Overview of Modules
Configuring Your Environment with Modulefiles
Supplied Modulefiles
Supplied Modulefiles
HP-MPI
Loading a Modulefile
Modulefiles Automatically Loaded on the System
Viewing Available Modulefiles
Viewing Loaded Modulefiles
Modulefile Conflicts
Unloading a Modulefile
Viewing Modulefile-Specific Help
$ module load modules $ man modulefile
Creating a Modulefile
Application Development Environment Overview
Developing Applications
MPI Compiler
Compiler Commands
Compilers
Developing Serial Applications
Setting Debugging Options
Examining Nodes and Partitions Before Running Jobs
Interrupting a Job
Parallel Application Build Environment
Developing Parallel Applications
Serial Application Build Environment
Building Serial Applications
Pthreads
Modulefiles
HP-MPI
OpenMP
GNU C and C++ Compilers
MPI Library
Intel Fortran and C/C++Compilers
PGI Fortran and C/C++ Compilers
Building Parallel Applications
Designing Libraries for the CP4000 Platform
To compile and link a C application using the mpicc command
Developing Libraries
To build a 64-bit application, you might enter
Linkcommand 32-bit -L/opt/mypackage/lib/i686 -lmystuff
Linkcommand 64-bit -L/opt/mypackage/lib/x8664 -lmystuff
Developing Applications
Overview of Job Submission
Submitting a Serial Job Using LSF
Submitting a Serial Job with the LSF bsub Command
Submitting Jobs
$ bsub -I srun hostname
Example 5-2 Submitting a Serial Job Using LSF
Submitting a Serial Job Through Slurm Only
Example 5-1 Submitting a Job from the Standard Input
To submit a parallel job
Following is the command line used to compile this program
Submitting a Parallel Job
Submitting a Non-MPI Parallel Job
$ bsub -n4 -I srun hostname
Example 5-5 Submitting a Non-MPI Parallel Job
$ bsub -n4 -I mpirun -srun ./helloworld
Example 5-7 Submitting an MPI Job
Nodelist=list of nodes
Arguments for the Slurm External Scheduler
$ bsub -n 10 -ext SLURMnodelist=n1-10 srun hostname
$ bqueues -l dualcore grep Slurm
Submitting a Batch Job or Job Script
Example 5-14 Submitting a Job Script
$ bsub -n 10 -ext SLURMconstraint=dualcore -I srun hostname
$ bsub -n4 -I ./myscript.sh
$ bsub -n4 -ext SLURMnodes=4 -I ./myscript.sh
Submitting Multiple MPI Jobs Across the Same Set of Nodes
Using a Script to Submit Multiple Jobs
Using a Makefile to Submit Multiple Jobs
Use the squeue command to acquire information on the jobs
$ tail 113.out
Following command line makes the program and executes it
$ cat mymake
$ cat 117.out
$ bsub -R type=SLINUX64 -n4 -I srun hostname
Submitting a Job from a Host Other Than an HP XC Host
Running Preexecution Programs
Type=SLINUX64
Page
TotalView
Debugging Applications
Debugging Serial Applications
Debugging Parallel Applications
Module load mpi module load totalview
Setting Up TotalView
Debugging with TotalView
SSH and TotalView
$ srun -Nx-A $ mpirun -tv -srun application
Using TotalView with Slurm
Using TotalView with LSF
Setting TotalView Preferences
$ mpirun -tv -srun -n2 ./Psimple
Debugging an Application
Run the application
$ scancel --user username
Debugging Running Applications
Exiting TotalView
Page
Xtools Utilities
Monitoring Node Activity
Where
Running Performance Health Tests
$ ovp --verbose --verify=perfhealth/cpuusage
You can list the available tests with the ovp -lcommand
$ ovp -l
$ ovp --verify=perfhealth/cpuusage
HOMEDIRECTORY/ovpn16mmddyy.log
HOMEDIRECTORY/ovpn16mmddyyr1.log
Page
Building a Program Intel Trace Collector and HP-MPI
Tuning Applications
Using the Intel Trace Collector and Intel Trace Analyzer
Example 8-2 C Example Running the vtjacobic Example Program
Running a Program Intel Trace Collector and HP-MPI
Example 8-1 The vtjacobic Example Program
For more information, see the following Web site
HP-MPI and the Intel Trace Collector
Installation Kit
Intel Trace Collector and Analyzer with HP-MPI on HP XC
Following is a Fortran example called vtjacobif
Running a Program
# bsub -n4 -I mpirun.mpich -np 2 ./vtjacobic
Running a Program Across Nodes Using LSF
Visualizing Data Intel Trace Analyzer and HP-MPI
Page
Slurm Utilities
Using Slurm
Launching Jobs with the srun Command
Introduction to Slurm
Srun Roles and Modes
Monitoring Jobs with the squeue Command
Using the srun Command with HP-MPI
Using the srun Command with LSF
Example 9-5cancels all pending jobs
Terminating Jobs with the scancel Command
Getting System Information with the sinfo Command
$ sinfo -R
Fault Tolerance
Job Accounting
Security
Information for LSF
Using LSF
$ squeue --jobs $SLURMJOBID
Overview of LSF Integrated with Slurm
Example 10-1 Examples of LSF Job Launch
Lsfadmin@n16 ~$ bsub -n4 -I srun hostname
Differences Between LSF and LSF Integrated with Slurm
Lshosts and lsload commands display for each of these items
$ ssh n15 lshosts
Job Terminology
Connection back to the terminal from which the job was
Submitted. This job may run immediately, or it may run
Batch system scheduling policies
Batch jobs are submitted with the srun -bcommand. By
Default, the output is written to
Are submitted with the bsub -Icommand
Job Startup and Job Control
Using LSF Integrated with Slurm in the HP XC Environment
Useful Commands
Submitting Jobs
LSF with Slurm Job Launch Exit Codes
LSF-SLURM External Scheduler
How LSF and Slurm Launch and Manage a Job
How LSF and Slurm Launch and Manage a Job
User logs in to login node n16
Determining Available System Resources
Determining the LSF Execution Host
Getting Information About the LSF Execution Host Node
Following example shows the output from the lshosts command
Examining System Core Status
Getting Information About the lsf Partition
Getting Information About Jobs
Getting Host Load Information
Examining System Queues
Than what the job requests
Getting Job Allocation Information
This allocation string has the following values
LSF job with Slurm allocated resources
Example 10-4 Job Allocation Information for a Finished Job
Example 10-5 Using the bjobs Command Short Output
Examining the Status of a Job
Viewing the Historical Information for a Job
Example 10-6 Using the bjobs Command Long Output
Example 10-7 Using the bhist Command Short Output
Output Provided by the bhist Command
Translating Slurm and LSF JOBIDs
Example 10-8 Using the bhist Command Long Output
Use the bjobs command to view the Slurm Jobid
$ bjobs -l 124 grep slurm
Working Interactively Within an Allocation
$ sacct -j
$ bsub -I -n4 -ext SLURMnodes=4 /bin/bash
Alternatively, you can use the following
Example 10-9 Launching an Interactive MPI Job
This example assumes 2 cores per node
$ unset Slurmjobid $ unset Slurmnprocs
LSF Equivalents of Slurm srun Options
3describes the srun options and lists their LSF equivalents
LSF Equivalents of Slurm srun Options
Requests a specific list of nodes.
Slurm
Suppress informational message
Determining IP Address of Your Local Machine
Advanced Topics
Enabling Remote Execution with OpenSSH
Running an X Terminal Session from a Remote Node
Logging in to HP XC System
Running an X terminal Session Using Slurm
Running an X terminal Session Using LSF
Monitors display server address
Using the GNU Parallel Make Capability
Options used in this command are Allocate 4 cores
Run the job on 1 core
$ cd subdir srun -n1 -N1 $MAKE -j4
$ cd subdir srun $MAKE
$ make PREFIX=’srun -n1 -N1 MAKEJ=-j4
Example Procedure
$ make PREFIX=srun -n1 -N1 MAKEJ=-j4
Local Disks on Compute Nodes
Modified Makefile is invoked as follows
Shared File View
Using Mpich on the HP XC System
11.5 I/O Performance Considerations
Communication Between Nodes
Bsub command launches the wrapper script
Using Mpich with Slurm Allocation
Using Mpich with LSF Allocation
Examine the LSF execution host information
Examples
Building and Running a Serial Application
Launching a Serial Interactive Shell Through LSF
Running LSF Jobs with a Slurm Allocation Request
Example 2. Four Cores on Two Specific Nodes
Launching a Parallel Interactive Shell Through LSF
$ hostname n16 $ srun hostname n5 $ bjobs
Examine the running jobs information
Display the script
Submitting a Simple Job Script with LSF
Examine the finished jobs information
Show the environment
Show the job allocation
Submitting an Interactive Job with LSF
Run the job
Submit the job
View the interactive jobs
Run some commands from the pseudo-terminal
Show the Slurm job ID
Exit the pseudo-terminal
View the running job
Submitting an HP-MPI Job with LSF
View the node state
$ bsub -n 8 -R ALPHA5 SLINUX64 \ -ext SLURMnodes=4-4 myjob
Using a Resource Requirements String in an LSF Command
View the finished job
124
Network Availability set
Glossary
Fcfs
Ipmi
LVS
PXE
SVA
Index
Index
LVS
PGI
135