1 / 47

TOTALVIEW

TOTALVIEW. Majdi Baddourah June 4, 2002 NERSC. Objective. How to use totalview MPI codes OpenMp Codes. TOTALVIEW. Debugging tool Supported by ETNUS Works very well most of the time Line mode and x-windows mode Used to debug FORTRAN and C. Usage. module load totalview

kesler
Download Presentation

TOTALVIEW

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TOTALVIEW Majdi Baddourah June 4, 2002 NERSC

  2. Objective • How to use totalview • MPI codes • OpenMp Codes

  3. TOTALVIEW • Debugging tool • Supported by ETNUS • Works very well most of the time • Line mode and x-windows mode • Used to debug FORTRAN and C

  4. Usage • module load totalview • mpxlf –g main.f • totalview poe –a ./a.out –nodes 2 –procs 32

  5. TOTALVIEW Window

  6. Program Window

  7. File Options

  8. Process Options

  9. Action Point Options

  10. Tools Options

  11. POE Window

  12. Source Code Window

  13. Set Breakpoint left mouse click right mouse click

  14. Breakpoint options

  15. Start Exectution left mouse click

  16. See Other Processors left mouse click

  17. Setting Evaluation Function

  18. Setting Evaluation Function right mouse click

  19. Evaluation Function

  20. Evaluation Functions

  21. Evaluation Functions

  22. Evaluation Functions right mouse click

  23. Variable Value

  24. Looking at the vector x

  25. Looking at a Slice of an Array

  26. Looking at Large Arrays parameter(n=10 000 000) real*8 a(n) do i = 1, n a(i) = float(i) enddo write(*,*)' a(',n,')=',a(n) stop end You can view the content of the variable A without problems. You can not look at statistics or visualize the variable.

  27. Message Queue

  28. C Program

  29. C Program

  30. Structure Value

  31. Looking at Structure

  32. Watch Point

  33. Unconditional Watchpoint

  34. Checking the Value

  35. Attaching a Running Job Run Totalview using this command totalview & poe ./a.out –nodes 2 –procs 32 Click on the poe job

  36. Attaching a Job

  37. Running the Job Click Go

  38. Detaching a Job Click detach

  39. OpenMp setenv OMP_NUM_THREADS 4 module load totalview

  40. Compile xlf90_r -o a.out -g -qfixed -qsmp=omp -qstrict nowait.f -bmaxstack:0x70000000 Dive on J

  41. Compile with noopt xlf90_r -o a.out -qfixed -qsmp=omp -g -qstrict nowait.f -qsmp=noopt -bmaxstack:0x70000000

  42. OpenMp Click go right mouse click

  43. Threads 3 Dive on b

  44. Shared variables

  45. OpenMp Dive on j

  46. Private Variables

  47. TOTALVIEW X-Resources totalview*searchPath:/usr/common/homes/m/majdi/NETCDF4/src/libsrc, \ /usr/common/homes/m/majdi/NETCDF4/src/fortran, \ /usr/common/homes/m/majdi/NETCDF4/src/f90, \ /usr/common/homes/m/majdi/NETCDF4/src, \ /scratch/scratchdirs/majdi, /scratch/scratchdirs/majdi/NimRot

More Related