N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER TotalView on the T3E and IBM SP Systems NERSC User Services June 12, 2000.

Slides:



Advertisements
Similar presentations
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
Advertisements

Creating Data Entry Screens in Epi Info
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Chapter 8 Improving the User Interface
Copyright  Oracle Corporation, All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE.
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
Using Macros and Visual Basic for Applications (VBA) with Excel
TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.
PSPICE Tutorial Spring 2015
PRIMARY, SECONDARY & QUANTITATIVE RESEARCH TASK HYPERLINK APPLICATION PROCEDURE 1.
MT311 Tutorial Li Tak Sing( 李德成 ). Uploading your work You need to upload your work for tutorials and assignments at the following site:
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
April 24, 2002 TotalView Debugger. April 24, 2002 Compile and Run Copy bug1.f from /tmp/training to your /tmp/username directory Compile with the –g option.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Starting & Stopping Motors Micro Logix 1100 RSLogix 500 LAB#1.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Access Tutorial 10 Automating Tasks with Macros
Chapter 8: String Manipulation
Microsoft Visual Basic 2012 CHAPTER TWELVE (ENRICHMENT CHAPTER) Windows Store Apps.
Visual Basic Chapter 1 Mr. Wangler.
Enhancing User Interaction Through Programming
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
® Microsoft Access 2010 Tutorial 11 Using and Writing Visual Basic for Applications Code.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER 1 A Comparison of Performance Analysis Tools on the NERSC SP Jonathan Carter NERSC User Services.
Active-HDL Interfaces Debugging C Code Course 10.
Chapter Two Creating a First Project in Visual Basic.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Allegro CL Certification Program Lisp Programming Series Level I Session Basic Lisp Development in the IDE.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
HPCC Mid-Morning Break Dirk Colbry, Ph.D. Research Specialist Institute for Cyber Enabled Discovery TotalView Parallel Debugger.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Georgia Institute of Technology Creating Classes part 2 Barb Ericson Georgia Institute of Technology June 2006.
Designing Your Own PowerPoint Presentation Presentation by: Dawn Reeves Engl393 June 20 th 2002.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
17/02/2016S. Ponce / EP-LBC1 Debugging Under Linux Sebastien Ponce Friday, 8 March 2002.
Intro Compiler Configuration and Sample Project Walkthrough (For Axiom CME11E9-EVB)
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
PowerPoint Chapter 1 Creating and Editing a Presentation with Clip Art Discovering Computers & Microsoft Office 2010.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Chapter 2 – Introduction to the Visual Studio .NET IDE
1. Introduction to Visual Basic
Access Project 8 Using Visual Basic for Applications (VBA) and Creating Multi-Page Forms.
Important terms Black-box testing White-box testing Regression testing
Important terms Black-box testing White-box testing Regression testing
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
Debugging Visual Basic Programs
Tutorial 10 Automating Tasks with Macros
Tutorial 11 Using and Writing Visual Basic for Applications Code
Workshop for Programming And Systems Management Teachers
Presentation transcript:

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER TotalView on the T3E and IBM SP Systems NERSC User Services June 12, 2000

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems Contents Compiling for, and executing TotalView Startup windows Basic controls and user interface Breakpoints –Setting them –Running to them –Viewing processor states and changing processors –Viewing variable values –Setting Eval points Attaching to running jobs On-line help

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems How to Compile & Run On the T3E: f90 {-G0 or -G1} source.f G0 Will give debugging symbols at all executable statements G1 Will keep some of the optimization (faster runs, fewer breakpoint locations) totalview -X 3 -grayscale -bg white On the SP: mpxlf -g source.f module load totalview totalview poe -a./a.out -nodes 2 -procs 4 -rmpool 1

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Initial TotalView window

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: With the left mouse button choose File With the left mouse button choose Load New Program

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Enter Executable Name (“a.out”), then click Apply

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Process_window will appear.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: Initial TotalView windows 2 windows will open, one with poe in its title bar, and the other with TotalView and its version number.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: With the left mouse button choose File in the process window

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: With the left mouse button choose Control

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: With the left mouse button choose Events

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: With the left mouse button choose Source

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: In the poe window, click the middle mouse button. A small menu window will appear, which contains many options.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, select: Arguments/Create/Signal SP: While holding the middle mouse button in the poe window, select: Arguments/Create/Signal

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: Go/Halt/Step/Next/Hold SP: While holding the middle mouse button in the poe window, choose: Go/Halt/Step/Next/Hold

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: Function/File/Variable SP: While holding the middle mouse button in the poe window, choose: Function/File/Variable

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: Current/Update/Relatives SP: While holding the middle mouse button in the poe window, choose: Current/Update/Relatives

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: Display/Directory/Edit SP: While holding the middle mouse button in the poe window, choose: Display/Directory/Edit

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: STOP/BARR/EVAL/ELOG SP: While holding the middle mouse button in the poe window, choose: STOP/BARR/EVAL/ELOG

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: Process State Info SP: While holding the middle mouse button in the poe window, choose: Process State Info

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: Search for String SP: While holding the middle mouse button in the poe window, choose: Search for String

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: Save Window to File SP: While holding the middle mouse button in the poe window, choose: Save Window to File

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: While holding the middle mouse button in the poe window, choose: Go/Halt/Step/Next/Hold then choose Go Group SP: While holding the middle mouse button in the poe window, choose: Go/Halt/Step/Next/Hold then choose Go Group This starts the code running, and produces the window shown in the next slide

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: It is good to answer yes, here, so you can add some breakpoints.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: In the AIX window you will see the 4 processors are ready. The poe window will show the source code

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Setting a breakpoint: Left-click on the box at line 12 T3E: Setting a breakpoint: Left-click on the box at line 12

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Left- click on Run

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: The program stopped at line 12 Notice we are looking at PE 0 T3E: The program stopped at line 12 Notice we are looking at PE 0

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Click on the PE button. Now we are looking at PE 2. T3E: Click on the PE button. Now we are looking at PE 2.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: Click the left mouse button on the rectangle at line 9, to set a breakpoint In the poe window click on the “P^” button, to see the code at processor 1

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: Notice the different color in lower panes, and that I changed the breakpoint from line 9 to line 10.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Displaying a variable’s value: Left-click on the variable, “x5” and a data object window will open. This action is called “diving” on a variable. T3E: Displaying a variable’s value: Left-click on the variable, “x5” and a data object window will open. This action is called “diving” on a variable.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Click the “Continue” button, and notice the value of “X2” changes to “NaN”

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: Choose Go/Halt/Step/Next/Hold then Go Group SP: Choose Go/Halt/Step/Next/Hold then Go Group

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: The code ran up to the breakpoint. If we right- click on the box at the left of line 12, we get an eval window.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Using EVAL: Right -click on the box at line 15, to get the breakpoint window shown in the next slide T3E: Using EVAL: Right -click on the box at line 15, to get the breakpoint window shown in the next slide

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: In the breakpoint window we can use a C or Fortran expression to control action at a breakpoint

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: After clicking on “Cont”, the code will stop at line 15 when the expression becomes true

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Verify the EVAL point worked, by left-clicking on I, to check its value

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: If we right- click on the box at the left of line 12, we get an Eval window.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: In the eval window we can select a type of “Breakpoint”, or specify expression evauation, as shown in the next slide

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: In the Evaluate Expression box, specify a condition (in Fortran or C syntax) which will make the code stop; in this case stop when i = 10.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: Notice that the box at the left of line 12 says “eval”. I have also added a breakpoint on line 19. SP: Notice that the box at the left of line 12 says “eval”. I have also added a breakpoint on line 19.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: Here’s what happens when we continue executon - one processor stops at line 12, when the condition becomes true.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: In the stack trace window we click on “.test” so we can go back to the source code. We can see the code is stopped at the “eval” point. SP: In the stack trace window we click on “.test” so we can go back to the source code. We can see the code is stopped at the “eval” point.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: To view the value of variable “I”, right-click on that variable in line 12. Another window will show up which shows the values. SP: To view the value of variable “I”, right-click on that variable in line 12. Another window will show up which shows the values. To view the values of variable “x”, click on it.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: Middle-click on the “Static in.test” window, and another window shows up which has many options.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: By choosing “Visualize” we can get the following graph: It shows a plot of the element values of the array “x”. SP: By choosing “Visualize” we can get the following graph: It shows a plot of the element values of the array “x”.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: How to attach TotalView to a running job: Run TotalView, then in the File Menu, choose “Unattached Processes” T3E: How to attach TotalView to a running job: Run TotalView, then in the File Menu, choose “Unattached Processes”

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Left-click on the desired process (“a.out”)

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: The program should appear in a process window.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: How to attach TotalView to a running job: Run TotalView, then click the midle mouse button in the AIX TotalView window. Choose Show All Unattached Processes SP: How to attach TotalView to a running job: Run TotalView, then click the midle mouse button in the AIX TotalView window. Choose Show All Unattached Processes

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: A Processes window will show. Choose the poe job which is running and we are trying to attach using TotalView.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: A query window will appear; you should say yes.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: Now the program is attached.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems T3E: Online help can be used using the Help button.

N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER June, 2000TotalView on the T3E and SP Systems SP: For Help click on the middle button in the AIX TotalView window and choose Help