College of Engineering

Slides:



Advertisements
Similar presentations
Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
HCC Workshop Department of Earth and Atmospheric Sciences September 23/30, 2014.
Lab6 CPCS361 I.Mona Alshehri. Working with Files and Directories Creating files Create a file with the cat command type the command cat > name_of_file.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Guide To UNIX Using Linux Third Edition
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
Linux Commands LINUX COMMANDS.
Introduction to UNIX/Linux Exercises Dan Stanzione.
MCB Lecture #3 Sept 2/14 Intro to UNIX terminal.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
HCC Workshop August 29, Introduction to LINUX ●Operating system like Windows or OS X (but different) ●OS used by HCC ●Means of communicating with.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
Dedan Githae, BecA-ILRI Hub Introduction to Linux / UNIX OS MARI eBioKit Workshop; Nov , 2014.
HPC at HCC Jun Wang Outline of Workshop1 Overview of HPC Computing Resources at HCC How to obtain an account at HCC How to login a Linux cluster at HCC.
Linux Operations and Administration
CCPR Workshop Introduction to the Cluster July 13, 2006.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU Usage of Workstation Lecturer: Yu-Hao( 陳郁豪 ) Date:
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Introduction To UNIX. FAQReferencesSummaryInfo Resources Introduction Learning Objectives Log on User Interface Commands List of Commands Useful Info.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Linux Commands C151 Multi-User Operating Systems.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
Embedded Software Design Week II Linux Intro Linux Kernel.
Learning Unix/Linux Based on slides from: Eric Bishop.
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU Usage of Workstation Lecturer: Yu-Hao( 陳郁豪 ) Date:
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Advanced Computing Facility Introduction
Linux & Joker – An Introduction
Interacting with the cluster ssh, sftp, & slurm batch scripts
Carrie Brown, Adam Carpez, Emelie Harstad, Tom Harvill
GRID COMPUTING.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
A “Quick-Start” into the UNIX Operating System
Welcome to Indiana University Clusters
EE516: Embedded Software Project 1
Assumptions What are the prerequisites? … The hands on portion of the workshop will be on the command-line. If you are not familiar with the command.
Getting started with CentOS Linux
Chapter 11 Command-Line Master Class
Navigating the Filing System
Prepared by: Eng. Maryam Adel Abdel-Hady
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
C151 Multi-User Operating Systems
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
Hodor HPC Cluster LON MNG HPN Head Node Comp Node Comp Node Comp Node
Shell Script Assignment 1.
Assignment Preliminaries
Introduction to Linux and Supercomputers
Linux + Galaxy Server Tutorial
CCR Advanced Seminar: Running CPLEX Computations on the ISE Cluster
Chapter Four UNIX File Processing.
High Performance Computing in Bioinformatics
Getting started with CentOS Linux
CSE 303 Concepts and Tools for Software Development
Linux Commands LINUX COMMANDS.
Working in The IITJ HPC System
Maxwell Compute Cluster
Presentation transcript:

College of Engineering HCC Workshop College of Engineering October 10th, 2014

Introduction to LINUX Operating system like Windows or OS X (but different) OS used by HCC Means of communicating with computer Command Line Interface (instead of GUI)

The Terminal Window After logging in to your account, commands are entered in a terminal window: You are here Working in LINUX, you are always located somewhere in your directory tree. Most common commands: navigating within directory tree, creating, editing, moving and removing files and directories.

Getting Started - Logging in Quick start guide for Windows Quick start guide for Mac/Linux

Your Directories on HCC Computers Home Directory - smaller space than work (quota limited by group) /home/<group>/<userid> or just $HOME Use for: program binaries, source code, configuration files, etc. Work Directory - not backed up /work/<group>/<userid> or just $WORK Use for: temporary scratch space (not long-term storage) I/O for running jobs Your directories are not shared/mounted across all HCC clusters (ie. Tusker and Crane have separate file systems.) “print working directory” “change directory”

Other commands to cover Move/rename files: mv Example: mv oldname newname Copy files: cp Example: cp myfile myfilecopy Change the current directory: cd Example: cd mydirectory See contents of the directory: ls See directory contents with more details: ls -l Print working directory: pwd Print file to screen: more Example: more myfile Merging multiple files: cat Example: cat file1 file2 > combinedfile Create empty file: touch Example: touch newfile Search a string in a file: grep Example: grep mystring myfile Compress & decompress files: tar, zip, gzip Remove files: rm Example: rm filetodelete Remove entire directory: rm -rf Example: rm -rf directorytodelete See more at: http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html Exercise: Using commands on the left: 1. Create a directory named “mydir”. 2. Change into the directory, created a file named “myfile”. 3. Delete “myfile” and “mydir”.

Basic exercise - create directory/file

One editor : nano or any other you prefer Start nano by running ‘nano’. Save: Control + o Exit: Control + x

Exercise - Create submit script #!/bin/sh #SBATCH --time=00:05:00 #SBATCH --job-name=helloworld #SBATCH --error=helloworld.%J.err #SBATCH --output=helloworld.%J.out #SBATCH --qos=short echo “this is my first slurm job” sleep 30 Using nano, create the text file to the right. Save it as ‘helloworld.submit’. We will submit it to SLURM later.

Cluster Basics Every job must be run through a scheduler: Submitting Jobs using SLURM Software is managed through the module software: Using Module Every user has two directories to use: Where to Put Data

SLURM (Simple Linux Utility for Resource Management) Define the job name #SBATCH --job-name=MY_Test_Job Emails for job notification #SBATCH --mail-user=my@mail.com #SBATCH --mail-type=ALL # (ALL = BEGIN, END, FAIL, REQUEUE) Requested run time #SBATCH --time=7-0 # Acceptable time formats include "minutes", "minutes:seconds", "hours:minutes:seconds", "days-hours", "days-hours:minutes" and "days-hours:minutes:seconds" Requested number of cores #SBATCH --ntasks=16 or #SBATCH --nodes=2 #SBATCH --ntasks-per-node=16

Request memory for your job #SBATCH --mem-per-cpu=128 # Set the memory requirements for the job in MB. Your job will be allocated exclusive access to that amount of RAM. In the case it overuses that amount, Slurm will kill it. Set a pattern for the output file #SBATCH --output=<filename pattern> # The filename pattern may contain one or more replacement symbols, which are a percent sign "%" followed by a letter (e.g. %J). # Supported replacement symbols are: %J Job allocation number. %N Main node name. Submit an interactive job Submitting an interactive job is done with the command srun. $ srun --pty $SHELL or to allocate 4 cores per node: $ srun --nodes=1 --ntasks-per-node=4 --mem-per-cpu=1024 --pty $SHELL

Exercise - Submit hello world job

Exercise - Submit MATLAB Job Invert a large (104 x 104) random square matrix Using only 1 compute core Using 10 cores Compare times Use a Job Array to invert 5 (or more!) matrices at once

Exercise - Submit MATLAB Job Copy demo files to $WORK Examine contents of Matlab and Slurm scripts. Submit first job. Monitor job. Edit Slurm submit script (change # tasks) and re-submit. Compare output files (can also use ‘cat’ or ‘tail’). Examine submit script for job array and then submit. Examine job array output.

Globus Connect Use Globus Connect to: Transfer files between HCC clusters (Tusker, Crane, & Sandhills) Transfer files between your laptop/pc and HCC clusters Share files with colleagues

Globus Connect Getting Started: (HCC-DOCS full instructions) Sign up for a Globus account Install Globus Connect Personal on your computer Activate HCC endpoint(s): hcc#tusker, hcc#crane, hcc#sandhills Log in to Globus account (online) and start making transfers Important: /home is read-only via Globus Connect (transfer from /home, but not to /home). /work is readable/writable via Globus Connect (can transfer files to and from /work).

Exercise: Transfer files with Globus Option 1: Transfer file with Globus Download example query file to your laptop: matlab_demo.tar.gz Transfer file from your laptop to your Crane work directory using Globus Unpack the tar archive on Crane: cd $WORK tar -xzf matlab_demo.tar.gz