Changeset 1515 for palm/trunk/TUTORIAL/SOURCE/debugging.tex
- Timestamp:
- Jan 2, 2015 11:35:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/TUTORIAL/SOURCE/debugging.tex
r1232 r1515 6 6 \usepackage{ngerman} 7 7 \usepackage{pgf} 8 \usetheme{Dresden}9 8 \usepackage{subfigure} 10 9 \usepackage{units} … … 14 13 \usepackage{xmpmulti} 15 14 \usepackage{tikz} 16 \usetikzlibrary{shapes,arrows,positioning ,decorations.pathreplacing}15 \usetikzlibrary{shapes,arrows,positioning} 17 16 \def\Tiny{\fontsize{4pt}{4pt}\selectfont} 18 19 %---------- neue Pakete20 17 \usepackage{amsmath} 21 18 \usepackage{amssymb} 22 19 \usepackage{multicol} 23 20 \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} 27 29 \date{last update: \today} 28 30 \event{PALM Seminar} … … 30 32 \setbeamersize{text margin left=.5cm,text margin right=.2cm} 31 33 \setbeamertemplate{footline} 32 { %34 { 33 35 \begin{beamercolorbox}[rightskip=-0.1cm]& 34 36 {\includegraphics[height=0.65cm]{imuk_logo.pdf}\hfill \includegraphics[height=0.65cm]{luh_logo.pdf}} 35 37 \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 } 43 45 44 46 \title[PALM - Debugging]{PALM - Debugging} 45 \author{ Siegfried Raasch}47 \author{PALM group} 46 48 47 49 % Notes: … … 86 88 \item<2->{\textbf{Find out the principal reason of the error(s):}} 87 89 \begin{itemize} 90 \scriptsize 88 91 \item<3->{ Carefully analyze the job protocol file (or messages on the terminal, in case of interactive runs) 89 92 for any error messages or unexpected behaviour.} 93 \vspace{1.5mm} 90 94 \item<4->{In case of batch runs on a remote host, if the job protocol file is missing on the local host, 91 95 try if you can find it in {\tt $\sim$/job\_queue} on the remote host.} 96 \vspace{1.5mm} 92 97 \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} 93 99 \item<6->{Some typical errors which may occur during execution of mrun are automatically detected and displayed 94 100 by mrun in the job protocol or on the terminal: \\ 95 101 \par\medskip 96 102 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.} 98 107 \end{itemize} 99 108 \end{itemize} … … 122 131 123 132 % Folie 5 124 \begin{frame} 133 \begin{frame}[fragile] 125 134 \frametitle{Debugging Runtime Errors (II)} 126 135 \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} 152 182 \end{frame} 153 183 … … 159 189 \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\scriptsize] 160 190 \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.3 5\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] 163 193 \tikzstyle{line} = [draw, -] 164 194 \tikzstyle{arrow} = [draw, -latex'] … … 167 197 The pre-compiled code will be put into different make depositories, one for each block:} 168 198 \end{itemize} 199 \vspace{-5mm} 169 200 \begin{center} 170 201 \begin{tikzpicture} [auto] … … 218 249 \footnotesize 219 250 \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 HLRNsystem 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: 222 253 \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.} 224 257 \end{itemize} 225 258 \end{itemize}
Note: See TracChangeset
for help on using the changeset viewer.