Ignore:
Timestamp:
Jan 2, 2015 11:35:51 AM (9 years ago)
Author:
boeske
Message:

several updates in the tutorial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/TUTORIAL/SOURCE/debugging.tex

    r1232 r1515  
    66\usepackage{ngerman}
    77\usepackage{pgf}
    8 \usetheme{Dresden}
    98\usepackage{subfigure}
    109\usepackage{units}
     
    1413\usepackage{xmpmulti}
    1514\usepackage{tikz}
    16 \usetikzlibrary{shapes,arrows,positioning,decorations.pathreplacing}
     15\usetikzlibrary{shapes,arrows,positioning}
    1716\def\Tiny{\fontsize{4pt}{4pt}\selectfont}
    18 
    19 %---------- neue Pakete
    2017\usepackage{amsmath}
    2118\usepackage{amssymb}
    2219\usepackage{multicol}
    2320\usepackage{pdfcomment}
    24 \usepackage{xcolor}
    25 
    26 \institute{Institut fÃŒr Meteorologie und Klimatologie, Leibniz UniversitÀt Hannover}
     21\usepackage{graphicx}
     22\usepackage{listings}
     23\lstset{showspaces=false,language=fortran,basicstyle=
     24        \ttfamily,showstringspaces=false, captionpos=b,aboveskip=0pt,belowskip=0pt}
     25
     26
     27\institute{Institute of Meteorology and Climatology, Leibniz UniversitÀt Hannover}
     28\selectlanguage{english}
    2729\date{last update: \today}
    2830\event{PALM Seminar}
     
    3032\setbeamersize{text margin left=.5cm,text margin right=.2cm}
    3133\setbeamertemplate{footline}
    32   {%
     34  {
    3335    \begin{beamercolorbox}[rightskip=-0.1cm]&
    3436     {\includegraphics[height=0.65cm]{imuk_logo.pdf}\hfill \includegraphics[height=0.65cm]{luh_logo.pdf}}
    3537    \end{beamercolorbox}
    36     \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
    37       leftskip=.3cm,rightskip=0.3cm plus1fil]{title in head/foot}%
    38       {\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor} \hfill \eventname \hfill \insertframenumber \; / \inserttotalframenumber}%
    39     \end{beamercolorbox}%
    40 %    \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}%
    41 %    \end{beamercolorbox}
    42   }%\logo{\includegraphics[width=0.3\textwidth]{luhimuk_logo.eps}}
     38    \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,
     39      leftskip=.3cm,rightskip=0.3cm plus1fil]{title in head/foot}
     40      {\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor} \hfill \eventname \hfill \insertframenumber \; / \inserttotalframenumber}
     41    \end{beamercolorbox}
     42    \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
     43    \end{beamercolorbox}
     44  }
    4345
    4446\title[PALM - Debugging]{PALM - Debugging}
    45 \author{Siegfried Raasch}
     47\author{PALM group}
    4648
    4749% Notes:
     
    8688      \item<2->{\textbf{Find out the principal reason of the error(s):}}
    8789      \begin{itemize}
     90         \scriptsize
    8891         \item<3->{ Carefully analyze the job protocol file (or messages on the terminal, in case of interactive runs)
    8992               for any error messages or unexpected behaviour.}
     93               \vspace{1.5mm}
    9094         \item<4->{In case of batch runs on a remote host, if the job protocol file is missing on the local host,
    9195               try if you can find it in {\tt $\sim$/job\_queue} on the remote host.}
     96               \vspace{1.5mm}
    9297         \item<5->{If the job has run into a time limit, no job protocol files or messages might be created at all (system depending).}
     98               \vspace{1.5mm}
    9399         \item<6->{Some typical errors which may occur during execution of mrun are automatically detected and displayed
    94100               by mrun in the job protocol or on the terminal: \\
    95101               \par\medskip
    96102               Respective error messages will begin with "'+++"'.}
    97          \item<7->{Compile and run time error messages will only appear in the job protocol or on the terminal (in case of interactive runs).}       
     103               \vspace{1.5mm}
     104         \item<7->{Compile and runtime error messages will only appear in the job protocol or on the terminal (in case of interactive runs).}
     105               \vspace{1.5mm}
     106         \item<8->{In case of runtime errors terminal messages may give first helpful hints about where errors are located.}       
    98107      \end{itemize}
    99108   \end{itemize}
     
    122131
    123132% Folie 5
    124 \begin{frame}
     133\begin{frame}[fragile]
    125134   \frametitle{Debugging Runtime Errors (II)}
    126135   \small
    127    \tikzstyle{box} = [rectangle, draw, text width=0.9\textwidth, font=\scriptsize]
    128    \begin{itemize}
    129       \item{The configuration file {\tt .mrun.config.default} looks like this:}
    130    \end{itemize}
    131    \uncover<2->{
    132    \begin{tikzpicture}     
    133       \node[box](box){ \begin{tabbing}
    134          .\\
    135          \# The next line is just an example. Add your own line below or replace this line. \\
    136          \%host\_identifier \quad myhostname  \textless hi\textgreater \\
    137          \# \\
    138          \# The next block contains all informations for compiling the PALM code \\
    139          \textbf{\# This is the block for the optimized version}
    140          . \\
    141          \%fopts \qquad \= -xS:-fpe0:-O3:-r8:... \qquad \textless hi\textgreater parallel \\
    142          \%lopts \> -xS:-fpe0:-O3:-r8:... \qquad \textless hi\textgreater parallel \\
    143          . \\
    144          . \\
    145          \textbf{\# This is the block for the debug version}
    146          . \\
    147          \%fopts \qquad \= -C:-fpe0:-debug:-traceback:-O0:... \qquad \textless hi\textgreater parallel \textbf{trace} \\
    148          \%lopts \qquad \> -C:-fpe0:-debug:-traceback:-O0:... \qquad \textless hi\textgreater parallel \textbf{trace} \\
    149          . \\
    150         \end{tabbing}};
    151    \end{tikzpicture}}
     136   \tikzstyle{yellow} = [rectangle, draw, fill=yellow!30, text width=0.9\textwidth, font=\Tiny]
     137   \tikzstyle{box} = [rectangle, draw, text width=0.95\textwidth, font=\scriptsize]
     138   \begin{itemize}
     139      \item{The configuration file {\tt .mrun.config.default} looks like this:} \\
     140      \ \\
     141      \onslide<2->
     142      \begin{tikzpicture}
     143         \node [yellow]{\begin{lstlisting}   
     144.
     145# The next line is just an example. Add your own line below or replace this line.
     146%host_identifier   myhostname  lcmy
     147#
     148# The next block contains all informations for compiling the PALM code
     149# This is the block for the optimized version
     150%fopts             -I:<replace by mpi include path>:-fpe0:-O3:-xHost:...    <hi> parallel
     151%lopts             -L:<replace by mpi library path>:-fpe0:-O3:-xHost:...    <hi> parallel
     152.
     153.
     154# This is the block for the debug version
     155%fopts             -C:-check:nooutput_conversion:-fpe0:-debug:...           <hi> parallel trace
     156%lopts             -C:-check:nooutput_conversion:-fpe0:-debug:...           <hi> parallel trace
     157.
     158\end{lstlisting}
     159         };
     160      \end{tikzpicture}
     161%   \begin{tikzpicture}     
     162%      \node[box](box){ \begin{tabbing}
     163%         .\\
     164%         \# The next line is just an example. Add your own line below or replace this line. \\
     165%         \%host\_identifier \quad myhostname \quad lcmy \\
     166%         \# \\
     167%         \# The next block contains all informations for compiling the PALM code \\
     168%         \textbf{\# This is the block for the optimized version}
     169%         . \\
     170%         \%fopts \quad \= -xS:-nbs:-convert:...   \qquad \= \textless hi\textgreater parallel \\
     171%         \%lopts \> -xS:-nbs:-Vaxlib:-L:...        \> \textless hi\textgreater parallel \\
     172%         . \\
     173%         . \\
     174%         \textbf{\# This is the block for the debug version}
     175%         . \\
     176%         \%fopts \quad \= -C:-check:nooutput\_conversion:-fpe0:-debug:-traceback:... \quad \textless hi\textgreater parallel \textbf{trace} \\
     177%         \%lopts \quad \> -C:-check:nooutput\_conversion:-fpe0:-debug:-traceback:... \quad \textless hi\textgreater parallel \textbf{trace} \\
     178%         . \\
     179%        \end{tabbing}};
     180%   \end{tikzpicture}
     181   \end{itemize}
    152182\end{frame}
    153183
     
    159189   \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\scriptsize]
    160190   \tikzstyle{green2} = [rectangle, draw, fill=green!75!black, text width=0.15\textwidth, font=\scriptsize]
    161    \tikzstyle{green3} = [rectangle, draw, fill=green!75!black, text width=0.35\textwidth, font=\scriptsize]
    162    \tikzstyle{green4} = [rectangle, draw, fill=green!75!black, text width=0.4\textwidth, font=\scriptsize]
     191   \tikzstyle{green3} = [rectangle, draw, fill=green!75!black, text width=0.34\textwidth, font=\scriptsize]
     192   \tikzstyle{green4} = [rectangle, draw, fill=green!75!black, text width=0.41\textwidth, font=\scriptsize]
    163193   \tikzstyle{line} = [draw, -]
    164194   \tikzstyle{arrow} = [draw, -latex']
     
    167197            The pre-compiled code will be put into different make depositories, one for each block:}
    168198   \end{itemize}
     199   \vspace{-5mm}
    169200   \begin{center}
    170201   \begin{tikzpicture} [auto]
     
    218249         \footnotesize
    219250         \item<4->{the print/write debugger}
    220          \item<5->{debuggers like dbx or GUI-based debuggers like totalview \\(see \textbf{www.totalviewtech.com)}}
    221          \item<6->{more detailed informations about using totalview on the HLRN system are given under:
     251         \item<5->{debuggers like dbx or GUI-based debuggers like "'totalview"' or "'Allinea DDT"'}
     252         \item<6->{more detailed informations about using Allinea DDT on the HLRN-III system are given under:
    222253               \par\medskip
    223                \textbf{http://palm.muk.uni-hannover.de/wiki/doc/app/machine/hlrnII}}
     254               \textbf{https://www.hlrn.de/home/view/System3/AllineaDDT}\\
     255               \ \\}
     256         \item<7->{\texttt{mrun}-script will soon be adjusted for allowing to use the "'Allinea DDT"' debugger.}
    224257      \end{itemize}     
    225258   \end{itemize}
Note: See TracChangeset for help on using the changeset viewer.