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

Similar documents
Introduction to HPC Resources and Linux

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

New User Tutorial. OSU High Performance Computing Center

Introduction to High Performance Computing Using Sapelo2 at GACRC

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

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

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

For Dr Landau s PHYS8602 course

Minnesota Supercomputing Institute Regents of the University of Minnesota. All rights reserved.

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

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

UF Research Computing: Overview and Running STATA

Logging in to the CRAY

Migrating from Zcluster to Sapelo

Using Sapelo2 Cluster at the GACRC

Exercise 1: Connecting to BW using ssh: NOTE: $ = command starts here, =means one space between words/characters.

Introduction to GALILEO

NBIC TechTrack PBS Tutorial

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

Introduction to Discovery.

Computing with the Moore Cluster

An Introduction to Cluster Computing Using Newton

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

CS CS Tutorial 2 2 Winter 2018

Working on the NewRiver Cluster

Using ISMLL Cluster. Tutorial Lec 5. Mohsan Jameel, Information Systems and Machine Learning Lab, University of Hildesheim

PARALLEL COMPUTING IN R USING WESTGRID CLUSTERS STATGEN GROUP MEETING 10/30/2017

ICS-ACI System Basics

Introduction to Linux. Fundamentals of Computer Science

Introduction to Linux and Supercomputers

Please include the following sentence in any works using center resources.

Using the computational resources at the GACRC

NBIC TechTrack PBS Tutorial. by Marcel Kempenaar, NBIC Bioinformatics Research Support group, University Medical Center Groningen

Introduction to parallel computing

Introduction to Discovery.

Introduction to the Linux Command Line

Session 1: Accessing MUGrid and Command Line Basics

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011

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

A Brief Introduction to The Center for Advanced Computing

Introduction to Computing V - Linux and High-Performance Computing

GPU Cluster Usage Tutorial

High Performance Computing (HPC) Using zcluster at GACRC

Introduction to PICO Parallel & Production Enviroment

User Guide Version 2.0

Batch Systems. Running calculations on HPC resources

A Brief Introduction to The Center for Advanced Computing

A Brief Introduction to The Center for Advanced Computing

CS 261 Recitation 1 Compiling C on UNIX

Datathon 2018 Connecting to MicroStrategy on AWS Cloud

Getting started with the CEES Grid

Introduction to HPCC at MSU

Introduction to Cuda Visualization. Graphical Application Tunnelling on Palmetto

SUBMITTING JOBS TO ARTEMIS FROM MATLAB

Introduction to Discovery.

HPC Introductory Course - Exercises

Introduction to HPC at MSU

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

Supercomputing environment TMA4280 Introduction to Supercomputing

AMS 200: Working on Linux/Unix Machines

Using the Yale HPC Clusters

Introduction to HPC Using zcluster at GACRC

How to run applications on Aziz supercomputer. Mohammad Rafi System Administrator Fujitsu Technology Solutions

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

Introduction to HPC Using the New Cluster at GACRC

Parallel Programming Pre-Assignment. Setting up the Software Environment

Introduction to GACRC Teaching Cluster

Galaxy How To Remote Desktop Connection and SSH

Crash Course in High Performance Computing

Introduction to HPC Using zcluster at GACRC

Introduction to GACRC Teaching Cluster PHYS8602

Data transfer and RDS for HPC

Introduction to GALILEO

Introduction to Linux Environment. Yun-Wen Chen

Linux hep.wisc.edu

Introduction to GACRC Teaching Cluster

Basic UNIX commands. HORT Lab 2 Instructor: Kranthi Varala

Using the Yale HPC Clusters

Emile R. Chimusa Division of Human Genetics Department of Pathology University of Cape Town

Introduction to Linux and Cluster Computing Environments for Bioinformatics

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

Linux Tutorial. Ken-ichi Nomura. 3 rd Magics Materials Software Workshop. Gaithersburg Marriott Washingtonian Center November 11-13, 2018

CENTER FOR HIGH PERFORMANCE COMPUTING. Overview of CHPC. Martin Čuma, PhD. Center for High Performance Computing

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

HPC system startup manual (version 1.20)

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

Using ITaP clusters for large scale statistical analysis with R. Doug Crabill Purdue University

Using CLC Genomics Workbench on Turing

Access: bwunicluster, bwforcluster, ForHLR

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

Carnegie Mellon. Linux Boot Camp. Jack, Matthew, Nishad, Stanley 6 Sep 2016

High Performance Computing Cluster Basic course

Sharpen Exercise: Using HPC resources and running parallel applications

Our Workshop Environment

STA 303 / 1002 Using SAS on CQUEST

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

You should see something like this, called the prompt :

Introduction: What is Unix?

Shark Cluster Overview

Lab 1: Introduction to C, ASCII ART & the Linux Command Line

Transcription:

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

Outline HPC Club The Hyak Supercomputer Logging in to Hyak Basic Linux Commands Transferring Files Between Your PC and Hyak Submitting Your Jobs

HPC Club High Performance Computing Club (HPCC): http://students.washington.edu/hpcc/ As a club member, you can have access to thousands of CPU cores on UW Hyak supercomputer Become a member: http://students.washington.edu/hpcc/getting-started-on-hyak/

Hyak Overview A typical node has 16 processor cores and 128GB of memory All the nodes run CentOS 6 Linux ~10000 cores in total Club members have access to 1028 cores Node types Computing nodes Login nodes Submitting jobs Transferring files

Logging in to Hyak This is essentially remote-accessing a Linux System via SSH protocol Need a SSH client program Linux & Mac: just open a terminal Mac: application->utilities->terminal Ubuntu: Search for terminal in your applications usage:ssh [options] user@ip-address e.g ssh xsqin@ikt.hyak.uw.edu ssh xsqin@americano.amath.washington.edu ssh shawn@128.95.220.141 Then enter your password and PRN from your token Windows: putty Download: http://www.putty.org/ More info here: http://wiki.cac.washington.edu/display/hyakusers/logging+in

Logging in to Hyak - Linux and Mac OS 1. Replace xsqin with your netid: 2. Enter Password 3. If you have a E-token at hand, follow its instruction and get an 8-digit number. That s your passcode to use here. Or if you have Duo as 2FA, confirm on your cell phone. (More info here:https://itconnect.uw.edu/security/uw-netids/2fa/)

Logging in to Hyak - Windows putty Enter Host Name and Port number. Then click Open A terminal should pop out after you successfully log in.

Logging in to Hyak If you see something like this in your terminal, you are on Hyak. Note that the prompt should look like netid@ikt1, where ikt is the name of the cluster.

Basic Linux Commands Show current directory: pwd $HOME directory Show contents in current directory: ls [options] change current directory: cd + [path] cd absolute_path cd relative_path Create a new folder: mkdir folder_name Remove a file/folder: rm [options] Rename a file/folder: mv old_name new_name

Managing Your Files Transfer files from your local desktop to the server Linux & Mac: SCP Usage: scp [options] <source directory> <target directory> Windows: WinSCP Download: https://winscp.net/eng/download.php

Managing Your Files - Linux and Mac OS Note that these all these commands should be executed on the remote host (with something like xsqin@dell-inspiron as your terminal prompt, NOT something like xsqin@ikt1): Upload files to Hyak: $ scp filename user@ikt.hyak.uw.edu:path/to/destination/directory Download files from Hyak to current directory on your machine: $ scp user@hyak.washington.edu:path/to/file./ Reference: http://wiki.cac.washington.edu/display/hyakusers/managing+your+files#managi ngyourfiles-transferringfilesinandoutofhyak Examples

Managing Your Files - Windows

Managing Your Files - Windows Simply drag files from left to right (upload) or from right to left (download).

Submitting Your Jobs Two types of node: login node: for submitting jobs and transferring files. Don t execute heavy tasks (command) on it. computing node: where your jobs are running Using qsub to submit your jobs qsub [options] command-for-running-your-job e.g. qsub -l walltime=2:00:00 -I -V matlab compute_norm.m Sometimes the options and command-for-running your jobs a we need: PBS (Portable Batch System) Jobscripts, which: contains instructions for the scheduler can set up the work environment execute your program Reference: http://wiki.cac.washington.edu/display/hyakusers/hyak+job+scheduler#hy akjobscheduler-importantinformation

Submitting Your Jobs - Hello-world Example All these code can be accessed at: https://github.com/xinshengqin/hpcc_training_session/tree/master/hello_world 1. Suppose we create a working directory at $HOME/hello_world on Hyak 2. Let s write a simple hello-world C code, called test.c in this directory:

Submitting Your Jobs - Hello-world Example 3. We can compile this code to executable with: xsqin@ikt1$ c++ test.c -o test (Note that we should never compile a big project in this way since we are on login node) 4. If we type $./test this should print out Hello world! to the standard output. (You can do this here since it s just a tiny program) 5. To execute this program in a submit-job way, we need to create another file as Jobscripts in the same directory. Let s call it run.sh

Submitting Your Jobs - Hello-world Example run.sh

Submitting Your Jobs - Hello-world Example 6. A line starting with ## is comment. 7. A line starting with # is instruction for the scheduler. 7. There are at least two lines you need to change: #PBS -o /usr/lusers/xsqin/hello_world #PBS -d /usr/lusers/xsqin/hello_world Change these to the path of current directory. You will at least need to change them to /usr/lusers/your_netid/hello_world 8. Submit your job by passing the name of this jobscript to qsub: xsqin@ikt1$ qsub run.sh

Submitting Your Jobs - Hello-world Example 9. You should then see something like: 10. 5866785 is ID of this job. It can be used to query the status of the job. 11. If the job successfully finished, you should see a new file named hello_world.o5866785 in current directory. All output of the program are put in this file. In this case, you should see Hello world! in it.

Managing Jobs in Your Queues Check the status of your job checkjob <job_id> qstat -f <job_id> Queue Status showq -w qos=<your_group> showq -w user=<your_netid> e.g. showq -w qos=stf To cancel a job mjobctl -c <job_id> qdel <job_id> More info here: http://wiki.cac.washington.edu/display/hyakusers/hyak+job+scheduler#hyakjo bscheduler-managingjobsinyourqueues