EN Seite drucken (öffnet Druckerfenster) EN Seite schliessen (schliesst Druckansicht)

Quick start guide

The following instructions are for those who want to get Totalview up and running quickly.

Read on for complete details.

To top

Description

TotalView is a debugger with support for Fortran, C, C++, MPI, OpenMP and threads.

                   TotalView is an interactive tool that lets you debug serial, multiprocessor and multithreaded programs. It can be executed either as a graphical user interface (by using the totalview executable) or from a command-line interface (by using the totalviewcli executable). Totalview provides source-level debugging of Fortran and Fortran 90, C, and C++ codes. It can be used to debug parallel programs based on MPI. It also has facilities for multi-process thread-based parallel programs such as OpenMP.

CSCS characteristics

                                      module avail xt-totalview

Totalview Limitations

Cray XT5 supports a special implementation of the Etnus Totalview debugger. The Totalview debugging suite for the Cray XT systems differs in functionality from the standard Totalview implementation in the following ways :

For details please have a look at the documentation.

To top

Usage

Requirements

                ftn -g -o myprogram myprogram.f90

                ssh -Y rosa.cscs.ch

Usage

Example1 : Invoking Totalview to debug a MPI application

                module load xt-totalview

                qsub -I -V -l mppwidth=12,walltime=00:15:00

                totalview aprun -a -n 12 ./myprogram

For more information, see Troubleshooting below.

To top

Troubleshooting

 

To top

Remote display

Usage

Example : Invoking remote display from a Linux workstation

                uname -a    ( x86_64 GNU/Linux )

                scp -C  username@ela.cscs.ch:/opt/totalview/xt-totalview/remote_display/remote_display.1.1.0-0-linux-x86-64.tar .

                tar xf remote_display.1.1.0-0-linux-x86-64.tar

                export LD_LIBRARY_PATH=~/remote_display/remote_display.1.1.0-0/linux-x86-64/shlib:$LD_LIBRARY_PATH

                cd remote_display.1.1.0-0/linux-x86-64/bin

                ./remote_display_client

 

To top

Memory debugging

The modulefile, xt-totalview-mem-debug, sets up the compilation so that the proper libraries will be linked for TotalView memory debugging. Load this modulefile only when memory debugging is desired.

module load xt-totalview/8.8.0a
module list -t
   totalview-support/1.1.1
   xt-totalview/8.8.0a

module load xt-totalview-mem-debug

please add -Wl,-zmuldefs to your compilation line

ftn -g -Wl,-zmuldefs mem_bug.f90 -o mem_bug.exe
/usr/bin/ld: Warning: size of symbol `free' changed from 14 in /opt/toolworks/totalview.8.8.0a/linux-x86-64/lib/libtvheap_cnl_static.a to 154 in /usr/lib64/libc.a(malloc.o)
/usr/bin/ld: Warning: size of symbol `malloc' changed from 14 in /opt/toolworks/totalview.8.8.0a/linux-x86-64/lib/libtvheap_cnl_static.a to 478 in /usr/lib64/libc.a(malloc.o)
/usr/bin/ld: Warning: size of symbol `realloc' changed from 14 in /opt/toolworks/totalview.8.8.0a/linux-x86-64/lib/libtvheap_cnl_static.a to 549 in /usr/lib64/libc.a(malloc.o)

To top

 
 
© 09.09.2010 

CSCS Swiss National Supercomputing Centre, Galleria 2 - Via Cantonale, CH-6928 Manno(Switzerland), Phone: +41 (91) 610 8211 Fax: +41 (91) 6108282