HP
XC System 3.x Software
manual
List of Figures
Fault Tolerance
Login
Setting Up TotalView
$ man lsfcommandname
Example Procedure
Tuning Applications
Slurm backup
Setting Debugging Options
$ scancel --user username
Using TotalView with LSF-HPC
Page 7
List of Figures
9-1
How
LSF-HPC
and SLURM Launch and Manage a Job
73
7
Page 6
Page 8
Image 7
Page 6
Page 8
Contents
HP XC System Software Users Guide
Page
Table of Contents
Developing Applications
Configuring Your Environment with Modulefiles
Submitting Jobs
Debugging Applications
Tuning Applications
Using Slurm
Using LSF
Examples
Advanced Topics
Glossary 109 Index 115
List of Figures
Page
Determining the Node Platform
List of Tables
Page
Submitting a Job Script
List of Examples
Page
This document is organized as follows
About This Document
Intended Audience
Document Organization
HP XC Information
For More Information
$ man lsfcommandname
Supplementary Information
$ man -k keyword
Related Information
Manpages
$ man discover $ man 8 discover
Additional Publications
Related Linux Web Sites
Related MPI Web Sites
Related Compiler Web Sites
User input
Typographic Conventions
HP Encourages Your Comments
Environment Variable
Operating System
Overview of the User Environment
System Architecture
HP XC System Software
Storage and I/O
Node Specialization
File System Layout
File System
SAN Storage
Local Storage
System Interconnect Network
Determining System Configuration Information
Network Address Translation NAT
User Environment
Commands
Modules
Serial Applications
Application Development Environment
Run-Time Environment
Parallel Applications
Standard LSF
Load Sharing Facility LSF-HPC
How LSF-HPC and Slurm Interact
Components, Tools, Compilers, Libraries, and Debuggers
Mpirun command
Logging In to the System
Using the System
LVS Login Routing
Using the Secure Shell to Log
Getting Information About Queues
Introduction
Getting Information About Resources
Performing Other Common User Tasks
$ man sinfo
Getting System Help and Information
Overview of Modules
Configuring Your Environment with Modulefiles
Supplied Modulefiles
Loading a Modulefile
Modulefiles Automatically Loaded on the System
Viewing Available Modulefiles
Viewing Loaded Modulefiles
Loading a Modulefile for the Current Session
Automatically Loading a Modulefile at Login
Unloading a Modulefile
Modulefile Conflicts
$ module help totalview
Creating a Modulefile
Viewing Modulefile-Specific Help
$ module load modules $ man modulefile
Page
Application Development Environment Overview
Developing Applications
Compilers
Partition Avail Timelimit Nodes State Nodelist
Examining Nodes and Partitions Before Running Jobs
Interrupting a Job
MPI Compiler
Building Serial Applications
Setting Debugging Options
Developing Serial Applications
Serial Application Build Environment
OpenMP
Developing Parallel Applications
Parallel Application Build Environment
Modulefiles
Intel Fortran and C/C++Compilers
Pthreads
Quadrics Shmem
MPI Library
Building Parallel Applications
Designing Libraries for the CP4000 Platform
Developing Libraries
Examples of Compiling and Linking HP-MPI Applications
Linkcommand 64-bit -L/opt/mypackage/lib/x8664 -lmystuff
Linkcommand 32-bit -L/opt/mypackage/lib/i686 -lmystuff
To build a 64-bit application, you might enter
Overview of Job Submission
Submitting Jobs
ExtSLURMslurm-arguments
$ bsub hostname
Submitting a Serial Job Using Standard LSF
Submitting a Serial Job Using LSF-HPC
Submitting a Serial Job with the LSF bsub Command
Submitting a Serial Job Through Slurm only
Mpirun mpirun--options-srunsrun-optionsmpi-jobname
Submitting a Non-MPI Parallel Job
$ bsub -n4 -I srun hostname
Bsub -nnum-procsbsub-optionsmpijob
$ bsub -n4 -I mpirun -srun ./helloworld
Submitting a Batch Job or Job Script
Bsub -nnum-procs bsub-optionsscript-name
$ bsub -n4 -ext SLURMnodes=4 -I ./myscript.sh
$ cat myscript.sh #!/bin/sh
Srun hostname mpirun -srun hellompi
$ bsub -I -n4 Myscript.sh
$ bsub -n4 -I ./myscript.sh
Running Preexecution Programs
$ cat ./envscript.sh #!/bin/sh name=`hostname`
Opt/hptc/bin/srun Mypreexec
TotalView
Debugging Applications
Debugging Serial Applications
Debugging Parallel Applications
Module load mpimodule load totalview
Setting Up TotalView
Using TotalView with Slurm
SSH and TotalView
Setting TotalView Preferences
Using TotalView with LSF-HPC
Debugging an Application
$ mpirun -srun -n2 Psimple
Sourcefile initfdte.f was not found, using assembler mode
Debugging Running Applications
Directories in File ⇒ Search Path
Exiting TotalView
$ scancel --user username
$ squeue
Page
Using the Intel Trace Collector and Intel Trace Analyzer
Tuning Applications
Building a Program Intel Trace Collector and HP-MPI
Cldflags
Running a Program Intel Trace Collector and HP-MPI
Visualizing Data Intel Trace Analyzer and HP-MPI
Libs
Using the Intel Trace Collector and Intel Trace Analyzer
Page
Introduction to Slurm
Using Slurm
Launching Jobs with the srun Command
Srun Squeue Scancel Sinfo Scontrol
Srun Roles and Modes
Monitoring Jobs with the squeue Command
Using the srun Command with HP-MPI
Using the srun Command with LSF-HPC
Getting System Information with the sinfo Command
Terminating Jobs with the scancel Command
Job Accounting
Security
Fault Tolerance
# chmod a+r /hptccluster/slurm/job/jobacct.log
Using Standard LSF on an HP XC System
Using LSF
Using LSF-HPC
Overview of LSF-HPC
Introduction to LSF-HPC in the HP XC Environment
Hostname Status JL/U MAX Njobs RUN Ssusp Ususp RSV
Differences Between LSF-HPC and Standard LSF
Hostname
Resources
$ ssh n15 lshosts
Job Terminology
Unknown Unknown
SLURMnodelist =nodelist if specified
HP XCCompute Node Resource Support
$ bsub -n 10 -ext SLURMconstraint=dualcore -I srun hostname
$ bsub -n 10 -I srun hostname
$ bsub -n 10 -ext SLURMnodes=10 -I srun hostname
$ bsub -n 10 -ext SLURMnodes=10exclude=n16 -I srun hostname
$ bsub -n4 -ext SLURMnodes=4 -o output.out ./myscript
How LSF-HPC and Slurm Launch and Manage a Job
#!/bin/sh hostname srun hostname Mpirun -srun ./hellompi
Job Startup and Job Control
Getting Information About LSF Execution Host Node
Determining the LSF Execution Host
Determining Available LSF-HPC System Resources
Getting the Status of LSF-HPC
SLINUX6
Getting Host Load Information
Examining LSF-HPC System Queues
Getting Information About the lsf Partition
$ sinfo -p lsf
Summary of the LSF bsub Command Format
$ sinfo -p lsf -lNe
Bsub-options srun srun-optionsjobname job-options
LSF-SLURM External Scheduler
For information about running scripts
Bsub -n num-procs-ext SLURMslurm-arguments \
Type=SLINUX64
Submitting a Job from a Non-HP XC Host
Starting on lsfhost.localdomain n6
Waiting for dispatch ... Starting on lsfhost.localdomain n1
$ bjobs -l
Getting Information About Jobs
Getting Job Allocation Information
Slurmid=slurmjobidncpus=slurmnprocsslurmalloc=nodelist
$ bjobs
Examining the Status of a Job
$ bhist -l
Time stamp
Jobid User Jobname Pend Psusp RUN Ususp Ssusp Unkwn Total
Viewing the Historical Information for a Job
$ bhist
Summary of time in seconds spent Various States
Translating Slurm and LSF-HPC JOBIDs
$ srun --jobid=150 hostname
Working Interactively Within an LSF-HPC Allocation
$ bsub -I -n4 -ext SLURMnodes=4 /bin/bash
$ bjobs -l 124 grep slurm
$ unset Slurmjobid $ unset Slurmnprocs
$ unset Slurmjobid
Alternatively, you can use the following
$ export SLURMJOBID=150 $ export SLURMNPROCS=4
$ bsub -n4 -ext SLURMnodes=4 -o %J.out sleep
Job 125 is submitted to the default queue normal
LSF-HPC Equivalents of Slurm srun Options
$ srun --jobid=250 uptime
Bsub -iinputfile
Mpi=mpitype
Quit-on-interrupt
Page
Determining IP Address of Your Local Machine
Advanced Topics
Enabling Remote Execution with OpenSSH
Running an X Terminal Session from a Remote Node
Running an X terminal Session Using LSF-HPC
Running an X terminal Session Using Slurm
Logging in to HP XC System
$ srun -n2 hostname n46
Using the GNU Parallel Make Capability
$ bsub -n4 -Ip srun -n1 xterm -display
$ srun -n4 hostname n46
$ cd subdir srun -n1 -N1 $MAKE -j4
$ make PREFIX=’srun -n1 -N1 MAKEJ=-j4
Example Procedure
$ make PREFIX=srun -n1 -N1 MAKEJ=-j4
Local Disks on Compute Nodes
Performance Considerations
Modified Makefile is invoked as follows
Fp = fopen myfile, a+
Communication Between Nodes
Shared File View
Private File View
Page
Examine the LSF execution host information
Appendix a Examples
Building and Running a Serial Application
Launching a Serial Interactive Shell Through LSF-HPC
Running LSF-HPC Jobs with a Slurm Allocation Request
SLURMnodes=2
Launching a Parallel Interactive Shell Through LSF-HPC
Example 2. Four cores on Two Specific Nodes
R15s r1m r15m It tmp swp mem LoadSched LoadStop
$ hostname n16 $ srun hostname n5 $ bjobs
Examine the the running jobs information
124 Lsfad
Display the script
Submitting a Simple Job Script with LSF-HPC
Examine the the finished jobs information
Show the environment
Show the job allocation
Run some commands from the pseudo-terminal
Submitting an Interactive Job with LSF-HPC
Submit the job
View the finished jobs
Submitting an HP-MPI Job with LSF-HPC
Exit the pseudo-terminal
View the interactive jobs
View the finished job
View the running job
Lsfhost.localdomai
States by date and time
Using a Resource Requirements String in an LSF-HPC Command
$ bsub -n 8 -R ALPHA5 SLINUX64 \ -ext SLURMnodes=4-4 myjob
108
Glossary
Are not appropriate for replication
To the queue
First-come See Fcfs First-served Global storage
As local storage
LSF master host
Single command
Login requests and directs them to a node with a login role
Linux Virtual See LVS Server Load file
Slurm backup
Network See NIS Information Services
Remotely. PXE booting is configured at the Bios level
Notably to install and remove software packages
Ssh
Power available per unit of space
Symmetric See SMP Multiprocessing
114
Index
Index
PGI
Utilities, 63 Slurm commands
Related pages
Can I adjust the automatic power down timing?
Adjust power down settings
Top
Page
Image
Contents