Programming Environment on Ranger Cluster

Similar documents
Programming Environment on Ranger Cluster

Submit a Job. Want to run a batch script: #!/bin/sh echo Starting job date /usr/bin/time./hello date echo Ending job. qsub A HPC job.

Programming Environment on Ranger Cluster

Programming Environment

Actually,.soft doesn t work correctly on bigred, rather, you need to edit your.bashrc:

Linux User Environment. Robert McLay

Programming Environment

Hybrid Computing Lab

Introduction to GALILEO

A Hands-On Tutorial: RNA Sequencing Using High-Performance Computing

Lab: Hybrid Programming and NUMA Control

Quick Start Guide. by Burak Himmetoglu. Supercomputing Consultant. Enterprise Technology Services & Center for Scientific Computing

UoW HPC Quick Start. Information Technology Services University of Wollongong. ( Last updated on October 10, 2011)

Wednesday, August 10, 11. The Texas Advanced Computing Center Michael B. Gonzales, Ph.D. Program Director, Computational Biology

Using the IBM Opteron 1350 at OSC. October 19-20, 2010

Lab: Hybrid Programming and NUMA Control

Introduction to PICO Parallel & Production Enviroment

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs

New User Tutorial. OSU High Performance Computing Center

Effective Use of CCV Resources

High Performance Computing (HPC) Club Training Session. Xinsheng (Shawn) Qin

OpenMP Exercises. These exercises will introduce you to using OpenMP for parallel programming. There are four exercises:

Advanced Visualization Techniques

KISTI TACHYON2 SYSTEM Quick User Guide

Introduction to CINECA Computer Environment

Introduction to GALILEO

The cluster system. Introduction 22th February Jan Saalbach Scientific Computing Group

Intel Manycore Testing Lab (MTL) - Linux Getting Started Guide

Using the MaRC2 HPC Cluster

Introduction to Unix Environment: modules, job scripts, PBS. N. Spallanzani (CINECA)

Introduction to the SHARCNET Environment May-25 Pre-(summer)school webinar Speaker: Alex Razoumov University of Ontario Institute of Technology

CSE Linux VM. For Microsoft Windows. Based on opensuse Leap 42.2

Programming Environment

XSEDE New User Tutorial

Lab 1 Introduction to UNIX and C

Cluster Clonetroop: HowTo 2014

National Biochemical Computational Research Familiarize yourself with the account policy

Image Sharpening. Practical Introduction to HPC Exercise. Instructions for Cirrus Tier-2 System

Quick Start Guide. by Burak Himmetoglu. Supercomputing Consultant. Enterprise Technology Services & Center for Scientific Computing

Beginner's Guide for UK IBM systems

Stampede User Environment

Using the computational resources at the GACRC

Sharpen Exercise: Using HPC resources and running parallel applications

A Brief Introduction to The Center for Advanced Computing

Ambiente CINECA: moduli, job scripts, PBS. A. Grottesi (CINECA)

Before We Start. Sign in hpcxx account slips Windows Users: Download PuTTY. Google PuTTY First result Save putty.exe to Desktop

Cluster User Training

High Performance Computing (HPC) Using zcluster at GACRC

Introduction to the NCAR HPC Systems. 25 May 2018 Consulting Services Group Brian Vanderwende

Joint High Performance Computing Exchange (JHPCE) Cluster Orientation.

Kohinoor queuing document

ACEnet for CS6702 Ross Dickson, Computational Research Consultant 29 Sep 2009

Introduction to GALILEO

XSEDE New User Training. Ritu Arora November 14, 2014

Sharpen Exercise: Using HPC resources and running parallel applications

Shark Cluster Overview

SGE Roll: Users Guide. Version Edition

Getting Started with XSEDE. Dan Stanzione

Introduction to HPC Using zcluster at GACRC

Lecture # 2 Introduction to UNIX (Part 2)

Computational Skills Primer. Lecture 2

Introduction to HPC Using zcluster at GACRC

To remotely use the tools in the CADE lab, do the following:

Introduction to Joker Cyber Infrastructure Architecture Team CIA.NMSU.EDU

Exercise 1: Basic Tools

Shark Cluster Overview

HPC Introductory Course - Exercises

A Brief Introduction to The Center for Advanced Computing

HPC Workshop. Nov. 9, 2018 James Coyle, PhD Dir. Of High Perf. Computing

XSEDE New User Tutorial

Name Department/Research Area Have you used the Linux command line?

Lab #1 Installing a System Due Friday, September 6, 2002

Using Sapelo2 Cluster at the GACRC

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Practical: a sample code

Introduction to HPC Using zcluster at GACRC

NBIC TechTrack PBS Tutorial

Unix Workshop Aug 2014

User Guide of High Performance Computing Cluster in School of Physics

A Brief Introduction to The Center for Advanced Computing

Supercomputing environment TMA4280 Introduction to Supercomputing

Computing with the Moore Cluster

XSEDE New User Tutorial

Introduction to HPC Using zcluster at GACRC On-Class GENE 4220

Using Cartesius and Lisa. Zheng Meyer-Zhao - Consultant Clustercomputing

Guillimin HPC Users Meeting April 13, 2017

HPC system startup manual (version 1.20)

Introduction to Discovery.

Quick Guide for the Torque Cluster Manager

(7) Get the total energy from the output (1 Hartree = kcal/mol) and label the structure with the energy.

Introduction to High Performance Computing at UEA. Chris Collins Head of Research and Specialist Computing ITCS

Please choose the best answer. More than one answer might be true, but choose the one that is best.

Sunday, February 19, 12

New User Seminar: Part 2 (best practices)

Managing terminal sessions with screen. R. Bader (LRZ) G. Hager (RRZE) V. Weinberg (LRZ)

Introduction to the Linux for HPC. Basic Linux for Beginner HPC Users

OBTAINING AN ACCOUNT:

Introduction to Cuda Visualization. Graphical Application Tunnelling on Palmetto

Introduction to Discovery.

Transcription:

Programming Environment on Ranger Cluster Cornell Center for Advanced Computing December 8, 2010 12/8/2010 www.cac.cornell.edu 1

User Guides TACC Ranger (http://services.tacc.utexas.edu/index.php/ranger-user-guide) Spur (http://services.tacc.utexas.edu/index.php/spur-user-guide) CAC Linux (http://www.cac.cornell.edu/wiki/index.php?title=v4_linux_cluster) Windows (http://www.cac.cornell.edu/wiki/index.php?title=v4_windows_cluster) Tutorials Beginners Unix (http://info.ee.surrey.ac.uk/teaching/unix/) 12/8/2010 www.cac.cornell.edu 2

Just Like Your Computer Scheduler SSH to Head Node Head Node 12/8/2010 www.cac.cornell.edu 3 3

Password Change Change your TACC password (for your workshop account) https://tas.tacc.utexas.edu/tasmigration/changetaspassword.aspx Change your TeraGrid password (if you get a TeraGrid account) https://www.teragrid.org/web/user-support/passwords 12/8/2010 www.cac.cornell.edu 4

SSH Clients Windows: Putty Linux: built-in as ssh Mac: built-in as ssh Login now to ranger.tacc.utexas.edu: ssh train1xx@ranger.tacc.utexas.edu -orputty Host Name: ranger.tacc.utexas.edu 12/8/2010 www.cac.cornell.edu 5

Account Info Find your account number at bottom of splash screen. --------------------- Project balances for user train100 ---------------------- Name Avail SUs Expires 20101208HPC 5000 2010-12-16 ------------------------ Disk quotas for user train100 ------------------------ Disk Usage (GB) Limit %Used File Usage Limit %Used /share 0.0 6 0.00 47 100000 0.05 /work 0.0 350 0.00 1 2000000 0.00 ------------------------------------------------------------------------------- 12/8/2010 www.cac.cornell.edu 6

Experiment echo $SHELL chsh l man chsh env (show environment variables persists) set (show shell variables current shell only) pwd ls la cat.login cat /usr/local/etc/login cat.login_user (create then edit this one to personalize) 12/8/2010 www.cac.cornell.edu 7

Un-TAR Lab Files TAR = Tape archive. Just concatenates files. tar <switches> <files> z = compress or decompress x = extract c = create v = verbose t = list files f = next argument is the file to read or write Get the lab files: tar zxvf ~train103/envi.tgz ~userid is the home directory of that user For example, to create a tar: tar cvf myfiles.tar dir1 dir2 README 12/8/2010 www.cac.cornell.edu 8

Software Software section in User Guide Software list available on Ranger The module utility is used to provide a consistent, uniform method to access software. 12/8/2010 www.cac.cornell.edu 9

MODULE Command (Ranger-only) Affects $PATH, $MANPATH, $LIBPATH Load specific versions of libraries/executables Works in your batch file Define environment variables: TACC_MKL_LIB, TACC_MKL_INC, TACC_GOTOBLAS_LIB 12/8/2010 www.cac.cornell.edu 10

Try MODULE module module list module help < module_name > module load < module_name > module avail module load intel # note the response module swap pgi intel # so delete pgi module load fftw2 module del fftw2 Order matters! Unload MPI, then choose a compiler, then load the MPI version. 12/8/2010 www.cac.cornell.edu 11

MODULE Examples login4% module list Currently Loaded Modules: 1) TACC-paths 9) srb-client/3.4.1 17) globus/4.0.8 2) Linux 10) tg-policy/0.2 18) GLOBUS-4.0 3) cluster-paths 11) tgproxy/0.9.1 19) TERAGRID-DEV 4) pgi/7.2-5 12) tgresid/2.3.4 20) CTSSV4 5) mvapich/1.0.1 13) tgusage/3.0 21) gzip/1.3.12 6) binutils-amd/070220 14) uberftp/2.6 22) tar/1.22 7) TERAGRID-paths 15) tginfo/1.0.1 23) cluster 8) gx-map/0.5.3.3 16) TERAGRID-BASIC 24) TACC login4% module avail ---------------------- /opt/apps/pgi7_2/modulefiles ---------------------- acml/4.1.0 hecura/1.5.1 autodock/4.0.1 metis/4.0 fftw3/3.1.2 mvapich-old/1.0.1 glpk/4.40 mvapich/1.0.1 gotoblas/1.26 (default) mvapich2-debug/1.2 gotoblas/1.30 mvapich2-new/1.2 gotoblas2/1.00 mvapich2/1.2 gotoblas2/1.05 (default) nco/3.9.5 hdf5/1.6.5 netcdf/3.6.2 hecura-debug/1.5rc2 12/8/2010 openmpi/1.3 www.cac.cornell.edu 12

Now Swap Compilers Swap compilers and look again: login4% module swap pgi intel login4% module avail ------------------------- /opt/apps/intel10_1/modulefiles ---------------- acml/4.1.0 hecura-debug/1.5rc2 mvapich/1.0 autodock/4.0.1 hecura/0.1 mvapich/1.0.1 (default) boost/1.37.0 hecura/1.4 mvapich2-new/1.2 boost/1.39.0 hecura/1.4rc2 mvapich2/1.2 boost/1.41.0 (default) hecura/1.5 (default) nco/3.9.5 fftw3/3.1.2 hecura/1.5rc2 netcdf/3.6.2 glpk/4.40 hecura/trunk_2009_09_20 octave/3.2.4 gotoblas/1.26 (default) hmmer/2.3.2 openmpi/1.2.4 gotoblas/1.30 metis/4.0 openmpi/1.2.6 gotoblas2/1.00 mvapich-devel/1.0 openmpi/1.3 (default) gotoblas2/1.05 (default) mvapich-old/1.0.1 hdf5/1.6.5 mvapich-ud/1.0 12/8/2010 www.cac.cornell.edu 13

Two Time Commands Use time or /usr/bin/time to see how long your program runs and estimate if it s having gross difficulties /usr/bin/time generally gives more information make time./hello /usr/bin/time./hello 12/8/2010 www.cac.cornell.edu 14

Submit a Job 1. Write a script #!/bin/sh echo Starting job date /usr/bin/time./hello date echo Ending job 3. Submit it to the scheduler qsub A 20101208HPC job.sge 2. Add batch instructions #!/bin/sh #$ -N hello #$ -cwd #$ -o $JOB_NAME.o$JOB_ID #$ -j y #$ -q development #$ -pe 1way 16 #$ -V #$ -l h_rt=00:2:00 echo Starting job date /usr/bin/time./hello date echo Ending job 12/8/2010 www.cac.cornell.edu 15

How Are the Queues? qconf sql # List available queues qconf sq <queue name> # Soft and hard wall clock limits cat /share/sge6.2/default/tacc/sge_esub_control # Queue core limit showq showq u qdel or qdel f # Delete job 12/8/2010 www.cac.cornell.edu 16

Queue Examples login3% qconf -sql clean development large long normal request qname reservation qtype serial pe_list sysdebug systest tmpdir vis shell prolog epilog Slots = number of cores, 16 per node pe = wayness, how many cores per node Job is killed if over time limit. login3% qconf -sq development development BATCH INTERACTIVE 16way 15way 14way 12way 8way 4way 2way 1way slots 16 Why 15way? /tmp /bin/csh /share/sge/default/pe_scripts/prologwrapper /share/sge/default/pe_scripts/tacc_epilog_n shell_start_mode unix_behavior s_rt 07:58:00 h_rt 08:00:00 12/8/2010 www.cac.cornell.edu 17

States Unscheduled Likely not good DepWait You can ask that one job run after another finishes. w(aiting) Queued, waiting for resources to run. r(unning) As far as SGE is concerned, it s going. h(old) s(uspended) E(rror) d(eletion) 12/8/2010 www.cac.cornell.edu 18

Submit a Job Example cat makefile # Review the makefile make # Compile hello.c ls la # Take a look at what compiled./hello # Run compiled program less job.sge # View the script qsub A 20101208HPC job.sge # Submit the job showq u # Check job status less hello.onnn # Look at the output file env sort > z.txt # Save login env vars to file diff z.txt hello.oxxx less # Compare login vs batch env vars 12/8/2010 www.cac.cornell.edu 19

Environment Variables in Batch > ENVIRONMENT=BATCH > HOSTNAME=i182-401.ranger.tacc.utexas.edu > JOB_ID=743637 > JOB_NAME=hello > JOB_SCRIPT=/share/sge6.2/execd_spool//i115-306/job_scripts/1715044 > NHOSTS=1 > NQUEUES=1 > NSLOTS=16 > OMP_NUM_THREADS=1 > PE=1way > PE_HOSTFILE=/share/sge6.2/execd_spool//i115-306/active_jobs/1715044.1/pe_hostfile > QUEUE=development > SGE_ACCOUNT=20101208HPC > SGE_O_SHELL=/bin/tcsh > SGE_O_WORKDIR=/share/home/0000/train135 > SGE_ROOT=/opt/sge6.2 > SGE_RSH_COMMAND=/usr/bin/ssh -q > SGE_STDERR_PATH=/share/home/0000/train135/hello.o1715044 > SGE_STDIN_PATH=/dev/null > SGE_STDOUT_PATH=/share/home/0000/train135/hello.o1715044 12/8/2010 www.cac.cornell.edu 20

Parallel Environment Each node has 16 cores and is used by one person at a time #$ -pe 1way 16 Run one task on a node with 16 cores #$ -q serial./hello #$ -pe 8way 64 Run 8 tasks/node on 4 nodes #$ -q normal export MY_NSLOTS=31 Launch 31 tasks Ibrun./a.out Run with mpi wrapper 12/8/2010 www.cac.cornell.edu 21

To Edit A File in VI (short for visual ) vi filename will open it or create it if it doesn t exist. Command mode and Insert mode. You start in command mode. Command mode. Cursors work here, too. :w Writes a file to disk. :q Quits :q! Quits even if there are changes to a file i Takes you to insert mode Insert Mode Cursors, typing characters, and deleting work here. Escape key takes you to command mode. Ctrl-c will get you nowhere. 12/8/2010 www.cac.cornell.edu 22

X-Windows Start X-Windows server on local machine. Localh ost:0 ssh -X >echo $DISPLAY localhost:39.0 >emacs README& Localhost:39.0 >jobs >kill %1 12/8/2010 www.cac.cornell.edu 23

Login with X-Windows Start Exceed->Exceed on Windows Startup menu (Already started on Mac and Linux) ssh X on Linux, Mac. For Windows, select in Putty Connection->SSH->X11, and check X11 Forwarding Type in username and password. echo $DISPLAY emacs README& # This runs emacs in the background. At the command prompt, type jobs to see that you have a backgrounded job. Try Emacs for a while, then kill it with kill %1 12/8/2010 www.cac.cornell.edu 24

VNC VNCServer used to start a VNC (Virtual Network Computing) desktop. a Perl script which simplifies the process of starting an Xvnc server. can be run with no options at all. In this case it will choose the first available display number VNCServer copies a bitmap of the X-Windows screen across. Can be much less chatty than X-Windows. Good for remote graphics. VNCServer screen 4 uses TCP/IP port 5904. 12/8/2010 www.cac.cornell.edu 25

Connect with VNC Start VNC on Ranger First ssh normally. Type vncserver and look for screen number, for example. 4. Connect with a client RealVNC or TightVNC on Windows On Linux, vinagre or vncviewer Connect to ranger.tacc.utexas.edu:4 or your port number Be sure to kill it when you are done vncserver kill 4 12/8/2010 www.cac.cornell.edu 26

VNCServer example login3% vncserver New 'login3.ranger.tacc.utexas.edu:1 (train200)' desktop is login3.ranger.tacc.utexas.edu:1 Starting applications specified in /share/home/0002/train200/.vnc/xstartup Log file is /share/home/0002/train200/.vnc/login3.ranger.tacc.utexas.edu:1.log login3% vncserver -kill :1 Killing Xvnc process ID 11406 12/8/2010 www.cac.cornell.edu 27

Questions? 12/8/2010 www.cac.cornell.edu 28