STARTING THE DDT DEBUGGER ON MIO, AUN, & MC2. (Mouse over to the left to see thumbnails of all of the slides)

Similar documents
Module 4: Working with MPI

HPC Introductory Course - Exercises

Module 3: Working with C/C++

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

ncsa eclipse internal training

Graham vs legacy systems

Allinea Unified Environment

How to Use a Supercomputer - A Boot Camp

Guillimin HPC Users Meeting July 14, 2016

COSC 6374 Parallel Computation. Debugging MPI applications. Edgar Gabriel. Spring 2008

RHRK-Seminar. High Performance Computing with the Cluster Elwetritsch - II. Course instructor : Dr. Josef Schüle, RHRK

Allinea DDT Debugger. Dan Mazur, McGill HPC March 5,

GPU Debugging Made Easy. David Lecomber CTO, Allinea Software

Using a Linux System 6

Introduction to Cuda Visualization. Graphical Application Tunnelling on Palmetto

The Eclipse Parallel Tools Platform

Accelerate HPC Development with Allinea Performance Tools

Table of Contents. Table of Contents Job Manager for remote execution of QuantumATK scripts. A single remote machine

DDT: A visual, parallel debugger on Ra

Using CLC Genomics Workbench on Turing

Parallel Debugging with TotalView BSC-CNS

Introduction to High-Performance Computing (HPC)

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

SCALABLE HYBRID PROTOTYPE

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

Working with Shell Scripting. Daniel Balagué

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

Batch Systems & Parallel Application Launchers Running your jobs on an HPC machine

Understanding Dynamic Parallelism

Workstations & Thin Clients

COSC 6385 Computer Architecture. - Homework

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

DDT Debugging Techniques

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

Linux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs

Debugging CUDA Applications with Allinea DDT. Ian Lumb Sr. Systems Engineer, Allinea Software Inc.

MIC Lab Parallel Computing on Stampede

New User Tutorial. OSU High Performance Computing Center

Sherlock for IBIIS. William Law Stanford Research Computing

Remote Access to Matlab at Mason. CDS-130: Computing for Scientists. Spring Jie Zhang

Introduction to the Cluster

Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins Menu Sequence: VM / Guest / Send Ctrl-Alt-Delete

Introduction to the Cluster

Slurm basics. Summer Kickstart June slide 1 of 49

PowerPoint 2 (Office 2007)

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

Labtainer Student Guide

OpenMP threading on Mio and AuN. Timothy H. Kaiser, Ph.D. Feb 23, 2015

Submitting batch jobs Slurm on ecgate Solutions to the practicals

Remote Access to Unix Machines

Description of Power8 Nodes Available on Mio (ppc[ ])

Windows Download & Installation

Sharpen Exercise: Using HPC resources and running parallel applications

Duke Compute Cluster Workshop. 3/28/2018 Tom Milledge rc.duke.edu

Introduction to BioHPC

PhotoPDF User Guide. PhotoPDF. Photo to PDF Converter

WEWORK PRINTER INSTRUCTIONS FOR PAPERCUT. Installing Papercut and Printers for Mac OSX Printing Retrieving Your Prints Frequently Asked Questions

Using Eclipse for Java. Using Eclipse for Java 1 / 1

Obtaining a login and password to the Online Application

Océ Engineering Exec. Doc Exec Pro and Electronic Job Ticket for the Web

143a, Spring 2018 Discussion Week 4 Programming Assignment. Jia Chen 27 Apr 2018

CS Fundamentals of Programming II Fall Very Basic UNIX

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

Introduction to GACRC Teaching Cluster

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

Improving the Productivity of Scalable Application Development with TotalView May 18th, 2010

How to Connect to the CSH Virtual Desktop

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

:59:32 PM PST

Parallel Programming Pre-Assignment. Setting up the Software Environment

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010

Cheat Sheet on using Electric for Design and Simulations

Compiling applications for the Cray XC

The Command Shell. Fundamentals of Computer Science

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

Introduction to High Performance Computing and an Statistical Genetics Application on the Janus Supercomputer. Purpose

EASYLABEL Net Print Server

RDAV Tutorial: Hands-on with VisIt on Nautilus If you want to work hands-on, you will need to install VisIt and

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

CSinParallel Workshop. OnRamp: An Interactive Learning Portal for Parallel Computing Environments

Reference Services Division Presents. Saving & Printing

Bright Cluster Manager Advanced HPC cluster management made easy. Martijn de Vries CTO Bright Computing

Broadcast +Fax Quick Start Guide

TREX Set-Up Guide: Creating a TREX Executable File for Windows

Accessing Diagnostic Service Documentation for Non-Beckman Coulter Users

STA 303 / 1002 Using SAS on CQUEST

MD Workflow Single System Tutorial (LINUX OPERATION GPU Cluster) Written by Pek Ieong

Parallel Tools Platform for Judge

Singularity: container formats

Online Access: Login to The Media Audit

Remote Access to the CIS VLab (308)

ecampus Submission Process

RWTH GPU-Cluster. Sandra Wienke March Rechen- und Kommunikationszentrum (RZ) Fotos: Christian Iwainsky

ECE QNX Real-time Lab

Introduction to High-Performance Computing (HPC)

Submitting and running jobs on PlaFRIM2 Redouane Bouchouirbat

Apple Qmaster 4. User Manual

Impossible Solutions, Inc. JDF Ticket Creator & DP2 to Indigo scripts Reference Manual Rev

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

Advanced Threading and Optimization

Transcription:

STARTING THE DDT DEBUGGER ON MIO, AUN, & MC2 (Mouse over to the left to see thumbnails of all of the slides)

ALLINEA DDT Allinea DDT is a powerful, easy-to-use graphical debugger capable of debugging a wide variety of scenarios found in today s development environments. With Allinea DDT, it is possible to debug: Single process and multithreaded software OpenMP Parallel (MPI) software Heterogeneous software such as that written to use GPUs Hybrid codes mixing paradigms such as MPI + OpenMP, or MPI + CUDA Multi-process software of any form, including client-server applications

PURPOSE: Show you how to start the ddt debugger, specifically on Mio The procedure is the same on AuN and Mc2 There is a link to the full documentation at the end of these slides

ASSUMPTIONS You home machine supports X-Windows applications Most desktop Linux machines support X out of the box On Mac - use Quartz On Windows - use Cygwin/X We have an example buggy application We will show how to launch ddt and run until we get to the bug We will run from a Mac There is a Mac and Windows client that does not require X but that requires an additional install, however, in the long run it is a better option

CONNECTING TO MIO ddt is an X-Windows application You must use the -Y option on your ssh line to allow X-Windows applications. If you are login in thru another machine you must use the -Y option there also ssh -Y mio.mines.edu

SET UP ENTER THE COMMANDS SHOWN IN RED Reset your environment by doing a module purge and loading the modules you will need for the example The modules we use are: PrgEnv/Debug/ddt StdEnv The StdEnv module gives you a default compiler environment PrgEnv/Debug/ddt gives you the debugger. Load the modules: module load PrgEnv/Debug/ddt module load StdEnv Create a new directory, buggy mkdir buggy Go there cd buggy The example files are in a tar file. Copy the example files to the directory by using the command tar -xf /opt/utility/quickstart/debug.tar

BUILD AND STARTING DDT Build the example applications by entering make Note: You must use the -g option when you build a program to be able to debug it You can ignore the warning The make also copies the script file batch.qtf to your local directory Launch ddt on the command line Note: ddt creates batch scripts on the fly. The file batch.qtf is the template it uses to create the script. The templates are slightly different on each machine.

ACCOUNTS STRING On AuN and Mc2 you need to an account number in your batch.qtf file The line in batch.qtf file that has the account number is of the form #SBATCH --account=123456789 You can get your valid account numbers by running the command /opt/utility/accounts The makefile provided with this example will automatically set the account number for you in batch.qtf

THE DDT MAIN WINDOW This is the main ddt window In the ddt main window Select File then Options An Options window will come up Select System and set MPI/UPC Implementation to SLURM (generic) Note: For Mc2 select Auto-Detect (BlueGene/Q (SLURM))

THE DDT MAIN WINDOW This is the main ddt window In the ddt main window Select File then Options An Options window will come up Select Job Submission

JOB SUBMISSIONS SETTINGS Folder Icon Click on the folder icon and navigate to your buggy folder Select batch.qtf Hit OK You will be back at the starting window Note: ddt creates batch scripts on the fly. The file batch.qtf is the template it uses to create the script. The templates are slightly different on each machine.

JOB SUBMISSIONS SETTINGS Click Here In the starting window Click on Run This will bring up a window in which you can select the program you will run and the number of MPI tasks

APPLICATION AND MPI SETTINGS Folder Icon Again select the folder icon for Application and navigate to your buggy folder and select phostname Also set the Working Directory to buggy Click next to MPI and then Processes per Node Enter 4 in each of the two boxes as shown. This will allow a run on 1 node with 4 MPI tasks. Make sure Submit to Queue is checked Click Submit MPI run information Note: On AuN and Mc2 you need to add an account number as the srun argument The format is -A ######### You can get your valid account numbers by running the command /opt/utility/accounts

JOB SUBMISSIONS SETTINGS You job will go into the queue as normal to wait to start. Then Go arrow You will get a window that looks some thing like this with your source code in the middle. Click on the Go arrow to start you program

JOB SUBMISSIONS SETTINGS After a few seconds you will see the Program Stopped window indicating that there was a problem Note the source window shows the line number where the problem occurred. Here is the problem

USING THE REMOTE CLIENTS There are standalone front ends for ddt for Mac-OS X and Windows The interface is nearly the same Advantages: Don t require X-windows install on your desktop Much faster! Disadvantages: Have to install the client Connection to AuN and Mc2 requires a minor strange setting

GETTING THE CLIENTS Available from http://www.allinea.com/products/forge/download Select your version from under Remote client for OS/X, Windows and Linux Install as normal Note: The version number of the client must match the version of ddt installed on our systems. If it does not you can get older versions or let the HPC group know to do an update.

SETTING UP THE CLIENT When you start the client you will get a window like this You need to set up Remote Launch to point to our machines Select Configure then Add to create configurations for the machines on which you want to run

SETTINGS FOR: MIO The Host Name: mio Assuming your are using version 6.1 the Remote Install is at /opt/ddt/forge/6.1 To make your life easier you should have password less ssh set up to get to Mio

SETTINGS FOR: AUN The Host Name: bluem aun (Note you need both. Click on the How do I link for more information Assuming your are using version 6.1 the Remote Install is at /opt/ddt/forge/6.1 To make your life easier you should have password less ssh set up to get to bluem

SETTINGS FOR: MC2 The Host Name: bluem mc2 (Note you need both. Click on the How do I link for more information Assuming your are using version 6.1 the Remote Install is at /opt/ddt/forge/6.1 To make your life easier you should have password less ssh set up to get to bluem

TO LAUNCH Select one of your configurations under Remote Launch Select Run

TO LAUNCH Selecting Run will bring up this window Hitting the Options button will allow you to set System and Job Submission values as discussed above. When all is set, hit Submit

MORE INFORMATION A movie of the ddt start-up process http://geco.mines.edu/prototype/ddt/movie.html PDF of these slides http://geco.mines.edu/prototype/ddt/ddt.pdf User guide http://geco.mines.edu/prototype/ddt/userguid.pdf