Matt Wolfe LC Development Environment Group Lawrence Livermore National Laboratory Lawrence Livermore National Laboratory, P. O. Box 808, Livermore, CA.

Slides:



Advertisements
Similar presentations
Extending Eclipse CDT for Remote Target Debugging Thomas Fletcher Director, Automotive Engineering Services QNX Software Systems.
Advertisements

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.
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
IGOR: A System for Program Debugging via Reversible Execution Stuart I. Feldman Channing B. Brown slides made by Qing Zhang.
Debugging What can debuggers do? Run programs Make the program stops on specified places or on specified conditions Give information about current variables’
TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.
Dr. Fabrizio Gala Dipartimento di Scienze di Base e Applicate Per l’Ingegneria – Sezione di Fisica Via Scarpa Rome, Italy 1.
Gdb: GNU Debugger Lecturer: Prof. Andrzej (AJ) Bieszczad Phone: “UNIX for Programmers and Users” Third Edition, Prentice-Hall,
Bronis R. de Supinski Center for Applied Scientific Computing Lawrence Livermore National Laboratory June 2, 2005 The Most Needed Feature(s) for OpenMP.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Fall 2007CS 2251 Programming Tools Eclipse JUnit Testing make and ant.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
1-1 Embedded Software Development Tools and Processes Hardware & Software Hardware – Host development system Software – Compilers, simulators etc. Target.
Parallel Debugging Techniques Le Yan Louisiana Optical Network Initiative 8/3/2009Scaling to Petascale Virtual Summer School.
Parallel Debugging Techniques & Introduction to Totalview Le Yan Louisiana Optical Network Initiative 7/6/2010Scaling to Petascale Virtual Summer School.
Debugging techniques in Linux Debugging Techniques in Linux Chetan Kumar S Wipro Technologies.
Main sponsor PicassoMonet + RembrandtMatejko + Canaletto How Debuggers Work Karl Rehmer Failures Come in Flavors Michael Nygard REST in Java Stefan Tilkov.
Debugging Cluster Programs using symbolic debuggers.
Blaise Barney, LLNL ASC Tri-Lab Code Development Tools Workshop Thursday, July 29, 2010 Lawrence Livermore National Laboratory, P. O. Box 808, Livermore,
LLNL-PRES-XXXXXX This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.
1 Debugging with the TotalView Source Code Debugger Ed Hinkel Sales Engineer TotalView Technologies MIT March 6, 2008.
Support for Debugging Automatically Parallelized Programs Robert Hood Gabriele Jost CSC/MRJ Technology Solutions NASA.
TotalView Debugging Tool Presentation Josip Jakić
DDT Debugging Techniques Carlos Rosales Scaling to Petascale 2010 July 7, 2010.
Debugging Dwight Deugo Nesa Matic
Debugging. 2 © 2003, Espirity Inc. Module Road Map 1.Eclipse Debugging  Debug Perspective  Debug Session  Breakpoint  Debug Views  Breakpoint Types.
Debugging in Java. Common Bugs Compilation or syntactical errors are the first that you will encounter and the easiest to debug They are usually the result.
1 Debugging: Catching Bugs ( II ) Ying Wu Electrical Engineering & Computer Science Northwestern University EECS 230 Lectures.
Martin Schulz Center for Applied Scientific Computing Lawrence Livermore National Laboratory Lawrence Livermore National Laboratory, P. O. Box 808, Livermore,
Blaise Barney, LLNL ASC Tri-Lab Code Development Tools Workshop Thursday, July 29, 2010 Lawrence Livermore National Laboratory, P. O. Box 808, Livermore,
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Eclipse debugger.
Profiling, Tracing, Debugging and Monitoring Frameworks Sathish Vadhiyar Courtesy: Dr. Shirley Moore (University of Tennessee)
Module 6: Debugging a Windows CE Image.  Overview Debug Zones IDE Debug Setup IDE Debug Commands Platform Builder Integrated Kernel Debugger Other Debugging.
Matt Wolfe LC Development Environment Group Lawrence Livermore National Laboratory Lawrence Livermore National Laboratory, P. O. Box 808, Livermore, CA.
Lawrence Livermore National Laboratory Pianola: A script-based I/O benchmark Lawrence Livermore National Laboratory, P. O. Box 808, Livermore, CA
Software Overview Environment, libraries, debuggers, programming tools and applications Jonathan Carter NUG Training 3 Oct 2005.
ASC Tri-Lab Code Development Tools Workshop Thursday, July 29, 2010 Lawrence Livermore National Laboratory, P. O. Box 808, Livermore, CA This work.
A Tutorial on Introduction to gdb By Sasanka Madiraju Graduate Assistant Center for Computation and Technology.
A New Parallel Debugger for Franklin: DDT Katie Antypas User Services Group NERSC User Group Meeting September 17, 2007.
Debugging parallel programs. Breakpoint debugging Probably the most widely familiar method of debugging programs is breakpoint debugging. In this method,
Martin Schulz Center for Applied Scientific Computing Lawrence Livermore National Laboratory ASC STAT Team: Greg Lee, Dong Ahn (LLNL), Dane Gardner (LANL)
Lawrence Livermore National Laboratory S&T Principal Directorate - Computation Directorate Tools and Scalable Application Preparation Project Computation.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 What we'll cover here l Using the debugger: Starting the debugger Setting.
Msdevcon.ru#msdevcon. ИЗ ПЕРВЫХ РУК: ДИАГНОСТИКА ПРИЛОЖЕНИЙ С ПОМОЩЮ ИНСТРУМЕНТОВ VISUAL STUDIO 2012 MAXIM GOLDIN Senior Developer, Microsoft.
Unit - V. Debugging GNU Debugger helps you in getting information about the following: 1.If a core dump happened, then what statement or expression did.
CSc 352 Debugging Tools Saumya Debray Dept. of Computer Science The University of Arizona, Tucson
LLNL-PRES This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.
Mitglied der Helmholtz-Gemeinschaft Debugging and Validation Tools on Parallel Systems 2012 |Bernd Mohr Institute for Advanced Simulation (IAS) Jülich.
Introduction Ken Ryall – Nokia Warren Paul – Nokia Daymon Rogers – Freescale John Cortell - Freescale.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
1 Advanced.Net Debugging Using Visual Studio, R# and OzCode IT Week, Summer 2015.
Introduction to HPC Debugging with Allinea DDT Nick Forrington
HP-SEE Debugging with GDB Vladimir Slavnic Research Assistant SCL, Institute of Physics Belgrade The HP-SEE initiative.
Beyond Application Profiling to System Aware Analysis Elena Laskavaia, QNX Bill Graham, QNX.
HP-SEE TotalView Debugger Josip Jakić Scientific Computing Laboratory Institute of Physics Belgrade The HP-SEE initiative.
Using the GNU Debugger (GDB)‏ Techzemplary Pvt.Ltd February 24 th 2008 Pranav Peshwe.
Dynamic Analysis ddaa.
DEV-25: You've Got a Problem, Here’s How to Find It
Debugging Dwight Deugo
Debugging with gdb gdb is the GNU debugger on our CS machines.
Kernel Tracing David Ferry, Chris Gill
Important terms Black-box testing White-box testing Regression testing
Parallel Debugging Techniques & Introduction to Totalview
Important terms Black-box testing White-box testing Regression testing
DEBUGGING JAVA PROGRAMS USING ECLIPSE DEBUGGER
Testing, debugging, and using support libraries
Module 6: Debugging a Windows CE Image
Debugging Dwight Deugo
Code Composer Essentials 3.0
Presentation transcript:

Matt Wolfe LC Development Environment Group Lawrence Livermore National Laboratory Lawrence Livermore National Laboratory, P. O. Box 808, Livermore, CA This work performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344 TotalView Multiprocess Debugger LLNL-PRES

Lawrence Livermore National Laboratory TotalView Uses  Code correction  Code exploration and learning  Code statement runtime operation study  Memory utilization and debugging  Languages: C, C++, Fortran, UPC  Paradigms: serial, MPI, OpenMP, pthreads, CUDA (coming)

Lawrence Livermore National Laboratory TotalView Technologies' Tools  Workbench: tvworkbench  MemoryScape: memscape, memscript  TotalView: totalview, totalviewcli, tvscript, visualize  ReplayEngine: totalview -replay  Remote Display Client: remote_display_client.sh  contributed: colortv, mtv, mxterm, sxterm

Lawrence Livermore National Laboratory When To Use TotalView (TV)  Start code under TV  Attach to running code with TV  Post mortem core file inspection

Lawrence Livermore National Laboratory Preparing Code and Invoking TotalView  Compile: -g -O0  IBM: -qsaveopt OpenMP: -qsmp=omp:noopt  totalview -args  totalview  totalview code corefile

Lawrence Livermore National Laboratory TotalView Basic Tools  Visual and one-click access to greater detail  Breakpoints, Barrier points, TV intrinsics  Program control, Src/Asm single-stepping, restart, detach  Source, stack trace, stack frame (args, locals, registers)  View/change data, tooltips, Last Value, change highlighting  File/text/symbol search  Thread control, signal control

Lawrence Livermore National Laboratory TotalView Power Tools  Watchpoints, Conditional Breakpoints, Code Patching  Statistics, Filtering, Sorting, Visualization, Dump Format  Call Graph, Show Across, Custom Groups, Disassembler  Expression List, Evaluate, Type Transformation  Message Queue Display and Graph  Program Browser, Fortran Modules, Thread Objects  Memory Debugger, Replay Engine, Command Line Interface  tvscript

Lawrence Livermore National Laboratory Working at Scale  Reduce your process count if possible  Try STATGUI  Subset attach  Tools > Event Log  Work up to your target scale and be patient  Processes and Threads tabs  Sort by process state and collapse for counts  Filter out uninteresting libraries' symbols

Lawrence Livermore National Laboratory TVTech Resources   Help menu  F1 key  CLI help command   forum.totalviewtech.com (FAQs, Q&A wisdom)  Your local development tools support team, Tri-Labs issue tracker

Lawrence Livermore National Laboratory Afternoon Session  Hear use cases  How to see shared object dependencies: file, ldd, cat /proc/ /maps  How to trace system calls: man strace (x86-64); man truss (rs6000)  How to drop a useful core file: limit coredumpsize unlimited, ulimit -c unlimited, ^\  How to determine your TotalView version: -V  How to start with a clean slate: rm -f –r \ ~/.{memscape,preferences.tvd,totalview,tvworkbench} \ {~,.}/.tvdrc  How to get TV to display your source: $tree()

Lawrence Livermore National Laboratory Afternoon Session (Continued)  How to stop TV before the stack is unwound: ifort: for__issue_diagnostic  How to catch a Nan: CDWP(C, $double, 8 bytes): if ($is_nan($newval)) $stop  How to catch heap corruption  How to quickly return to a location of interest: $count  How to trace a variable (x86-64) printf("#"); fflush( (void *) 0);  How to display an array using an array of indices Ask Jeff about UPDD.

Lawrence Livermore National Laboratory Afternoon Session (Continued)  How to present memory leaks to a library provider  How to check instantaneous memory changes (x86-64) printf("\nTV node ID: %d, PID: %d\n",$nid,$pid); malloc_stats()  How to reconstruct an incomplete stack trace  How to find missing subroutine arguments and locals  Beginning to use the CLI: help  Discovering how to get TV to accept an expression