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