To connect to the cluster, simply use a SSH or SFTP client to connect to:



Similar documents
HPCC - Hrothgar Getting Started User Guide MPI Programming

High performance computing systems. Lab 1

The Asterope compute cluster

Introduction to Running Computations on the High Performance Clusters at the Center for Computational Research

Lecture 6: Introduction to MPI programming. Lecture 6: Introduction to MPI programming p. 1

Lightning Introduction to MPI Programming

Matlab on a Supercomputer

Session 2: MUST. Correctness Checking

SLURM Workload Manager

Introduction to Running Hadoop on the High Performance Clusters at the Center for Computational Research

Parallelization: Binary Tree Traversal

Agenda. Using HPC Wales 2

An introduction to Fyrkat

Load Balancing. computing a file with grayscales. granularity considerations static work load assignment with MPI

Grid 101. Grid 101. Josh Hegie.

Introduction to parallel computing and UPPMAX

Introduction to Supercomputing with Janus

RA MPI Compilers Debuggers Profiling. March 25, 2009

LOAD BALANCING DISTRIBUTED OPERATING SYSTEMS, SCALABILITY, SS Hermann Härtig

1.0. User Manual For HPC Cluster at GIKI. Volume. Ghulam Ishaq Khan Institute of Engineering Sciences & Technology

NEC HPC-Linux-Cluster

MPI Application Development Using the Analysis Tool MARMOT

Streamline Computing Linux Cluster User Training. ( Nottingham University)

An Introduction to High Performance Computing in the Department

SLURM: Resource Management and Job Scheduling Software. Advanced Computing Center for Research and Education

CNAG User s Guide. Barcelona Supercomputing Center Copyright c 2015 BSC-CNS December 18, Introduction 2

An introduction to compute resources in Biostatistics. Chris Scheller

Grid Engine Basics. Table of Contents. Grid Engine Basics Version 1. (Formerly: Sun Grid Engine)

Introduction to Linux and Cluster Basics for the CCR General Computing Cluster

Miami University RedHawk Cluster Connecting to the Cluster Using Windows

Submitting batch jobs Slurm on ecgate. Xavi Abellan User Support Section

Until now: tl;dr: - submit a job to the scheduler

Hodor and Bran - Job Scheduling and PBS Scripts

Getting Started with HPC

R and High-Performance Computing

Introduction to grid technologies, parallel and cloud computing. Alaa Osama Allam Saida Saad Mohamed Mohamed Ibrahim Gaber

SLURM: Resource Management and Job Scheduling Software. Advanced Computing Center for Research and Education

Parallel Processing using the LOTUS cluster

PBS Tutorial. Fangrui Ma Universit of Nebraska-Lincoln. October 26th, 2007

Manual for using Super Computing Resources

Windows HPC 2008 Cluster Launch

User s Manual

16 node Linux cluster at SCFBio

Parallel Programming with MPI on the Odyssey Cluster

Introduction to Cloud Computing

Cloud Bursting with SLURM and Bright Cluster Manager. Martijn de Vries CTO

SSH Connections MACs the MAC XTerm application can be used to create an ssh connection, no utility is needed.

The RWTH Compute Cluster Environment

Why Choose C/C++ as the programming language? Parallel Programming in C/C++ - OpenMP versus MPI

WinBioinfTools: Bioinformatics Tools for Windows Cluster. Done By: Hisham Adel Mohamed

Introduction to Hybrid Programming

Running COMSOL in parallel

Overview. Remote access and file transfer. SSH clients by platform. Logging in remotely

Compute Cluster Server Lab 3: Debugging the parallel MPI programs in Microsoft Visual Studio 2005

Debugging and Profiling Lab. Carlos Rosales, Kent Milfeld and Yaakoub Y. El Kharma

How to Run Parallel Jobs Efficiently

Introduction to MPI Programming!

Linux für bwgrid. Sabine Richling, Heinz Kredel. Universitätsrechenzentrum Heidelberg Rechenzentrum Universität Mannheim. 27.

24/08/2004. Introductory User Guide

Biowulf2 Training Session

Using the Windows Cluster

Parallel Computing using MATLAB Distributed Compute Server ZORRO HPC

Access Instructions for United Stationers ECDB (ecommerce Database) 2.0

Using Parallel Computing to Run Multiple Jobs

GRID Computing: CAS Style

Using NeSI HPC Resources. NeSI Computational Science Team

Work Environment. David Tur HPC Expert. HPC Users Training September, 18th 2015

HPC at IU Overview. Abhinav Thota Research Technologies Indiana University

Running applications on the Cray XC30 4/12/2015

Analysis and Implementation of Cluster Computing Using Linux Operating System

Using WestGrid. Patrick Mann, Manager, Technical Operations Jan.15, 2014

How To Write A Mapreduce Program On An Ipad Or Ipad (For Free)

Parallel Debugging with DDT

Debugging with TotalView

HPCC - Hrothgar Getting Started User Guide

Running on Blue Gene/Q at Argonne Leadership Computing Facility (ALCF)

Tutorial: Using WestGrid. Drew Leske Compute Canada/WestGrid Site Lead University of Victoria

File Transfers. Contents

Interoperability between Sun Grid Engine and the Windows Compute Cluster

Introduction to Sun Grid Engine (SGE)

The CNMS Computer Cluster

C2110 UNIX and programming

HPC Wales Skills Academy Course Catalogue 2015

INF-110. GPFS Installation

Tutorial-4a: Parallel (multi-cpu) Computing

WinSCP PuTTY as an alternative to F-Secure July 11, 2006

Juropa. Batch Usage Introduction. May 2014 Chrysovalantis Paschoulas

Setting up PostgreSQL

How to write a CGI for the Apache Web server in C

How to install and set up the WinSCP software for Secure File Transfer

WinSCP for Windows: Using SFTP to upload files to a server

High-Performance Computing

Introduction to HPC Workshop. Center for e-research

Bright Cluster Manager 5.2. User Manual. Revision: Date: Fri, 30 Nov 2012

Compute Cluster Documentation

Managing GPUs by Slurm. Massimo Benini HPC Advisory Council Switzerland Conference March 31 - April 3, 2014 Lugano

PFSENSE Load Balance with Fail Over From Version Beta3

Installing and running COMSOL on a Linux cluster

SRNWP Workshop. HP Solutions and Activities in Climate & Weather Research. Michael Riedmann European Performance Center

Paul s Norwegian Vacation (or Experiences with Cluster Computing ) Paul Sack 20 September, sack@stud.ntnu.no

Transcription:

RIT Computer Engineering Cluster The RIT Computer Engineering cluster contains 12 computers for parallel programming using MPI. One computer, cluster-head.ce.rit.edu, serves as the master controller or head node for the cluster and is accessible from the Internet. There is also a backup headnode, cluster-secondary, which also goes by the alias of cluster.ce.rit.edu. The other 12 machines, named cluster-node-01, through cluster-node-12, are attached to a private LAN segment and are visible only to each other and the cluster head node. The hardware for each cluster node consists of the following: Supermicro AS-1012G Server Chassis o Supermicro H8SGL-F Singe Socket 12 Core AMD Opteron 2.4GHz 3x 8GB PC3-8500 60GB Crucial SSD To connect to the cluster, simply use a SSH or SFTP client to connect to: <username>@cluster.ce.rit.edu using your DCE login information (username and password). The head node only supports secure connections using SSH and SFTP; normal Telnet and FTP protocols simply won t work. SSH Clients Putty, a very small and extremely powerful SSH client, is available from: http:www.chiark.greenend.org.uk/~sgtatham/putty/ or from the mirror sight: http:www.putty.nl/ This SSH client supports X11 forwarding, so if you use an XWindow emulator such as Exceed, ReflectionX, or Xming, you may open graphical applications remotely over the SSH connection. The website also includes a command line secure FTP client. WinSCP is an excellent graphical FTP/SFTP/SCP client for Windows. It is available from: http:winscp.net/eng/index.php Xming X Server is a free X Window Server for Windows. It is available from: http:www.straightrunning.com/xmingnotes/

Using Message Passing Interface on the RIT Computer Engineering Cluster MPI is designed to run Single Program Multiple Data (SPMD) parallel programs on homogeneous cluster or supercomputer systems. MPI uses shell scripts and the remote shell to start, stop, and run parallel programs remotely. Thus, MPI programs terminate cleanly, and require no additional housekeeping or special process management. Summary Before using these commands, you will need to load the MPI module for use. Run the following command: module load openmpi-x86_64 Compile using: mpicc [linking flags] Run programs with: mpirun np # executable Specifying Machines The cluster is currently configured to execute jobs that are sent to the scheduler. You have no access to the compute nodes to run your jobs. Therefore, there is no way for you to specify which machines you want the processes to run on. In summary, the scheduler will handle this for you. It is also prohibited to use mpirun on the head node. Any students that does this will have their processes immediately killed without warning. Compiling To compile a MPI program, use the mpicc script. This script is a preprocessor for the compiler, which adds the appropriate libraries as appropriate. As it is merely an interface to the compiler, you may need to add the appropriate -l library commands, such as -lm for the math functions. In addition, you may use -c and -o to produce object files or rename the output. For example, to compile the test program: [abc1234@phoenix mpi]$ mpicc greetings.c -o greetings Running MPI Programs Use the mpirun program to execute parallel programs. The most useful argument to mpirun is -np, followed by the number of machines required for execution and the program name. The following is the output of the command to run the program. Your results will vary. [jml1554@cluster-node-01 MultipleProcessorSystems]$ mpirun -np 3 greetings Process 2 of 3 on cluster-node-01 done Process 1 of 3 on cluster-node-01 done Greetings from process 1! Greetings from process 2! Process 0 of 3 on cluster-node-01 done

General syntax for mpirun is mpirun np <np> program While this will work for the general case, it will not work for you since you don t have access to the compute nodes. This command will need to be placed in a script that is passed to the scheduler. More information about this process can be found on the course website and in the Job Submission document. Programming Notes All MPI programs require MPI_Init and MPI_Finalize. All MPI programs generally use MPI_Comm_rank and MPI_Comm_size. Printing debug output prefixed with the process s rank is extremely helpful. Printing a program initialization or termination line with the machine s name (using MPI_Get_processor_name) is also suggested. If you re using C++, or C with C++ features (such as declarations other than at the start of the declaration) try using mpicc instead of mpicc. CE Cluster Scheduling As mentioned above, the CE cluster uses a scheduler called SLURM. The purpose of SLURM is to adequately maintain the resources that are provided by the compute nodes. As you are developing your applications, you will need to be familiar with some of the basic SLURM commands that are outlined below. sinfo used to display the current state of the cluster Example: [jml1554@cluster-secondary ~]$ sinfo PARTITION AVAIL TIMELIMIT NODES STATE NODELIST class* up 4:00:00 10 idle cluster-node-[01-10] squeue used to display the current job queue; with the u option, you can provide a username to view the jobs Example: [jml1554@cluster-secondary project]$ squeue JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) 5748 class p1d1500c jml1554 CG 0:00 1 cluster-node-10 5727 class p6d15c10 jml1554 R 0:26 1 cluster-node-01 5728 class p6d15c10 jml1554 R 0:26 1 cluster-node-01 5729 class p6d15c10 jml1554 R 0:26 1 cluster-node-02 5730 class p6d150c1 jml1554 R 0:26 1 cluster-node-02 5731 class p6d1500c jml1554 R 0:26 1 cluster-node-03 5732 class p6d5c100 jml1554 R 0:26 1 cluster-node-03 5733 class p6d6c100 jml1554 R 0:26 1 cluster-node-04 5734 class p6d1000c jml1554 R 0:25 1 cluster-node-04 5735 class p6d1001c jml1554 R 0:25 1 cluster-node-05 5736 class p11d27c1 jml1554 R 0:25 1 cluster-node-06 5737 class p11d30c1 jml1554 R 0:25 1 cluster-node-07 5738 class p11d33c1 jml1554 R 0:25 1 cluster-node-08 5739 class p13d15c1 jml1554 R 0:25 5 cluster-node-[05-09] 5740 class p13d15c1 jml1554 R 0:24 2 cluster-node-[09-10]

sbatch used to submit a job to the queue; a number of options can be used in two forms: one the command line, or in the script. In either case you need to use a script to submit your work. The easier of the two ways is to have the options embedded in the script as shown below. Make sure that you give your script execute permissions: chmod +x test.sh Script Example: test.sh #!/bin/bash # When the #SBATCH appears at the start of a line, it will # be interpreted by the scheduler as a command for it # Tell the scheduler that we want to use 13 cores for our job #SBATCH n 13 # Give the location of the stdout and stderr to be directed to #SBATCH -o test.out #SBATCH -e test.err # Give the job a name # You should give a unique name to each job to make it easily identifiable #SBATCH J Test # Other options can be provided. Refer to the SLURM documentation for more parameters. # SLURM: https:computing.llnl.gov/linux/slurm/ # You may also refer to http:mps.ce.rit.edu for more information # Your commands go below this line # This command MUST be in your script, otherwise the job will not run properly. module load openmpi-x86_64 # This is where you need to provide the mpirun command # $SLURM_NPROCS is set by SLURM when it handles the job. This value will be equal # to the number given to n from above. In this case, it will be 13. # This should NOT be changed to a number; it will ensure that you are using only # what you neeed. mpirun np $SLURM_NPROCS greetings To submit the job to SLURM, use the following command: sbatch test.sh You will see the following output if your job is submitted successfully: Submitted batch job 5749 After your job completes, you can view the output from the text files test.out and/or test.err using any text editor. A fragment of the output file is provided below. [jml1554@cluster-secondary MultipleProcessorSystems]$ more test.out Process 2 of 10 on cluster-node-01 done Process 8 of 10 on cluster-node-01 done Process 4 of 10 on cluster-node-01 done Process 5 of 10 on cluster-node-01 done Process 10 of 10 on cluster-node-01 done Greetings from process 1! Greetings from process 2! Process 12 of 13 on cluster-node-02 done

Below is a sample program which you can compile and run: greetings.c #include <stdio.h> #include <string.h> #include "mpi.h" main( int argc, char *argv[] ) General identity information int my_rank; Rank of process int p; Number of processes char my_name[100]; int my_name_len; Local processor name Size of local processor name Message packaging int source; int dest; int tag=0; char message[100]; MPI_Status status; Start MPI MPI_Init( &argc, &argv ); Get rank and size MPI_Comm_rank( MPI_COMM_WORLD, &my_rank ); MPI_Comm_size( MPI_COMM_WORLD, &p ); MPI_Get_processor_name( my_name, &my_name_len ); if( my_rank!= 0 ) Create the message sprintf( message, "Greetings from process %d!", my_rank ); else Send the message dest = 0; MPI_Send( message, strlen(message)+1, MPI_CHAR, dest, tag, MPI_COMM_WORLD ); for( source = 1; source < p; source++ ) MPI_Recv( message, 100, MPI_CHAR, source, tag, MPI_COMM_WORLD, &status ); printf( "%s\n", message ); Print the closing message printf( "Process %d of %d on %s done\n", my_rank, p, my_name ); MPI_Finalize();