[1105] | 1 | % $Id: installation.tex 1205 2013-07-15 10:55:47Z raasch $ |
---|
| 2 | \input{header_tmp.tex} |
---|
| 3 | |
---|
| 4 | \usepackage[utf8]{inputenc} |
---|
| 5 | \usepackage{ngerman} |
---|
| 6 | \usepackage{pgf} |
---|
| 7 | \usetheme{Dresden} |
---|
| 8 | \usepackage{subfigure} |
---|
| 9 | \usepackage{units} |
---|
| 10 | \usepackage{multimedia} |
---|
| 11 | \usepackage{hyperref} |
---|
| 12 | \newcommand{\event}[1]{\newcommand{\eventname}{#1}} |
---|
| 13 | \usepackage{xmpmulti} |
---|
| 14 | \usepackage{tikz} |
---|
| 15 | \usetikzlibrary{shapes,arrows,positioning,decorations.pathreplacing} |
---|
| 16 | \def\Tiny{\fontsize{4pt}{4pt}\selectfont} |
---|
| 17 | |
---|
| 18 | %---------- neue Pakete |
---|
| 19 | \usepackage{amsmath} |
---|
| 20 | \usepackage{amssymb} |
---|
| 21 | \usepackage{multicol} |
---|
| 22 | \usepackage{pdfcomment} |
---|
| 23 | \usepackage{xcolor} |
---|
| 24 | |
---|
| 25 | \institute{Institut fÌr Meteorologie und Klimatologie, Leibniz UniversitÀt Hannover} |
---|
| 26 | \date{last update: \today} |
---|
| 27 | \event{PALM Seminar} |
---|
| 28 | \setbeamertemplate{navigation symbols}{} |
---|
| 29 | \setbeamersize{text margin left=.5cm,text margin right=.2cm} |
---|
| 30 | \setbeamertemplate{footline} |
---|
| 31 | {% |
---|
| 32 | \begin{beamercolorbox}[rightskip=-0.1cm]& |
---|
| 33 | {\includegraphics[height=0.65cm]{imuk_logo.pdf}\hfill \includegraphics[height=0.65cm]{luh_logo.pdf}} |
---|
| 34 | \end{beamercolorbox} |
---|
| 35 | \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% |
---|
| 36 | leftskip=.3cm,rightskip=0.3cm plus1fil]{title in head/foot}% |
---|
| 37 | {\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor} \hfill \eventname \hfill \insertframenumber \; / \inserttotalframenumber}% |
---|
| 38 | \end{beamercolorbox}% |
---|
| 39 | % \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}% |
---|
| 40 | % \end{beamercolorbox} |
---|
| 41 | }%\logo{\includegraphics[width=0.3\textwidth]{luhimuk_logo.eps}} |
---|
| 42 | |
---|
| 43 | \title[PALM - Installation]{PALM - Installation} |
---|
| 44 | \author{Siegfried Raasch} |
---|
| 45 | |
---|
| 46 | % Notes: |
---|
| 47 | % jede subsection bekommt einen punkt im menu (vertikal ausgerichtet. |
---|
| 48 | % jeder frame in einer subsection bekommt einen punkt (horizontal ausgerichtet) |
---|
| 49 | \begin{document} |
---|
| 50 | |
---|
| 51 | % Folie 1 |
---|
| 52 | \begin{frame} |
---|
| 53 | \titlepage |
---|
| 54 | \end{frame} |
---|
| 55 | |
---|
| 56 | % Folie 2 |
---|
| 57 | \begin{frame} |
---|
| 58 | \frametitle{Before we start: Some Definitions About Runs (I)} |
---|
| 59 | \begin{itemize} |
---|
| 60 | \item<1->{Interactive run} |
---|
| 61 | \begin{itemize} |
---|
| 62 | \item<1->{Run command ({\tt mrun}) is called in terminal and program (PALM) immediately starts to run.} |
---|
| 63 | \end{itemize} |
---|
| 64 | \item<2->{Batch run} |
---|
| 65 | \begin{itemize} |
---|
| 66 | \item<2->{Run command is called in terminal and creates a so called batch job, which is send to a queueing system. It may run at a later time (over night), depending on how many other jobs are waiting in the queue.} |
---|
| 67 | \end{itemize} |
---|
| 68 | \item<3->{Batch run on \textcolor{red}{remote} machine} |
---|
| 69 | \begin{itemize} |
---|
| 70 | \item<3->{Like a batch run, but the batch job is send (via {\tt scp}) to a queue on a \textcolor{red}{remote} computer.} |
---|
| 71 | \end{itemize} |
---|
| 72 | \end{itemize} |
---|
| 73 | \end{frame} |
---|
| 74 | |
---|
| 75 | % Folie 3 |
---|
| 76 | \begin{frame} |
---|
| 77 | \frametitle{Before we start: Some Definitions About Runs (II)} |
---|
| 78 | |
---|
| 79 | \begin{itemize} |
---|
| 80 | \item<1->{Initial run / restart run}\\ \par\medskip |
---|
| 81 | \begin{itemize} |
---|
| 82 | \item<2->{Every queuing system has CPU time limits. If a run needs more time than these limits allow, it has to be split into several parts.}\\ \par\medskip |
---|
| 83 | \item<3->{The first part is called \textbf{initial run}.}\\ \par\medskip |
---|
| 84 | \item<4->{The other parts are called \textbf{restart runs}.}\\ \par\medskip |
---|
| 85 | \item<5->{All runs together form a so-called \textbf{job-chain}.}\\ \par\medskip |
---|
| 86 | \end{itemize} |
---|
| 87 | \end{itemize} |
---|
| 88 | \end{frame} |
---|
| 89 | |
---|
| 90 | % Folie 4 |
---|
| 91 | \begin{frame} |
---|
| 92 | \frametitle{PALM - Installation Overview} |
---|
| 93 | |
---|
| 94 | \small |
---|
| 95 | \begin{itemize} |
---|
| 96 | \item<1->{Participants of this seminar will install and use PALM in different ways:} |
---|
| 97 | \item<2->{Installation on a \textcolor{green}{local} computer (either a private Linux notebook or the Linux-cluster at IMUK) and run interactively.} |
---|
| 98 | \item<3->{Installation on a \textcolor{green}{local}+\textcolor{red}{remote} computer (Linux-cluster at IMUK + HLRN) and run on the \textcolor{red}{remote} computer (at HLRN) in batch mode. This requires the \textcolor{green}{local} computer to have a fixed IP-address (no DHCP).} |
---|
| 99 | \item<4->{We will start with installing PALM on a \textcolor{green}{local} computer and running it interactively.} |
---|
| 100 | \end{itemize} |
---|
| 101 | \end{frame} |
---|
| 102 | |
---|
| 103 | % Folie 5 |
---|
| 104 | \begin{frame} |
---|
| 105 | \frametitle{PALM - Installation} |
---|
| 106 | |
---|
| 107 | \begin{itemize} |
---|
| 108 | \item<1->{The following slides describe the installation procedure for running PALM on a \textcolor{green}{local} computer and how to verify the installation.}\\ \par\medskip |
---|
| 109 | \item<2->{The installation instructions can also be found in the PALM online-documentation under\\ \par\medskip |
---|
| 110 | \url{http://palm.muk.uni-hannover.de/wiki/doc/install}} |
---|
| 111 | \end{itemize} |
---|
| 112 | \end{frame} |
---|
| 113 | |
---|
| 114 | % Folie 6 |
---|
| 115 | \begin{frame} |
---|
[1205] | 116 | \frametitle{PALM - Installation / General Requirements (I)} |
---|
[1105] | 117 | |
---|
| 118 | \footnotesize |
---|
| 119 | \begin{itemize} |
---|
| 120 | \item<1->[1.]{The Korn-shell (AT\&T ksh or public domain ksh) must be available under {\tt /bin/ksh}.} |
---|
| 121 | \item<2->[2.]{The netCDF-library with version number not earlier than 3.6.3 (for netCDF, see under www.unidata.ucar.edu).} |
---|
| 122 | \item<3->[3.]{A FORTRAN90/95 compiler.} |
---|
| 123 | \item<4->[4.]{The Message Passing Interface (MPI), if the parallel version of PALM shall be used.} |
---|
| 124 | \item<5->[5.]{On the \textcolor{green}{local} computer, the revision control system subversion (see subversion.tigris.org). This is already included in many Linux distributions (e.g. SuSe). Subversion requires port 3690 to be open for tcp/udp. If there are firewall restrictions concerning this port, the PALM code cannot be accessed. The user needs a permit to access the PALM repository. For getting a permit please contact the PALM group (raasch@muk.uni-hannover.de) and define a username and a password under which you like to access the repository. This username and password also gives you access to advanced features of the online documentation. (trac-server)} |
---|
| 125 | \end{itemize} |
---|
| 126 | \end{frame} |
---|
| 127 | |
---|
[1205] | 128 | |
---|
| 129 | % Folie 6a |
---|
| 130 | \begin{frame} |
---|
| 131 | \frametitle{PALM - Installation / General Requirements (II)} |
---|
| 132 | |
---|
| 133 | \footnotesize |
---|
| 134 | \begin{itemize} |
---|
| 135 | \item<1->[6.]{All participants of this seminar are already permitted to access the repository. Use \dq seminar2012\dq as username and \dq palm2012\dq as password.} |
---|
| 136 | \item<2->[7.]{For the installation of the PALM code on the \textcolor{red}{remote} computer (at HLRN), a sufficient virtual memory has to be allocated on the \textcolor{red}{remote} computer. The value of 256 MByte that is set by \texttt{ulimit -S -v 256000} in the users profile under {\tt $\sim$/.profile} is not sufficient. Please remove this line in your user profile in order to disable the virtual memory limitation.} |
---|
| 137 | \end{itemize} |
---|
| 138 | \end{frame} |
---|
| 139 | |
---|
[1105] | 140 | % Folie 7 |
---|
| 141 | \begin{frame} |
---|
| 142 | \frametitle{List of Usernames / Passwords for PALM 2012 Seminar} |
---|
| 143 | |
---|
| 144 | \begin{tabbing} |
---|
| 145 | IP-address of IMUK: \qquad \=inferno.muk.uni-hannover.de (130.75.105.5)\\ |
---|
| 146 | IP-address of SGI-ICE: \>hicegate.hlrn.de (130.75.4.101) |
---|
| 147 | \end{tabbing} |
---|
| 148 | \tiny |
---|
| 149 | \begin{tabular}[c]{|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|} \hline |
---|
| 150 | \textbf{Participant} & \textbf{Username on Linux-cluster (IMUK)} & \textbf{Password (IMUK)} & \textbf{Username on SGI-ICE (HLRN)} & \textbf{Password (HLRN)} \\ \hline |
---|
| 151 | Lennart Böske & boeske & ... & hzkurs01 & @PSR0723 \\ \hline |
---|
| 152 | & & & & \\ \hline |
---|
| 153 | & & & & \\ \hline |
---|
| 154 | & & & & \\ \hline |
---|
| 155 | & & & & \\ \hline |
---|
| 156 | & & & & \\ \hline |
---|
| 157 | & & & & \\ \hline |
---|
| 158 | & & & & \\ \hline |
---|
| 159 | & & & & \\ \hline |
---|
| 160 | & & & & \\ \hline |
---|
| 161 | & & & & \\ \hline |
---|
| 162 | & & & & \\ \hline |
---|
| 163 | & & & & \\ \hline |
---|
| 164 | \end{tabular} |
---|
| 165 | \end{frame} |
---|
| 166 | |
---|
| 167 | % Folie 8 |
---|
| 168 | \begin{frame} |
---|
| 169 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Package Download on Linux Notebooks} |
---|
| 170 | |
---|
| 171 | \tikzstyle{yellow1} = [rectangle, draw, fill=yellow!100, text width=0.2\textwidth, font=\tiny] |
---|
| 172 | \tikzstyle{yellow2} = [rectangle, draw, fill=yellow!100, text width=0.3\textwidth, font=\tiny] |
---|
| 173 | \tikzstyle{yellow3} = [rectangle, draw, fill=yellow!100, text width=0.1\textwidth, font=\tiny] |
---|
| 174 | \tikzstyle{yellow4} = [rectangle, draw, fill=yellow!100, text width=0.15\textwidth, font=\tiny] |
---|
| 175 | \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 176 | \tikzstyle{green2} = [rectangle, draw, fill=green!75!black, text width=0.15\textwidth, font=\scriptsize] |
---|
| 177 | \tikzstyle{green3} = [rectangle, draw, fill=green!75!black, text width=0.35\textwidth, font=\scriptsize] |
---|
| 178 | \tikzstyle{green4} = [rectangle, draw, fill=green!75!black, text width=0.4\textwidth, font=\scriptsize] |
---|
| 179 | \tikzstyle{line} = [draw, -] |
---|
| 180 | \tikzstyle{arrow} = [draw, -latex'] |
---|
| 181 | |
---|
| 182 | \scriptsize |
---|
| 183 | \uncover<2->{It is assumed that the ksh (Korn-shell) or bash is the userâs default shell!} |
---|
| 184 | \begin{columns}[c] |
---|
| 185 | \column{0.5\textwidth} |
---|
| 186 | \begin{itemize} |
---|
| 187 | \item<3->[1.]{Create your working directory \\ \par\medskip |
---|
| 188 | \qquad {\tt mkdir -p $\sim$/palm/current\_version}} |
---|
| 189 | \end{itemize} |
---|
| 190 | \column{0.42\textwidth} |
---|
| 191 | \uncover<4->{ |
---|
| 192 | \begin{tikzpicture}[auto] |
---|
| 193 | \node[yellow1] (home) {\$HOME/}; |
---|
| 194 | \node[yellow1] (palm) [right=0.4cm of home] {palm/}; |
---|
| 195 | \node[yellow2] (currentv) [right=0.4cm of palm] {current\_version/}; |
---|
| 196 | |
---|
| 197 | \path[line] (home) -- (palm); |
---|
| 198 | \path[line] (palm) -- (currentv); |
---|
| 199 | \end{tikzpicture} |
---|
| 200 | } |
---|
| 201 | \end{columns} |
---|
| 202 | \par\medskip |
---|
| 203 | \begin{itemize} |
---|
| 204 | \item<5->[2.]{Create a working copy of the newest PALM version (currently 3.8) from the subversion repository: \\ \par\medskip |
---|
| 205 | \qquad {\tt cd $\sim$/palm/current\_version} \\ |
---|
| 206 | \qquad {\tt svn checkout --username \textless your username\textgreater \textbackslash} \\ |
---|
| 207 | \qquad \qquad {\tt svn://130.75.105.7/palm/tags/release-3.8 trunk} } \\ \par\medskip |
---|
| 208 | \uncover<6->{ |
---|
| 209 | \begin{tikzpicture}[auto] |
---|
| 210 | \hspace{3cm} |
---|
| 211 | \node[yellow3] (home) {\$HOME/}; |
---|
| 212 | \node[yellow3] (palm) [right=0.4cm of home] {palm/}; |
---|
| 213 | \node[yellow4] (currentv) [right=0.4cm of palm] {current\_version/}; |
---|
| 214 | \node[green1] (trunk) [right=0.4cm of currentv] {trunk/}; |
---|
| 215 | |
---|
| 216 | \path[line] (home) -- (palm); |
---|
| 217 | \path[line] (palm) -- (currentv); |
---|
| 218 | \path[line] (currentv) -- (trunk); |
---|
| 219 | \end{tikzpicture} |
---|
| 220 | } |
---|
| 221 | \par\medskip |
---|
| 222 | \item<7->[]{Alternatively, check out the most recent (test) version: \\ \par\smallskip |
---|
| 223 | \qquad {\tt cd $\sim$/palm/current\_version} \\ |
---|
| 224 | \qquad {\tt svn checkout --username \textless your username\textgreater \textbackslash} \\ |
---|
| 225 | \qquad \qquad {\tt svn://130.75.105.7/palm/tags/release-3.8 trunk} }\\ \par\medskip |
---|
| 226 | \item<8->[]{Generally, this version may contain bugs and new features may not be documented! \textbf{Anyhow, using the most recent version is recommended for this seminar!}} |
---|
| 227 | \end{itemize} |
---|
| 228 | \end{frame} |
---|
| 229 | |
---|
| 230 | % Folie 9 |
---|
| 231 | \begin{frame} |
---|
| 232 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Package Download on IMUK-Linux-cluster} |
---|
| 233 | |
---|
| 234 | \tikzstyle{yellow1} = [rectangle, draw, fill=yellow!100, text width=0.2\textwidth, font=\tiny] |
---|
| 235 | \tikzstyle{yellow2} = [rectangle, draw, fill=yellow!100, text width=0.3\textwidth, font=\tiny] |
---|
| 236 | \tikzstyle{yellow3} = [rectangle, draw, fill=yellow!100, text width=0.1\textwidth, font=\tiny] |
---|
| 237 | \tikzstyle{yellow4} = [rectangle, draw, fill=yellow!100, text width=0.15\textwidth, font=\tiny] |
---|
| 238 | \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 239 | \tikzstyle{line} = [draw, -] |
---|
| 240 | |
---|
| 241 | \footnotesize |
---|
| 242 | \begin{itemize} |
---|
| 243 | \item<2->[1.]{Login from the \textcolor{green}{local} desktop or from your notebook using an ssh-client: \\ \par\smallskip |
---|
| 244 | \qquad {\tt ssh -X \textless your IMUK-username\textgreater @inferno.muk.uni-hannover.de}\\ \par\smallskip |
---|
| 245 | FORTRAN-compiler, MPI- and netCDF-libraries and all other required software are already installed.} |
---|
| 246 | \end{itemize} |
---|
| 247 | \begin{columns}[c] |
---|
| 248 | \column{0.5\textwidth} |
---|
| 249 | \begin{itemize} |
---|
| 250 | \item<3->[2.]{Create your working directory \\ \par\medskip |
---|
| 251 | \qquad {\tt mkdir -p $\sim$/palm/current\_version}} |
---|
| 252 | \end{itemize} |
---|
| 253 | \column{0.42\textwidth} |
---|
| 254 | \uncover<4->{ |
---|
| 255 | \begin{tikzpicture}[auto] |
---|
| 256 | \node[yellow1] (home) {\$HOME/}; |
---|
| 257 | \node[yellow1] (palm) [right=0.4cm of home] {palm/}; |
---|
| 258 | \node[yellow2] (currentv) [right=0.4cm of palm] {current\_version/}; |
---|
| 259 | |
---|
| 260 | \path[line] (home) -- (palm); |
---|
| 261 | \path[line] (palm) -- (currentv); |
---|
| 262 | \end{tikzpicture} |
---|
| 263 | } |
---|
| 264 | \end{columns} |
---|
| 265 | \par\medskip |
---|
| 266 | \begin{itemize} |
---|
| 267 | \item<5->[3.]{Check out the most recent PALM version to your working directory: \\ \par\medskip |
---|
| 268 | \qquad {\tt cd $\sim$/palm/current\_version} \\ |
---|
| 269 | \qquad {\tt svn checkout --username \textless your username\textgreater \textbackslash} \\ |
---|
| 270 | \qquad \qquad {\tt svn://130.75.105.7/palm/trunk trunk} } \\ \par\medskip |
---|
| 271 | \uncover<6->{ |
---|
| 272 | \begin{tikzpicture}[auto] |
---|
| 273 | \hspace{3cm} |
---|
| 274 | \node[yellow3] (home) {\$HOME/}; |
---|
| 275 | \node[yellow3] (palm) [right=0.4cm of home] {palm/}; |
---|
| 276 | \node[yellow4] (currentv) [right=0.4cm of palm] {current\_version/}; |
---|
| 277 | \node[green1] (trunk) [right=0.4cm of currentv] {trunk/}; |
---|
| 278 | |
---|
| 279 | \path[line] (home) -- (palm); |
---|
| 280 | \path[line] (palm) -- (currentv); |
---|
| 281 | \path[line] (currentv) -- (trunk); |
---|
| 282 | \end{tikzpicture} |
---|
| 283 | } |
---|
| 284 | \end{itemize} |
---|
| 285 | \end{frame} |
---|
| 286 | |
---|
| 287 | % Folie 10 |
---|
| 288 | \begin{frame} |
---|
| 289 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Package Configuration on Linux Notebooks} |
---|
| 290 | |
---|
| 291 | \tikzstyle{yellow1} = [rectangle, draw, fill=yellow!100, text width=0.2\textwidth, font=\tiny] |
---|
| 292 | \tikzstyle{yellow2} = [rectangle, draw, fill=yellow!100, text width=0.3\textwidth, font=\tiny] |
---|
| 293 | \tikzstyle{yellow3} = [rectangle, draw, fill=yellow!100, text width=0.1\textwidth, font=\tiny] |
---|
| 294 | \tikzstyle{yellow4} = [rectangle, draw, fill=yellow!100, text width=0.15\textwidth, font=\tiny] |
---|
| 295 | \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 296 | \tikzstyle{line} = [draw, -] |
---|
| 297 | \tikzstyle{label} = [rectangle, font=\scriptsize, minimum size=8pt] |
---|
| 298 | |
---|
| 299 | \scriptsize |
---|
| 300 | \begin{itemize} |
---|
| 301 | \item<1->{Set environment variables in the respective profile of the userâs default shell (e.g. in {\tt .profile}, when ksh is used, or in {\tt .bashrc}, when bash is used): \\ \par\medskip |
---|
| 302 | \uncover<2->{{\tiny \textcolor{red}{Note: .profile / .bashrc have to be located in \$HOME; recommended text editors are e.g. xedit / vi}}} \\ \par\medskip |
---|
| 303 | \qquad {\tt export PALM\_BIN=\$HOME/palm/current\_version/trunk/SCRIPTS} \\ |
---|
| 304 | \qquad {\tt export PATH=\$PALM\_BIN:\$PATH}}\\ \par\medskip |
---|
| 305 | \uncover<3->{ |
---|
| 306 | \begin{tikzpicture}[auto, >=latex'] |
---|
| 307 | \hspace{0.5cm} |
---|
| 308 | \node[yellow3] (home) {\$HOME/}; |
---|
| 309 | \node[yellow3] (palm) [right=0.4cm of home] {palm/}; |
---|
| 310 | \node[yellow4] (currentv) [right=0.4cm of palm] {current\_version/}; |
---|
| 311 | \node[green1] (trunk) [right=0.4cm of currentv] {trunk/}; |
---|
| 312 | \node[green1] (scripts) [right=0.4cm of trunk] {SCRIPTS/}; |
---|
| 313 | |
---|
| 314 | \path[line] (home) -- (palm); |
---|
| 315 | \path[line] (palm) -- (currentv); |
---|
| 316 | \path[line] (currentv) -- (trunk); |
---|
| 317 | \path[line] (trunk) -- (scripts); |
---|
| 318 | |
---|
| 319 | \uncover<6->{\draw [->, thick] {(scripts.south) .. controls (8.0,-1.0) and (4.0,-1.0) .. (currentv.south)};} |
---|
| 320 | |
---|
| 321 | \node[label, right=0pt of scripts] (scriptlabelbase2) {}; |
---|
| 322 | \node[label, above=0pt of scriptlabelbase2] (scriptlabelbase1) {}; |
---|
| 323 | \node[label, below=0pt of scriptlabelbase2] (scriptlabelbase3) {}; |
---|
| 324 | \node[label, right=0pt of scriptlabelbase1] (scriptlabel1) {mrun}; |
---|
| 325 | \node[label, right=0pt of scriptlabelbase2] (scriptlabel2) {mbuild}; |
---|
| 326 | \node[label, right=0pt of scriptlabelbase3] (scriptlabel3) {...}; |
---|
| 327 | \end{tikzpicture} |
---|
| 328 | } |
---|
| 329 | \item<4->{Restart the shell (e.g. exit and login (via ssh) again). Otherwise settings are not active.} |
---|
| 330 | \item<5->{Create your personal configuration file, needed by {\tt mbuild} and {\tt mrun}: \\ \par\medskip |
---|
| 331 | \qquad {\tt cd ~/palm/current\_version} \\ |
---|
| 332 | \qquad {\tt cp trunk/SCRIPTS/.mrun.config.default .mrun.config} \\ \par\medskip |
---|
| 333 | \uncover<7->{The next two slides explain parts of the format of the configuration file.}} |
---|
| 334 | \end{itemize} |
---|
| 335 | \end{frame} |
---|
| 336 | |
---|
| 337 | % Folie 11 |
---|
| 338 | \begin{frame} |
---|
| 339 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ The Configuration File (I)} |
---|
| 340 | |
---|
| 341 | \tikzstyle{box} = [rectangle, draw, text width=0.8\textwidth, font=\tiny] |
---|
| 342 | |
---|
| 343 | \small |
---|
| 344 | \begin{itemize} |
---|
| 345 | \item<1->{In the first part of the file, environment-variables used by {\tt mbuild} and {\tt mrun} are set to their required values. The format is like} |
---|
| 346 | \end{itemize} |
---|
| 347 | \uncover<2->{ |
---|
| 348 | \begin{center} |
---|
| 349 | \begin{tikzpicture}[auto, node distance=0] |
---|
| 350 | \node[box](box){ \begin{tabbing} |
---|
| 351 | {\tt \#column 1} \hspace{1.5cm} \={\tt column 2} \hspace{3.5cm} \={\tt column 3} \\ |
---|
| 352 | {\tt \#name of variable} \>{\tt value of variable (must not be used)} \>{\tt scope} \\ |
---|
| 353 | {\tt \#-------------------------------------------------------------------------------------} \\ |
---|
| 354 | {\tt \%mainprog} \>{\tt palm.f90} \\ |
---|
| 355 | {\tt \%base\_directory} \>{\tt \$HOME/palm/current\_version/} \>{\tt \textcolor{blue}{\uncover<4->{lcsgih}}} \\ \end{tabbing}}; |
---|
| 356 | \end{tikzpicture} |
---|
| 357 | \end{center} |
---|
| 358 | } |
---|
| 359 | \begin{itemize} |
---|
| 360 | \item<3->{The configuration file allows settings for different computers \\ (e.g. \textcolor{green}{local} / \textcolor{red}{remote} host). These are done in different blocks of lines, and these blocks are marked with the so-called \textcolor{blue}{host-identifier} of the respective computer. This identifier is given in column 3. No entry in column 3 means that the respective setting is valid for all computers (hosts).} |
---|
| 361 | \end{itemize} |
---|
| 362 | \end{frame} |
---|
| 363 | |
---|
| 364 | % Folie 12 |
---|
| 365 | \begin{frame} |
---|
| 366 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ The Configuration File (II)} |
---|
| 367 | |
---|
| 368 | \tikzstyle{box} = [rectangle, draw, text width=0.65\textwidth, font=\tiny] |
---|
| 369 | |
---|
| 370 | \scriptsize |
---|
| 371 | \begin{itemize} |
---|
| 372 | \item<2->{The host identifier string can be freely chosen, but the first characters must match the type of operating system on the respective host:}\\ \par\medskip |
---|
| 373 | \begin{itemize}\scriptsize |
---|
| 374 | \item<2->{Linux(-Cluster): \hspace{1.15cm} {\tt lc}} |
---|
| 375 | \item<2->{IBM-AIX: \hspace{1.9cm} {\tt ibm}} |
---|
| 376 | \item<2->{NEC-SX: \hspace{2.01cm} {\tt nec}} |
---|
| 377 | \end{itemize} |
---|
| 378 | \par\medskip |
---|
| 379 | \item<3->{Here is an example for settings of compiler names for different hosts: \\ |
---|
| 380 | {\tiny {\tt (compiler\_name}: for compiling MPI-programs, {\tt compiler\_name\_ser}: for compiling serial code)}} |
---|
| 381 | \end{itemize} |
---|
| 382 | \uncover<4->{ |
---|
| 383 | \begin{center} |
---|
| 384 | \begin{tikzpicture}[auto, node distance=0] |
---|
| 385 | \node[box](box){ \begin{tabbing} |
---|
| 386 | {\tt \%compiler\_name} \hspace{1cm} \={\tt mpif90} \hspace{3cm} \={\tt lcsgih} \\ |
---|
| 387 | {\tt \%compiler\_name\_ser} \>{\tt ifort} \>{\tt lcsgih} \\ |
---|
| 388 | {\tt \%compiler\_name} \>{\tt mpif90} \>{\tt lcother} \\ |
---|
| 389 | {\tt \%compiler\_name\_ser} \>{\tt f95} \>{\tt lcother} \\ |
---|
| 390 | {\tt \%compiler\_name} \>{\tt ftn} \>{\tt lcxt4} \\ |
---|
| 391 | {\tt \%compiler\_name\_ser} \>{\tt ftn} \>{\tt lcxt4} |
---|
| 392 | \end{tabbing}}; |
---|
| 393 | \end{tikzpicture} |
---|
| 394 | \end{center} |
---|
| 395 | } |
---|
| 396 | \begin{itemize} |
---|
| 397 | \item<5->{If value-strings contain blanks, they have to be replaced by colon (\dq:\dq): \\ |
---|
| 398 | {\tiny ({\tt fopts}: compiler options to be used)}} |
---|
| 399 | \end{itemize} |
---|
| 400 | \uncover<5->{ |
---|
| 401 | \begin{center} |
---|
| 402 | \begin{tikzpicture}[auto, node distance=0] |
---|
| 403 | \node[box](box){ |
---|
| 404 | {\tt \%fopts} \hspace{0.4cm} {\tt -g:-w:-xT:-O3:-cpp:-r8:-nbs} \hspace{1cm} {\tt lcother parallel}}; |
---|
| 405 | \end{tikzpicture} |
---|
| 406 | \end{center} |
---|
| 407 | } |
---|
| 408 | \end{frame} |
---|
| 409 | |
---|
| 410 | % Folie 13 |
---|
| 411 | \begin{frame} |
---|
| 412 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Configuring {\tt .mrun.config} on Linux Notebooks} |
---|
| 413 | |
---|
| 414 | \small |
---|
| 415 | \begin{itemize} |
---|
| 416 | \item<1->{Now edit the configuration file and adjust it for your \textcolor{green}{local} computer. \\ \par\medskip |
---|
| 417 | For this, you will need informations about all paths where the netCDF- and MPI-libraries reside, as well as the hostname of your \textcolor{green}{local} computer. You can find out the hostname by simply typing the unix-command: \\ \par\medskip |
---|
| 418 | \qquad {\tt hostname}}\\ \par\medskip |
---|
| 419 | \item<2->{The default configuration file assumes that an \textcolor{blue}{Intel FORTRAN compiler} and the \textcolor{orange}{mpich2} - MPI-version is installed on the \textcolor{green}{local} computer.} |
---|
| 420 | \item<3->{Please give all respective \textcolor{cyan}{paths} and replace \textless hi\textgreater by your host identifier.} |
---|
| 421 | \end{itemize} |
---|
| 422 | \end{frame} |
---|
| 423 | |
---|
| 424 | % Folie 14a |
---|
| 425 | \begin{frame} |
---|
| 426 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Configuring {\tt .mrun.config} on Linux Notebooks} |
---|
| 427 | |
---|
| 428 | \tikzstyle{box} = [rectangle, draw, text width=0.9\textwidth, font=\tiny] |
---|
| 429 | |
---|
| 430 | \scriptsize |
---|
| 431 | \begin{itemize} |
---|
| 432 | \item{The default configuration file assumes that an \textcolor{blue}{Intel FORTRAN compiler} and the \textcolor{orange}{mpich2} - MPI-version is installed on the \textcolor{green}{local} computer.} |
---|
| 433 | \item{Please give all respective \textcolor{cyan}{paths} and replace \textless hi\textgreater by your host identifier.} |
---|
| 434 | \end{itemize} |
---|
| 435 | \begin{center} |
---|
| 436 | \begin{tikzpicture}[auto, node distance=0] |
---|
| 437 | \node[box](box){ |
---|
| 438 | {\tt \# The next line is just an example. Add your own line below or replace this line.} \\ |
---|
| 439 | {\tt \%host\_identifier myhostname lcmy} \\ |
---|
| 440 | {\tt \#} \\ |
---|
| 441 | {\tt \# The next block contains all informations for compiling the PALM code} \\ |
---|
| 442 | {\tt \#} \\ |
---|
| 443 | \begin{tabbing} |
---|
| 444 | {\tt \%tmp\_use\_catalog} \hspace{0.3cm} \={\tt /tmp} \hspace{6.0cm} \={\tt <hi> parallel} \\ |
---|
| 445 | {\tt \%compiler\_name} \>{\tt \textcolor{blue}{mpif90}} \>{\tt <hi> parallel} \\ |
---|
| 446 | {\tt \%compiler\_name\_ser} \>{\tt ifort} \>{\tt <hi> parallel} \\ |
---|
| 447 | {\tt \%cpp\_options} \>{\tt \textcolor{orange}{-D\_\_mpi2}:-DMPI\_REAL=MPI\_DOUBLE\_PRECISION:} \>{\tt <hi> parallel} \\ |
---|
| 448 | {\tt } \>{\tt :-DMPI\_2REAL=MPI\_2DOUBLE\_PRECISION:-D\_\_netcdf} \>{\tt } \\ |
---|
| 449 | {\tt \%netcdf\_inc} \>{\tt -I:\textcolor{cyan}{<replace by netcdf include path>}} \>{\tt <hi> parallel} \\ |
---|
| 450 | {\tt \%netcdf\_lib} \>{\tt -L\textcolor{cyan}{<replace by netcdf include path>}:-lnetcdf} \>{\tt <hi> parallel} \\ |
---|
| 451 | {\tt \%fopts} \>{\tt -xS:-cpp:-openmp:-r8:-nbs:-convert:little\_endian:} \>{\tt <hi> parallel} \\ |
---|
| 452 | {\tt } \>{\tt -I:\textcolor{cyan}{<replace by mpi include path>}} \>{\tt } \\ |
---|
| 453 | {\tt \%lopts} \>{\tt -xS:-cpp:-openmp:-r8:-nbs:-Vaxlib:} \>{\tt <hi> parallel} \\ |
---|
| 454 | {\tt } \>{\tt -L\textcolor{cyan}{<replace by mpi library path>}} \>{\tt } \\ |
---|
| 455 | {\tt \# if you want to use your own hostfile, uncomment next line} \>{\tt } \>{\tt } \\ |
---|
| 456 | {\tt \#\%hostfile} \>{\tt \$base\_directory/.hostfile} \>{\tt <hi> parallel} \\ |
---|
| 457 | {\tt \# if you want this host to be used as a \textcolor{red}{remote} host, uncomment next line} \>{\tt } \>{\tt } \\ |
---|
| 458 | {\tt \#\%remote\_username} \>{\tt <replace by your username om this host>} \>{\tt <hi> parallel} |
---|
| 459 | \end{tabbing}}; |
---|
| 460 | \end{tikzpicture} |
---|
| 461 | \end{center} |
---|
| 462 | \end{frame} |
---|
| 463 | |
---|
| 464 | % Folie 14b |
---|
| 465 | \begin{frame} |
---|
| 466 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Configuring {\tt .mrun.config} on Linux Notebooks} |
---|
| 467 | |
---|
| 468 | \tikzstyle{box} = [rectangle, draw, text width=0.9\textwidth, font=\tiny] |
---|
| 469 | |
---|
| 470 | \scriptsize |
---|
| 471 | \begin{itemize} |
---|
| 472 | \item{The default configuration file assumes that an \textcolor{blue}{Intel FORTRAN compiler} and the \textcolor{orange}{mpich2} - MPI-version is installed on the \textcolor{green}{local} computer.} |
---|
| 473 | \item{Please give all respective \textcolor{cyan}{paths} and replace \textless hi\textgreater by your host identifier.} |
---|
| 474 | \end{itemize} |
---|
| 475 | \begin{center} |
---|
| 476 | \begin{tikzpicture}[auto, node distance=0] |
---|
| 477 | \node[box](box){ |
---|
| 478 | {\tt \# The next line is just an example. Add your own line below or replace this line.} \\ |
---|
| 479 | {\tt \%host\_identifier scirocco \textcolor{purple}{lcsci}} \\ |
---|
| 480 | {\tt \#} \\ |
---|
| 481 | {\tt \# The next block contains all informations for compiling the PALM code} \\ |
---|
| 482 | {\tt \#} \\ |
---|
| 483 | \begin{tabbing} |
---|
| 484 | {\tt \%tmp\_use\_catalog} \hspace{0.3cm} \={\tt /tmp} \hspace{6.0cm} \={\tt <hi> parallel} \\ |
---|
| 485 | {\tt \%compiler\_name} \>{\tt \textcolor{blue}{mpif90}} \>{\tt <hi> parallel} \\ |
---|
| 486 | {\tt \%compiler\_name\_ser} \>{\tt ifort} \>{\tt <hi> parallel} \\ |
---|
| 487 | {\tt \%cpp\_options} \>{\tt \textcolor{orange}{-D\_\_mpi2}:-DMPI\_REAL=MPI\_DOUBLE\_PRECISION:} \>{\tt <hi> parallel} \\ |
---|
| 488 | {\tt } \>{\tt :-DMPI\_2REAL=MPI\_2DOUBLE\_PRECISION:-D\_\_netcdf} \>{\tt } \\ |
---|
| 489 | {\tt \%netcdf\_inc} \>{\tt -I:\textcolor{cyan}{<replace by netcdf include path>}} \>{\tt <hi> parallel} \\ |
---|
| 490 | {\tt \%netcdf\_lib} \>{\tt -L\textcolor{cyan}{<replace by netcdf include path>}:-lnetcdf} \>{\tt <hi> parallel} \\ |
---|
| 491 | {\tt \%fopts} \>{\tt -xS:-cpp:-openmp:-r8:-nbs:-convert:little\_endian:} \>{\tt <hi> parallel} \\ |
---|
| 492 | {\tt } \>{\tt -I:\textcolor{cyan}{<replace by mpi include path>}} \>{\tt } \\ |
---|
| 493 | {\tt \%lopts} \>{\tt -xS:-cpp:-openmp:-r8:-nbs:-Vaxlib:} \>{\tt <hi> parallel} \\ |
---|
| 494 | {\tt } \>{\tt -L\textcolor{cyan}{<replace by mpi library path>}} \>{\tt } \\ |
---|
| 495 | {\tt \# if you want to use your own hostfile, uncomment next line} \>{\tt } \>{\tt } \\ |
---|
| 496 | {\tt \#\%hostfile} \>{\tt \$base\_directory/.hostfile} \>{\tt <hi> parallel} \\ |
---|
| 497 | {\tt \# if you want this host to be used as a \textcolor{red}{remote} host, uncomment next line} \>{\tt } \>{\tt } \\ |
---|
| 498 | {\tt \#\%remote\_username} \>{\tt <replace by your username om this host>} \>{\tt <hi> parallel} |
---|
| 499 | \end{tabbing}}; |
---|
| 500 | \end{tikzpicture} |
---|
| 501 | \end{center} |
---|
| 502 | \end{frame} |
---|
| 503 | |
---|
| 504 | % Folie 14c |
---|
| 505 | \begin{frame} |
---|
| 506 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Configuring {\tt .mrun.config} on Linux Notebooks} |
---|
| 507 | |
---|
| 508 | \tikzstyle{box} = [rectangle, draw, text width=0.9\textwidth, font=\tiny] |
---|
| 509 | |
---|
| 510 | \scriptsize |
---|
| 511 | \begin{itemize} |
---|
| 512 | \item{The default configuration file assumes that an \textcolor{blue}{Intel FORTRAN compiler} and the \textcolor{orange}{mpich2} - MPI-version is installed on the \textcolor{green}{local} computer.} |
---|
| 513 | \item{Please give all respective \textcolor{cyan}{paths} and replace \textless hi\textgreater by your host identifier.} |
---|
| 514 | \end{itemize} |
---|
| 515 | \begin{center} |
---|
| 516 | \begin{tikzpicture}[auto, node distance=0] |
---|
| 517 | \node[box](box){ |
---|
| 518 | {\tt \# The next line is just an example. Add your own line below or replace this line.} \\ |
---|
| 519 | {\tt \%host\_identifier scirocco \textcolor{purple}{lcsci}} \\ |
---|
| 520 | {\tt \#} \\ |
---|
| 521 | {\tt \# The next block contains all informations for compiling the PALM code} \\ |
---|
| 522 | {\tt \#} \\ |
---|
| 523 | \begin{tabbing} |
---|
| 524 | {\tt \%tmp\_use\_catalog} \hspace{0.3cm} \={\tt /tmp} \hspace{6.0cm} \={\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 525 | {\tt \%compiler\_name} \>{\tt \textcolor{blue}{mpif90}} \>{\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 526 | {\tt \%compiler\_name\_ser} \>{\tt ifort} \>{\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 527 | {\tt \%cpp\_options} \>{\tt \textcolor{orange}{-D\_\_mpi2}:-DMPI\_REAL=MPI\_DOUBLE\_PRECISION:} \>{\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 528 | {\tt } \>{\tt :-DMPI\_2REAL=MPI\_2DOUBLE\_PRECISION:-D\_\_netcdf} \>{\tt } \\ |
---|
| 529 | {\tt \%netcdf\_inc} \>{\tt -I:\textcolor{cyan}{<replace by netcdf include path>}} \>{\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 530 | {\tt \%netcdf\_lib} \>{\tt -L\textcolor{cyan}{<replace by netcdf include path>}:-lnetcdf} \>{\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 531 | {\tt \%fopts} \>{\tt -xS:-cpp:-openmp:-r8:-nbs:-convert:little\_endian:} \>{\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 532 | {\tt } \>{\tt -I:\textcolor{cyan}{<replace by mpi include path>}} \>{\tt } \\ |
---|
| 533 | {\tt \%lopts} \>{\tt -xS:-cpp:-openmp:-r8:-nbs:-Vaxlib:} \>{\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 534 | {\tt } \>{\tt -L\textcolor{cyan}{<replace by mpi library path>}} \>{\tt } \\ |
---|
| 535 | {\tt \# if you want to use your own hostfile, uncomment next line} \>{\tt } \>{\tt } \\ |
---|
| 536 | {\tt \#\%hostfile} \>{\tt \$base\_directory/.hostfile} \>{\tt \textcolor{purple}{lcsci} parallel} \\ |
---|
| 537 | {\tt \# if you want this host to be used as a \textcolor{red}{remote} host, uncomment next line} \>{\tt } \>{\tt } \\ |
---|
| 538 | {\tt \#\%remote\_username} \>{\tt <replace by your username om this host>} \>{\tt \textcolor{purple}{lcsci} parallel} |
---|
| 539 | \end{tabbing}}; |
---|
| 540 | \end{tikzpicture} |
---|
| 541 | \end{center} |
---|
| 542 | \end{frame} |
---|
| 543 | |
---|
| 544 | % Folie 15 |
---|
| 545 | \begin{frame} |
---|
| 546 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Package Configuration on IMUK-cluster (I)} |
---|
| 547 | |
---|
| 548 | \tikzstyle{yellow1} = [rectangle, draw, fill=yellow!100, text width=0.2\textwidth, font=\tiny] |
---|
| 549 | \tikzstyle{yellow2} = [rectangle, draw, fill=yellow!100, text width=0.3\textwidth, font=\tiny] |
---|
| 550 | \tikzstyle{yellow3} = [rectangle, draw, fill=yellow!100, text width=0.1\textwidth, font=\tiny] |
---|
| 551 | \tikzstyle{yellow4} = [rectangle, draw, fill=yellow!100, text width=0.15\textwidth, font=\tiny] |
---|
| 552 | \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 553 | \tikzstyle{line} = [draw, -] |
---|
| 554 | \tikzstyle{label} = [rectangle, font=\scriptsize, minimum size=8pt] |
---|
| 555 | |
---|
| 556 | \scriptsize |
---|
| 557 | \begin{itemize} |
---|
| 558 | \item<1->[1.]{Login on host inferno:\\ \par\medskip |
---|
| 559 | \qquad {\tt ssh -X \textless your IMUK-username\textgreater @130.75.105.5}} \\ \par\medskip |
---|
| 560 | \item<2->[2.]{Set environment variables in the respective profile of the userâs default shell, (which is .\textcolor{red}{my}profile, on the IMUK-Linux-cluster): \\ \par\medskip |
---|
| 561 | \uncover<3->{\qquad {\tiny \textcolor{red}{Note: .profile / .bashrc have to be located in \$HOME; recommended text editors are e.g. xedit / vi}}} \\ |
---|
| 562 | \qquad {\tt export PALM\_BIN=\$HOME/palm/current\_version/trunk/SCRIPTS} \\ |
---|
| 563 | \qquad {\tt export PATH=\$PALM\_BIN:\$PATH}}\\ \par\medskip |
---|
| 564 | \item<4->[3.]{Restart the shell (e.g. exit and login (via ssh) again). Otherwise settings are not active.}\\ \par\medskip |
---|
| 565 | \item<5->[4.]{Create your personal configuration file, needed by {\tt mbuild} and {\tt mrun}: \\ \par\medskip |
---|
| 566 | \qquad {\tt cd ~/palm/current\_version} \\ |
---|
| 567 | \qquad {\tt cp trunk/SCRIPTS/.mrun.config.imuk\_hlrn .mrun.config} \\ \par\medskip |
---|
| 568 | \uncover<6->{ |
---|
| 569 | \begin{tikzpicture}[auto, >=latex'] |
---|
| 570 | \hspace{0.5cm} |
---|
| 571 | \node[yellow3] (home) {\$HOME/}; |
---|
| 572 | \node[yellow3] (palm) [right=0.4cm of home] {palm/}; |
---|
| 573 | \node[yellow4] (currentv) [right=0.4cm of palm] {current\_version/}; |
---|
| 574 | \node[green1] (trunk) [right=0.4cm of currentv] {trunk/}; |
---|
| 575 | \node[green1] (scripts) [right=0.4cm of trunk] {SCRIPTS/}; |
---|
| 576 | |
---|
| 577 | \path[line] (home) -- (palm); |
---|
| 578 | \path[line] (palm) -- (currentv); |
---|
| 579 | \path[line] (currentv) -- (trunk); |
---|
| 580 | \path[line] (trunk) -- (scripts); |
---|
| 581 | |
---|
| 582 | \uncover<7->{\draw [->, thick] {(scripts.south) .. controls (8.0,-1.0) and (4.0,-1.0) .. (currentv.south)};} |
---|
| 583 | |
---|
| 584 | \node[label, right=0pt of scripts] (scriptlabelbase2) {}; |
---|
| 585 | \node[label, above=0pt of scriptlabelbase2] (scriptlabelbase1) {}; |
---|
| 586 | \node[label, below=0pt of scriptlabelbase2] (scriptlabelbase3) {}; |
---|
| 587 | \node[label, right=0pt of scriptlabelbase1] (scriptlabel1) {mrun}; |
---|
| 588 | \node[label, right=0pt of scriptlabelbase2] (scriptlabel2) {mbuild}; |
---|
| 589 | \node[label, right=0pt of scriptlabelbase3] (scriptlabel3) {...}; |
---|
| 590 | \end{tikzpicture}}} |
---|
| 591 | \end{itemize} |
---|
| 592 | \end{frame} |
---|
| 593 | |
---|
| 594 | % Folie 16 |
---|
| 595 | \begin{frame} |
---|
| 596 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Package Configuration on IMUK-cluster (II)} |
---|
| 597 | |
---|
| 598 | \tikzstyle{box} = [rectangle, draw, text width=0.8\textwidth, font=\tiny] |
---|
| 599 | |
---|
| 600 | \small |
---|
| 601 | \begin{itemize} |
---|
| 602 | \item<1->[5.]{Edit the configuration file and replace the string {\tt<replace by your IMUK username>} by your IMUK username and uncomment the respective lines:\\ \par\medskip |
---|
| 603 | \qquad {\tt vi .mrun.config}} \\ \par\medskip |
---|
| 604 | \begin{itemize} |
---|
| 605 | \item<1->{Old: \\ |
---|
| 606 | \begin{center} |
---|
| 607 | \begin{tikzpicture}[auto, node distance=0] |
---|
| 608 | \node[box](box){ |
---|
| 609 | .\\.\\ |
---|
| 610 | {\tt \# The next block contains all informations for compiling the PALM code}\\ {\tt\#} \\.\\.\\ |
---|
| 611 | \begin{tabbing} |
---|
| 612 | {\tt \#\%remote\_username} \hspace{0.2cm} \={\tt \textcolor{blue}{<replace by your IMUK username>}} \hspace{1.6cm} \={\tt lcmuk parallel} \\ |
---|
| 613 | {\tt \#\%tmp\_use\_catalog} \>{\tt /localdata/\textcolor{blue}{<replace by your IMUK username>}} \>{\tt lcmuk parallel} |
---|
| 614 | \end{tabbing}}; |
---|
| 615 | \end{tikzpicture} |
---|
| 616 | \end{center} |
---|
| 617 | } |
---|
| 618 | \item<2->{New: \\ |
---|
| 619 | \begin{center} |
---|
| 620 | \begin{tikzpicture}[auto, node distance=0] |
---|
| 621 | \node[box](box){ |
---|
| 622 | \begin{tabbing} |
---|
| 623 | {\tt \%remote\_username} \hspace{0.2cm} \={\tt \textcolor{blue}{your\_name}} \hspace{4.1cm} \={\tt lcmuk parallel} \\ |
---|
| 624 | {\tt \%tmp\_use\_catalog} \>{\tt /localdata/\textcolor{blue}{your\_name}} \>{\tt lcmuk parallel} |
---|
| 625 | \end{tabbing}}; |
---|
| 626 | \end{tikzpicture} |
---|
| 627 | \end{center} |
---|
| 628 | } |
---|
| 629 | \end{itemize} |
---|
| 630 | \end{itemize} |
---|
| 631 | \end{frame} |
---|
| 632 | |
---|
| 633 | % Folie 17 |
---|
| 634 | \begin{frame} |
---|
| 635 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Creating the Utility Programs} |
---|
| 636 | |
---|
| 637 | \tikzstyle{blanc} = [rectangle, text width=0\textwidth, font=\scriptsize] |
---|
| 638 | \tikzstyle{white} = [rectangle, text width=0.1\textwidth, font=\scriptsize] |
---|
| 639 | \tikzstyle{yellow1} = [rectangle, draw, fill=yellow!100, text width=0.2\textwidth, font=\tiny] |
---|
| 640 | \tikzstyle{yellow2} = [rectangle, draw, fill=yellow!100, text width=0.3\textwidth, font=\tiny] |
---|
| 641 | \tikzstyle{yellow3} = [rectangle, draw, fill=yellow!100, text width=0.08\textwidth, font=\tiny] |
---|
| 642 | \tikzstyle{yellow4} = [rectangle, draw, fill=yellow!100, text width=0.13\textwidth, font=\tiny] |
---|
| 643 | \tikzstyle{yellow5} = [rectangle, draw, fill=yellow!100, text width=0.05\textwidth, font=\tiny] |
---|
| 644 | \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.08\textwidth, font=\tiny] |
---|
| 645 | \tikzstyle{green2} = [rectangle, draw, fill=green!75!black, text width=0.05\textwidth, font=\tiny] |
---|
| 646 | \tikzstyle{line} = [draw, -] |
---|
| 647 | \tikzstyle{label} = [rectangle, font=\scriptsize, minimum size=8pt] |
---|
| 648 | |
---|
| 649 | \scriptsize |
---|
| 650 | \begin{itemize} |
---|
| 651 | \item<1->{The shellscript {\tt mrun} which is used to run PALM needs a few more utility programs (written in FORTRAN) and the respective executables have to be created on the local host:\\ \par\smallskip |
---|
| 652 | \qquad {\tt cd ~/palm/current\_version} \\ |
---|
| 653 | \qquad {\tt mbuild -u -h <hi>}} \\ \par\bigskip |
---|
| 654 | |
---|
| 655 | \begin{tikzpicture}[auto, >=latex'] |
---|
| 656 | \node[blanc] (base) {}; |
---|
| 657 | \node[blanc] (basebefore) [below=0.0cm of base] {}; |
---|
| 658 | \node[blanc] (baseafter) [below=2.0cm of base] {}; |
---|
| 659 | \uncover<2->{ |
---|
| 660 | \node[white] (before) [left=1.0cm of basebefore] {\textbf{Before:}}; |
---|
| 661 | |
---|
| 662 | \node[yellow3] (home) [below=0.3cm of before] {\$HOME/}; |
---|
| 663 | \node[yellow5] (palm) [right=0.4cm of home] {palm/}; |
---|
| 664 | \node[yellow4] (currentv) [right=0.4cm of palm] {current\_version/}; |
---|
| 665 | \node[green2] (trunk) [right=0.4cm of currentv] {trunk/}; |
---|
| 666 | \node[green1] (utils) [right=0.4cm of trunk] {UTIL/}; |
---|
| 667 | |
---|
| 668 | \path[line] (home) -- (palm); |
---|
| 669 | \path[line] (palm) -- (currentv); |
---|
| 670 | \path[line] (currentv) -- (trunk); |
---|
| 671 | \path[line] (trunk) -- (utils); |
---|
| 672 | |
---|
| 673 | \node[label, right=0pt of utils] (utillabelbase2) {}; |
---|
| 674 | \node[label, above=0pt of utillabelbase2] (utillabelbase1) {}; |
---|
| 675 | \node[label, below=0pt of utillabelbase2] (utillabelbase3) {}; |
---|
| 676 | \node[label, right=0pt of utillabelbase1] (utillabel1) {interpret\_config.f90}; |
---|
| 677 | \node[label, right=0pt of utillabelbase2] (utillabel2) {combine\_plot\_fields.f90}; |
---|
| 678 | } |
---|
| 679 | \uncover<3->{ |
---|
| 680 | \node[white] (after) [left=1.0cm of baseafter] {\textbf{After:}}; |
---|
| 681 | |
---|
| 682 | \node[yellow3] (home2) [below=0.3cm of after] {\$HOME/}; |
---|
| 683 | \node[yellow5] (palm2) [right=0.4cm of home2] {palm/}; |
---|
| 684 | \node[yellow4] (currentv2) [right=0.4cm of palm2] {current\_version/}; |
---|
| 685 | \node[green2] (trunk2) [right=0.4cm of currentv2] {trunk/}; |
---|
| 686 | \node[green1] (scripts) [right=0.4cm of trunk2] {SCRIPTS/}; |
---|
| 687 | |
---|
| 688 | \path[line] (home2) -- (palm2); |
---|
| 689 | \path[line] (palm2) -- (currentv2); |
---|
| 690 | \path[line] (currentv2) -- (trunk2); |
---|
| 691 | \path[line] (trunk2) -- (scripts); |
---|
| 692 | |
---|
| 693 | \node[label, right=0pt of scripts] (scriptlabelbase2) {}; |
---|
| 694 | \node[label, above=0pt of scriptlabelbase2] (scriptlabelbase1) {}; |
---|
| 695 | \node[label, below=0pt of scriptlabelbase2] (scriptlabelbase3) {}; |
---|
| 696 | \node[label, above=0pt of scriptlabelbase1] (scriptlabelbase0) {}; |
---|
| 697 | \node[label, below=0pt of scriptlabelbase3] (scriptlabelbase4) {}; |
---|
| 698 | \node[label, right=0pt of scriptlabelbase0] (scriptlabel0) {mrun}; |
---|
| 699 | \node[label, right=0pt of scriptlabelbase1] (scriptlabel1) {mbuild}; |
---|
| 700 | \node[label, right=0pt of scriptlabelbase2] (scriptlabel2) {interpret\_config\_parallel.x}; |
---|
| 701 | \node[label, right=0pt of scriptlabelbase3] (scriptlabel3) {combine\_plot\_fields\_parallel.x}; |
---|
| 702 | \node[label, right=0pt of scriptlabelbase4] (scriptlabel4) {...}; |
---|
| 703 | } |
---|
| 704 | |
---|
| 705 | \uncover<4->{ |
---|
| 706 | \node[label, above=0pt of scriptlabelbase2] (scriptlabelbase01) {}; |
---|
| 707 | \node[label, right=40pt of scriptlabelbase01] (scriptlabe01) {}; |
---|
| 708 | \node[label, below=0pt of utillabelbase2] (utillabelbase04) {}; |
---|
| 709 | \node[label, right=40pt of utillabelbase04] (utiltlabe04) {}; |
---|
| 710 | |
---|
| 711 | \draw[->, thick] (utiltlabe04) -- (scriptlabe01); |
---|
| 712 | } |
---|
| 713 | \end{tikzpicture} |
---|
| 714 | \end{itemize} |
---|
| 715 | \end{frame} |
---|
| 716 | |
---|
| 717 | % Folie 18 |
---|
| 718 | \begin{frame} |
---|
| 719 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Pre-Compiling the PALM Code} |
---|
| 720 | |
---|
| 721 | \tikzstyle{blanc} = [rectangle, text width=0\textwidth, font=\scriptsize] |
---|
| 722 | \tikzstyle{white} = [rectangle, text width=0.1\textwidth, font=\scriptsize] |
---|
| 723 | \tikzstyle{yellow1} = [rectangle, draw, fill=yellow!100, text width=0.2\textwidth, font=\tiny] |
---|
| 724 | \tikzstyle{yellow2} = [rectangle, draw, fill=yellow!100, text width=0.3\textwidth, font=\tiny] |
---|
| 725 | \tikzstyle{yellow3} = [rectangle, draw, fill=yellow!100, text width=0.08\textwidth, font=\tiny] |
---|
| 726 | \tikzstyle{yellow4} = [rectangle, draw, fill=yellow!100, text width=0.13\textwidth, font=\tiny] |
---|
| 727 | \tikzstyle{yellow5} = [rectangle, draw, fill=yellow!100, text width=0.05\textwidth, font=\tiny] |
---|
| 728 | \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 729 | \tikzstyle{green2} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 730 | \tikzstyle{green3} = [rectangle, draw, fill=green!75!black, text width=0.25\textwidth, font=\tiny] |
---|
| 731 | \tikzstyle{line} = [draw, -] |
---|
| 732 | \tikzstyle{label} = [rectangle, font=\scriptsize, minimum size=8pt] |
---|
| 733 | \tikzstyle{point} = [rectangle, draw, inner sep=0pt,minimum size=0pt,fill=black] |
---|
| 734 | |
---|
| 735 | \scriptsize |
---|
| 736 | \begin{tabbing} |
---|
| 737 | {\textcolor{blue}{Reason:}} \hspace{0.2cm} \={Compilation is time consuming (especially when regarding short test runs).}\\ |
---|
| 738 | {\tt } \>{Using pre-compiled files prevents the code from being repeatedly compiled}\\ |
---|
| 739 | {\tt } \>{for each model run.} |
---|
| 740 | \end{tabbing} |
---|
| 741 | Pre-compiled files are generated by using the command {\tt mbuild}.\\ |
---|
| 742 | {\tt mbuild} performs the following steps:\\ |
---|
| 743 | \begin{itemize} |
---|
| 744 | \item<2->{It copies all source code files from trunk/SOURCE to a make depository, |
---|
| 745 | \begin{tikzpicture}[auto, >=latex'] |
---|
| 746 | \uncover<3->{ |
---|
| 747 | \node[yellow4] (currentv2) {current\_version/}; |
---|
| 748 | |
---|
| 749 | \node[point] (base) [right=0.2cm of currentv2] {}; |
---|
| 750 | \node[blanc] (base1) [above=0.3cm of base] {}; |
---|
| 751 | \node[blanc] (base2) [below=0.3cm of base] {}; |
---|
| 752 | |
---|
| 753 | \node[green2] (trunk2) [right=0.1cm of base1] {trunk/}; |
---|
| 754 | \node[green1] (source) [right=0.4cm of trunk2] {SOURCE/}; |
---|
| 755 | |
---|
| 756 | \path[line] (trunk2) -- (source); |
---|
| 757 | |
---|
| 758 | \node[label, right=0pt of source] (scriptlabelbase2) {}; |
---|
| 759 | \node[label, above=0pt of scriptlabelbase2] (scriptlabelbase1) {}; |
---|
| 760 | \node[label, below=0pt of scriptlabelbase2] (scriptlabelbase3) {}; |
---|
| 761 | \node[label, below=0pt of scriptlabelbase3] (scriptlabelbase4) {}; |
---|
| 762 | \node[label, right=0pt of scriptlabelbase1] (scriptlabel1) {Makefile}; |
---|
| 763 | \node[label, right=0pt of scriptlabelbase2] (scriptlabel2) {advec\_particles.f90}; |
---|
| 764 | \node[label, right=0pt of scriptlabelbase3] (scriptlabel3) {advec\_s\_bc.f90}; |
---|
| 765 | \node[label, right=0pt of scriptlabelbase4] (scriptlabel4) {...}; |
---|
| 766 | |
---|
| 767 | \node[green3] (makedep) [right=0.1cm of base2] {MAKE\_DEPOSITORY\_parallel/}; |
---|
| 768 | |
---|
| 769 | \path[line] (currentv2) -- (base); |
---|
| 770 | \path[line] (base.south) |- (trunk2); |
---|
| 771 | \path[line] (base.north) |- (makedep); |
---|
| 772 | |
---|
| 773 | \draw[->, thick] (scriptlabel3) |- (makedep); |
---|
| 774 | } |
---|
| 775 | \end{tikzpicture} |
---|
| 776 | }\\ |
---|
| 777 | \item<4->{It calls the compiler using the {\tt unix} make mechanism. Compilation informations (i.e. files to be translated, dependencies, etc.) are given in file {\tt trunk/SOURCE/Makefile}. {\tt mbuild} transfers compiler options given in {\tt .mrun.config} to Makefile.}\\ |
---|
| 778 | \item<5->{The compiled files (object files with suffix .o) are stored in the make depository. This directory should \textbf{never} be directly modified by the user.}\\ |
---|
| 779 | \item<6->{If more than one block of settings for the \textcolor{green}{local} host (host identifier) is given in {\tt .mrun.config}, {\tt mbuild} creates further depositories, one for each block ({\tt MAKE\_DEPOSITORY\_block1, MAKE\_DEPOSITORY\_block2}, etc.).}\\ |
---|
| 780 | \end{itemize} |
---|
| 781 | \end{frame} |
---|
| 782 | |
---|
| 783 | % Folie 19 |
---|
| 784 | \begin{frame} |
---|
| 785 | \frametitle{Installing PALM on the \textcolor{green}{local} Computer \\ Pre-Compiling the PALM Code, Running {\tt mbuild}} |
---|
| 786 | |
---|
| 787 | \small |
---|
| 788 | The pre-compiled PALM code is generated with the command\\ \par\medskip |
---|
| 789 | \qquad {\tt mbuild -h \textless host identifier\textgreater}\\ \par\medskip |
---|
| 790 | \begin{itemize} |
---|
| 791 | \item<2->{Informations will appear on the terminal.} |
---|
| 792 | \item<3->{Please read them carefully and answer the questions asked by {\tt mbuild}.} |
---|
| 793 | \item<4->{You will get continuous informations about the progress of compilation.} |
---|
| 794 | \item<5->{Compilation on Intel machines may take several minutes. On multicore systems less time is needed, |
---|
| 795 | because parallel compilation is switched on by default (see setting of environment variable {\tt mopts} in the configuration file).} |
---|
| 796 | \item<6->{No errors should (hopefully) occur, as long as the previous installation steps have been carried out without errors, and as long as the PALM source code has not yet been modified by yourself.} |
---|
| 797 | \end{itemize} |
---|
| 798 | \end{frame} |
---|
| 799 | |
---|
| 800 | % Folie 20 |
---|
| 801 | \begin{frame} |
---|
| 802 | \frametitle{Checking the PALM Installation (I)} |
---|
| 803 | |
---|
| 804 | \tikzstyle{blanc} = [rectangle, text width=0\textwidth, font=\scriptsize] |
---|
| 805 | \tikzstyle{white} = [rectangle, text width=0.1\textwidth, font=\scriptsize] |
---|
| 806 | \tikzstyle{yellow1} = [rectangle, draw, fill=yellow!100, text width=0.2\textwidth, font=\tiny] |
---|
| 807 | \tikzstyle{yellow2} = [rectangle, draw, fill=yellow!100, text width=0.3\textwidth, font=\tiny] |
---|
| 808 | \tikzstyle{yellow3} = [rectangle, draw, fill=yellow!100, text width=0.08\textwidth, font=\tiny] |
---|
| 809 | \tikzstyle{yellow4} = [rectangle, draw, fill=yellow!100, text width=0.13\textwidth, font=\tiny] |
---|
| 810 | \tikzstyle{yellow5} = [rectangle, draw, fill=yellow!100, text width=0.05\textwidth, font=\tiny] |
---|
| 811 | \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 812 | \tikzstyle{green2} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 813 | \tikzstyle{green3} = [rectangle, draw, fill=green!75!black, text width=0.25\textwidth, font=\tiny] |
---|
| 814 | \tikzstyle{line} = [draw, -] |
---|
| 815 | \tikzstyle{label} = [rectangle, font=\scriptsize, minimum size=8pt] |
---|
| 816 | \tikzstyle{point} = [rectangle, draw, inner sep=0pt,minimum size=0pt,fill=black] |
---|
| 817 | |
---|
| 818 | \small |
---|
| 819 | The installation can be checked by running a short PALM test job (\dq example run\dq) and comparing the output of this job with values from a reference file. \\ \par\medskip |
---|
| 820 | The test job will be started by using the mrun-tool.\\ |
---|
| 821 | Details about mrun and its options will be explained later. \\ \par\medskip |
---|
| 822 | \uncover<2->{Pre-requisites on the \textcolor{green}{local} host:}\\ |
---|
| 823 | \begin{itemize} |
---|
| 824 | \item<2->[1.]{Provide the configuration file {\tt .mrun.config} (already done)} |
---|
| 825 | \item<3->[2.]{Provide the parameter file for running the test job (needed for steering PALM):\\ |
---|
| 826 | \qquad {\tt mkdir -p JOBS/example\_cbl/INPUT} \\ |
---|
| 827 | \qquad {\tt cp trunk/INSTALL/example\_cbl\_p3d JOBS/example\_cbl/INPUT/}} |
---|
| 828 | \end{itemize} |
---|
| 829 | \begin{center} |
---|
| 830 | \begin{tikzpicture}[auto, >=latex'] |
---|
| 831 | \uncover<4->{ |
---|
| 832 | \node[yellow4] (currentv2) {current\_version/}; |
---|
| 833 | |
---|
| 834 | \node[point] (base) [right=0.2cm of currentv2] {}; |
---|
| 835 | \node[blanc] (base1) [above=0.3cm of base] {}; |
---|
| 836 | \node[blanc] (base2) [below=0.3cm of base] {}; |
---|
| 837 | |
---|
| 838 | \node[green2] (trunk2) [right=0.1cm of base2] {trunk/}; |
---|
| 839 | \node[green1] (instal) [right=0.4cm of trunk2] {INSTAL/}; |
---|
| 840 | |
---|
| 841 | \path[line] (trunk2) -- (instal); |
---|
| 842 | |
---|
| 843 | \node[yellow3] (jobs) [right=0.1cm of base1] {JOBS/}; |
---|
| 844 | \node[yellow4] (example) [right=0.4cm of jobs] {example\_cbl/}; |
---|
| 845 | \node[yellow3] (input) [right=0.4cm of example] {INPUT/}; |
---|
| 846 | |
---|
| 847 | \path[line] (jobs) -- (example); |
---|
| 848 | \path[line] (example) -- (input); |
---|
| 849 | |
---|
| 850 | \path[line] (currentv2) -- (base); |
---|
| 851 | \path[line] (base.south) |- (jobs); |
---|
| 852 | \path[line] (base.north) |- (trunk2); |
---|
| 853 | } |
---|
| 854 | \uncover<5->{ |
---|
| 855 | \draw[->, thick] (input) |- (instal); |
---|
| 856 | } |
---|
| 857 | \end{tikzpicture} |
---|
| 858 | \end{center} |
---|
| 859 | \end{frame} |
---|
| 860 | |
---|
| 861 | % Folie 21 |
---|
| 862 | \begin{frame} |
---|
| 863 | \frametitle{Checking the PALM Installation (II) \\ on the \textcolor{green}{local} Computer} |
---|
| 864 | |
---|
| 865 | \small |
---|
| 866 | Now the job can be run and results can be compared with the reference file |
---|
| 867 | \begin{itemize} |
---|
| 868 | \item<2->[1.]{If {\tt mpich2} is used (e.g. on the IMUK-cluster), the MPI-daemon has to be started as a background process: \\ \par\medskip |
---|
| 869 | \qquad {\tt mpd \&} } |
---|
| 870 | \item<3->[2.]{Create and start the (interactive) test run using {\tt mrun}: \\ \par\medskip |
---|
| 871 | \qquad {\tt mrun -d example\_cbl -K parallel -X2 -T2 -r \dq d3\# ts\#\dq} \\ \par\bigskip |
---|
| 872 | Confirm the terminal query with \dq y\dq. Messages about the progress of execution will be displayed on the terminal and should end (after about 30 s) with \\ \par\medskip |
---|
| 873 | \qquad {\tt --\textgreater \quad all actions finished} \\ |
---|
| 874 | \qquad {\tt Bye, bye \textless username\textgreater} !!} |
---|
| 875 | \end{itemize} |
---|
| 876 | \end{frame} |
---|
| 877 | |
---|
| 878 | % Folie 22 |
---|
| 879 | \begin{frame} |
---|
| 880 | \frametitle{Checking the PALM Installation (III)} |
---|
| 881 | |
---|
| 882 | \tikzstyle{blanc} = [rectangle, text width=0\textwidth, font=\scriptsize] |
---|
| 883 | \tikzstyle{white} = [rectangle, text width=0.1\textwidth, font=\scriptsize] |
---|
| 884 | \tikzstyle{yellow1} = [rectangle, draw, fill=yellow!100, text width=0.2\textwidth, font=\tiny] |
---|
| 885 | \tikzstyle{yellow2} = [rectangle, draw, fill=yellow!100, text width=0.3\textwidth, font=\tiny] |
---|
| 886 | \tikzstyle{yellow3} = [rectangle, draw, fill=yellow!100, text width=0.08\textwidth, font=\tiny] |
---|
| 887 | \tikzstyle{yellow4} = [rectangle, draw, fill=yellow!100, text width=0.13\textwidth, font=\tiny] |
---|
| 888 | \tikzstyle{yellow5} = [rectangle, draw, fill=yellow!100, text width=0.05\textwidth, font=\tiny] |
---|
| 889 | \tikzstyle{green1} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 890 | \tikzstyle{green2} = [rectangle, draw, fill=green!75!black, text width=0.1\textwidth, font=\tiny] |
---|
| 891 | \tikzstyle{green3} = [rectangle, draw, fill=green!75!black, text width=0.25\textwidth, font=\tiny] |
---|
| 892 | \tikzstyle{line} = [draw, -] |
---|
| 893 | \tikzstyle{label} = [rectangle, font=\scriptsize, minimum size=8pt] |
---|
| 894 | \tikzstyle{point} = [rectangle, draw, inner sep=0pt,minimum size=0pt,fill=black] |
---|
| 895 | |
---|
| 896 | \small |
---|
| 897 | \begin{itemize} |
---|
| 898 | \item<1->[1.]{Check output files:\\ \par\medskip |
---|
| 899 | After the above message has appeared, there should be three files in directory: {\tt JOBS/example\_cbl/MONITORING} with names {\tt example\_cbl\_cpu, example\_cbl\_header} and {\tt example\_cbl\_rc}\\ |
---|
| 900 | \begin{center} |
---|
| 901 | \begin{tikzpicture}[auto, >=latex'] |
---|
| 902 | \uncover<2->{ |
---|
| 903 | \node[yellow4] (currentv) {current\_version/}; |
---|
| 904 | \node[yellow3] (jobs) [right=0.4cm of currentv] {JOBS/}; |
---|
| 905 | \node[yellow4] (example) [right=0.4cm of jobs] {example\_cbl/ |
---|
| 906 | }; |
---|
| 907 | |
---|
| 908 | \path[line] (currentv) -- (jobs); |
---|
| 909 | \path[line] (jobs) -- (example); |
---|
| 910 | |
---|
| 911 | \node[point] (base) [right=0.2cm of example] {}; |
---|
| 912 | \node[blanc] (base1) [above=0.3cm of base] {}; |
---|
| 913 | \node[blanc] (base2) [below=0.3cm of base] {}; |
---|
| 914 | \node[yellow3] (input) [right=0.1cm of base1] {INPUT/}; |
---|
| 915 | \node[yellow4] (monitoring) [right=0.1cm of base2] {MONITORING/}; |
---|
| 916 | |
---|
| 917 | \path[line] (example) -- (base); |
---|
| 918 | \path[line] (base.south) |- (input); |
---|
| 919 | \path[line] (base.north) |- (monitoring); |
---|
| 920 | } |
---|
| 921 | \end{tikzpicture} |
---|
| 922 | \end{center} |
---|
| 923 | } |
---|
| 924 | \item<3->[2.]{Compare the contents of {\tt example\_cbl\_rc} with the contents of a reference file by using the unix command {\tt diff} or, even better, {\tt kdiff3} (if available):\\ \par\medskip |
---|
| 925 | \qquad {\tt cd JOBS/example\_cbl/MONITORING} \\ |
---|
| 926 | \qquad {\tt diff example\_cbl\_rc ../../../trunk/INSTALL/example\_cbl\_rc}\\ \par\medskip |
---|
| 927 | \uncover<4->{ |
---|
| 928 | \textcolor{red}{Except run date, time, and small differences in the version/processor numbers, you should not find any difference between these files!}}} |
---|
| 929 | \end{itemize} |
---|
| 930 | \end{frame} |
---|
| 931 | |
---|
| 932 | % Folie 23 |
---|
| 933 | \begin{frame} |
---|
| 934 | \frametitle{Installing PALM on IMUKâs inferno \\ Step by Step Instructions (I)} |
---|
| 935 | |
---|
| 936 | \footnotesize |
---|
| 937 | \begin{itemize} |
---|
| 938 | \item<2->[1.]{Login on the IMUK-system using the NX-client or an ssh-client:\\ \par\medskip |
---|
| 939 | \qquad {\tt ssh -X \textless your IMUK-username\textgreater @130.75.105.5} \\ \par\medskip |
---|
| 940 | FORTRAN-compiler, MPI- and netCDF-libraries and all other required software are already installed.} |
---|
| 941 | \item<3->[2.]{Download the PALM package by using subversion: \\ \par\medskip |
---|
| 942 | \qquad {\tt mkdir -p $\sim$/palm/current\_version} \\ |
---|
| 943 | \qquad {\tt cd $\sim$/palm/current\_version} \\ |
---|
| 944 | \qquad {\tt svn checkout --username \textless your IMUK-username\textgreater \quad \textbackslash} \\ |
---|
| 945 | \qquad \qquad{\tt svn://130.75.105.7/palm/trunk trunk }} |
---|
| 946 | \item<4->[3.]{Set environment variables: \\ \par\medskip |
---|
| 947 | \qquad {\tt export PALM\_BIN=\$HOME/palm/current\_version/trunk/SCRIPTS} \\ |
---|
| 948 | \qquad {\tt export PATH=\$PALM\_BIN:\$PATH} \\ \par\medskip |
---|
| 949 | Set these variables also in file {\tt .myprofile.} or \\ \par\medskip |
---|
| 950 | \qquad {\tt cp /home/raasch/.myprofile \qquad \$HOME}} |
---|
| 951 | \end{itemize} |
---|
| 952 | \end{frame} |
---|
| 953 | |
---|
| 954 | % Folie 24 |
---|
| 955 | \begin{frame} |
---|
| 956 | \frametitle{Installing PALM on IMUKâs inferno \\ Step by Step Instructions (II)} |
---|
| 957 | |
---|
| 958 | \footnotesize |
---|
| 959 | \begin{itemize} |
---|
| 960 | \item<1->[4.]{A pre-configured configuration file for the IMUK/HLRN system is available: \\ \par\medskip |
---|
| 961 | \qquad{\tt cp trunk/SCRIPTS/.mrun.config.imuk\_hlrn .mrun.config}}\\ \par\medskip |
---|
| 962 | \item<2->[5.]{Edit this file and replace the string \textless replace by your IMUK username\textgreater \ with your IMUK-username. (Do not forget to uncomment the respective two lines!)} |
---|
| 963 | \item<3->[6.]{Create the utility programs: \\ \par\medskip |
---|
| 964 | \qquad {\tt mbuild -u -h lcmuk}}\\ \par\medskip |
---|
| 965 | \item<4->[7.]{Pre-compile the PALM code:\\ \par\medskip |
---|
| 966 | \qquad{\tt mbuild -h lcmuk}}\\ \par\medskip |
---|
| 967 | \item<5->[8.]{Provide the parameter file: \\ \par\medskip |
---|
| 968 | \qquad{\tt mkdir -p JOBS/example\_cbl/INPUT} \\ |
---|
| 969 | \qquad{\tt cp trunk/INSTALL/example\_cbl\_p3d JOBS/example\_cbl/INPUT}} |
---|
| 970 | \end{itemize} |
---|
| 971 | \end{frame} |
---|
| 972 | |
---|
| 973 | % Folie 25 |
---|
| 974 | \begin{frame} |
---|
| 975 | \frametitle{Installing PALM on IMUKâs inferno \\ Step by Step Instructions (III)} |
---|
| 976 | |
---|
| 977 | \footnotesize |
---|
| 978 | \begin{itemize} |
---|
| 979 | \item<1->[9.]{Carry out the test run: \\ \par\medskip |
---|
| 980 | \qquad{\tt mrun -d example\_cbl -K parallel -X2 -T2 -r \dq d3\#\dq}} |
---|
| 981 | \item<2->[10.]{Check results (after job has finished): \\ \par\medskip |
---|
| 982 | \qquad{\tt cd JOBS/example\_cbl/MONITORING} \\ |
---|
| 983 | \qquad{\tt kdiff3 example\_cbl\_rc ../../../trunk/INSTALL/example\_cbl\_rc}} |
---|
| 984 | \end{itemize} |
---|
| 985 | \end{frame} |
---|
| 986 | |
---|
| 987 | % Folie 26 |
---|
| 988 | \begin{frame} |
---|
| 989 | \frametitle{Installing PALM on a \textcolor{red}{remote} Computer (HLRN) \\ Step by Step Instructions (I)} |
---|
| 990 | \footnotesize |
---|
| 991 | \begin{itemize} |
---|
| 992 | \item<1->[1.]{Create your working directory on the \textcolor{red}{remote} host: \\ \par\medskip |
---|
| 993 | \qquad {\tt ssh \textless your HLRN-username\textgreater@hicegate.hlrn.de}\\ |
---|
| 994 | \qquad {\tt mkdir -p $\sim$/palm/current\_version}} |
---|
| 995 | \item<2->[2.]{Set environment variables on the \textcolor{red}{remote} host: \\ \par\medskip |
---|
| 996 | \qquad{\tt export PALM\_BIN=\$HOME/palm/current\_version/trunk/SCRIPTS} \\ |
---|
| 997 | \qquad{\tt export PATH=\$PALM\_BIN:\$PATH} \\ \par\medskip |
---|
| 998 | This has to be done in file {\tt $\sim$/.bashrc} or in file {\tt $\sim$/.profile}, depending on your default shell. You can get your default shell via command: \\ \par\medskip |
---|
| 999 | \qquad{\tt echo \$SHELL}} |
---|
[1205] | 1000 | \item<3->[3.]{Please also remove the line \texttt{ulimit -S -v 256000} in file {\tt $\sim$/.profile} to disable the virtual memory limitation of 256 MByte that is set for your seminar user account.} |
---|
[1105] | 1001 | \end{itemize} |
---|
| 1002 | \end{frame} |
---|
| 1003 | |
---|
| 1004 | % Folie 27 |
---|
| 1005 | \begin{frame} |
---|
| 1006 | \frametitle{Installing PALM on a \textcolor{red}{remote} Computer (HLRN) \\ Step by Step Instructions (II)} |
---|
| 1007 | \footnotesize |
---|
| 1008 | \begin{itemize} |
---|
[1205] | 1009 | \item<1->[4.]{On the \textcolor{green}{local} host, edit your configuration file ({\tt .mrun.config}), and replace in the lcsgih-block \textless replace by your HLRN username\textgreater with your HLRN-username.}\\ \par\medskip |
---|
| 1010 | \item<2->[5.]{Create directory {\tt job\_queue} on the \textcolor{green}{local} and the \textcolor{red}{remote} host:\\ \par\medskip |
---|
[1105] | 1011 | \qquad{\tt mkdir $\sim$/job\_queue}} |
---|
| 1012 | \end{itemize} |
---|
| 1013 | \end{frame} |
---|
| 1014 | |
---|
| 1015 | % Folie 28 |
---|
| 1016 | \begin{frame} |
---|
| 1017 | \frametitle{Establishing the ssh Public-Key Authentication} |
---|
| 1018 | |
---|
| 1019 | \tikzstyle{blue} = [rectangle, draw, align=center, color=green, text width=0.18\textwidth, font=\tiny] |
---|
| 1020 | \tikzstyle{red} = [rectangle, draw, align=center, color=red, text width=0.18\textwidth, font=\tiny] |
---|
| 1021 | \tikzstyle{label} = [rectangle, font=\tiny, minimum size=8pt] |
---|
| 1022 | |
---|
| 1023 | \footnotesize |
---|
| 1024 | The PALM-tools (mrun, mbuild) are using ssh/scp for batch jobs on \textcolor{red}{remote} computers and require, that ssh/scp does not prompt for passwords.This can be managed by using the public-key authentication method. \\ \par\medskip |
---|
| 1025 | Public-key authentication is needed for connections in both directions! \\ \par\medskip |
---|
| 1026 | \begin{center} |
---|
| 1027 | \begin{tikzpicture}[auto, >=latex'] |
---|
| 1028 | \coordinate (p0) at (-2.0cm,0.0cm); |
---|
| 1029 | \coordinate (p1) at (2.0cm,0.0cm); |
---|
| 1030 | \coordinate (p2) at (-2.0cm,0.2cm); |
---|
| 1031 | \coordinate (p3) at (2.0cm,0.2cm); |
---|
| 1032 | \coordinate (p4) at (-2.0cm,-0.2cm); |
---|
| 1033 | \coordinate (p5) at (2.0cm,-0.2cm); |
---|
| 1034 | |
---|
| 1035 | \coordinate (p6) at (0.0cm,0.0cm); |
---|
| 1036 | |
---|
| 1037 | \draw[->, thick, color=green] (p2) -- (p3); |
---|
| 1038 | \draw[<-, thick, color=red] (p4) -- (p5); |
---|
| 1039 | |
---|
| 1040 | \node[blue] (green) [left=0.4cm of p0] { |
---|
| 1041 | local computer\\ |
---|
| 1042 | \textless{IP-local}\textgreater\\ |
---|
| 1043 | OpenSSH |
---|
| 1044 | }; |
---|
| 1045 | \node[red] (red) [right=0.4cm of p1] { |
---|
| 1046 | remote computer\\ |
---|
| 1047 | \textless{IP-remote}\textgreater\\ |
---|
| 1048 | OpenSSH |
---|
| 1049 | }; |
---|
| 1050 | |
---|
| 1051 | \node[label, above=0.3cm of p6] (labelblue) {{\tt ssh <HLRN-username>@<130.75.4.101>}}; |
---|
| 1052 | \node[label, below=0.3cm of p6] (labelred) {{\tt ssh <HLRN-username>@<130.75.4.101>}}; |
---|
| 1053 | \end{tikzpicture} |
---|
| 1054 | \end{center} |
---|
| 1055 | \uncover<2->{Pre-requisites:}\\ |
---|
| 1056 | \begin{itemize} |
---|
| 1057 | \item<3->[1.]{On the \textcolor{green}{local} system (IMUK, OpenSSH): create .ssh directory (if not existing):\\ \par\medskip |
---|
| 1058 | \qquad{\tt mkdir $\sim$/.ssh}\\ |
---|
| 1059 | \qquad{\tt chmod go-rwx $\sim$/.ssh}} \par\medskip |
---|
| 1060 | \item<4->[2.]{On the \textcolor{red}{remote} system (HLRN, OpenSSH): create .ssh directory (if not existing):\\ \par\medskip |
---|
| 1061 | \qquad{\tt mkdir $\sim$/.ssh}\\ |
---|
| 1062 | \qquad{\tt chmod go-rwx $\sim$/.ssh}} |
---|
| 1063 | \end{itemize} |
---|
| 1064 | \end{frame} |
---|
| 1065 | |
---|
| 1066 | % Folie 29 |
---|
| 1067 | \begin{frame} |
---|
| 1068 | \frametitle{Enable public-key authentication for connections from the \textcolor{green}{local} system to the \textcolor{red}{remote} system:} |
---|
| 1069 | |
---|
| 1070 | \footnotesize |
---|
| 1071 | On the \textcolor{green}{local} system (inferno.muk.uni-hannover.de, 130.75.105.5): |
---|
| 1072 | \begin{itemize} |
---|
| 1073 | \item<2->[1.]{create the key:\\ \par\medskip |
---|
| 1074 | \qquad{\tt cd $\sim$/.ssh}\\ |
---|
| 1075 | \qquad{\tt ssh-keygen -b 2048 -t dsa}\\ |
---|
| 1076 | \qquad\qquad{\tt \# creates files id\_dsa and id\_dsa.pub}\\ |
---|
| 1077 | \qquad\qquad{\tt \# type <return> when asked for passphrase!!}} \par\medskip |
---|
| 1078 | \item<3->[2.]{copy the public key to the \textcolor{red}{remote} system:\\ \par\medskip |
---|
| 1079 | \qquad{\tt scp id\_dsa.pub <HLRN-usern>@130.75.4.101:.ssh/authorized\_keys}} |
---|
| 1080 | \end{itemize} |
---|
| 1081 | \end{frame} |
---|
| 1082 | |
---|
| 1083 | % Folie 30 |
---|
| 1084 | \begin{frame} |
---|
| 1085 | \frametitle{Enable public-key authentication for connections from the \textcolor{red}{remote} system to the \textcolor{green}{local} system:} |
---|
| 1086 | |
---|
| 1087 | \footnotesize |
---|
| 1088 | On the \textcolor{red}{remote} system (hicegate.hlrn.de, 130.75.4.101): |
---|
| 1089 | \begin{itemize} |
---|
| 1090 | \item<2->[1.]{Create the key:\\ \par\medskip |
---|
| 1091 | \qquad{\tt cd $\sim$/.ssh}\\ |
---|
| 1092 | \qquad{\tt ssh-keygen -t dsa}\\ |
---|
| 1093 | \qquad\qquad{\tt \# creates files id\_dsa and id\_dsa.pub}\\ |
---|
| 1094 | \qquad\qquad{\tt \# type <return> when asked for passphrase!!}} \par\medskip |
---|
| 1095 | \item<3->[2.]{Copy the public key to the \textcolor{green}{local} system:\\ \par\medskip |
---|
| 1096 | \qquad{\tt scp id\_dsa.pub <IMUK-usern>@130.75.105.5:.ssh/authorized\_keys}}\\ \par\medskip |
---|
| 1097 | \item<4->[3.]{Append the public key also to the HLRN authorized\_keys file:\\ \par\medskip |
---|
| 1098 | \qquad{\tt cat id\_dsa.pub >> authorized\_keys}} |
---|
| 1099 | \end{itemize} |
---|
| 1100 | \end{frame} |
---|
| 1101 | |
---|
| 1102 | % Folie 31 |
---|
| 1103 | \begin{frame} |
---|
| 1104 | \frametitle{Establishing the ssh Public-Key Authentication} |
---|
| 1105 | |
---|
| 1106 | \footnotesize |
---|
| 1107 | \underline{Final action:}\\ \par\medskip |
---|
| 1108 | Establish ssh-connection at least one time from the \textcolor{green}{local} host to the \textcolor{red}{remote} host and vice versa.\\ \par\medskip |
---|
| 1109 | Use IP-adresses (eg. 130.75...) and not the symbolic names (e.g. ...hlrn.de)!\\ \par\medskip |
---|
| 1110 | After this, {\tt ssh-} and {\tt scp-} calls should not prompt for passwords any more. Please test at least one time from the \textcolor{red}{remote} to the \textcolor{green}{local} host, because the first ssh connection requires a confirmation to be typed from the keyboard!\\ \par\medskip |
---|
| 1111 | \begin{itemize} |
---|
| 1112 | \item<2->[1.]{On the \textcolor{green}{local} system (inferno):\\ \par\medskip |
---|
| 1113 | \qquad{\tt ssh <HLRN-username>@130.75.4.101}} \par\medskip |
---|
| 1114 | \item<3->[2.]{On the \textcolor{red}{remote} system (hicegate):\\ \par\medskip |
---|
| 1115 | \qquad{\tt ssh <IMUK-username>@130.75.105.5}}\\ |
---|
| 1116 | \end{itemize} |
---|
| 1117 | \end{frame} |
---|
| 1118 | |
---|
| 1119 | % Folie 32 |
---|
| 1120 | \begin{frame} |
---|
| 1121 | \frametitle{Installing PALM on a \textcolor{red}{remote} Computer (HLRN) \\ Step by Step Instructions (III)} |
---|
| 1122 | \footnotesize |
---|
| 1123 | \begin{itemize} |
---|
| 1124 | \item<1->[5.]{Create the utility programs on the \textcolor{red}{remote} host by executing the following command on the \textcolor{green}{local} host: \\ \par\medskip |
---|
| 1125 | \qquad{\tt mbuild -u -h lcsgih} \\ \par\medskip |
---|
| 1126 | This command also copies some shellscripts required to run PALM from the \textcolor{green}{local} host to the directory {\tt $\sim$/palm/current\_version/trunk/SCRIPTS} on the \textcolor{red}{remote} host.} \\ \par\medskip |
---|
| 1127 | \item<2->[6.]{Pre-compile the PALM code on the \textcolor{red}{remote} host: \\ \par\medskip |
---|
| 1128 | \qquad{\tt mbuild -h lcsgih}} \\ \par\medskip |
---|
| 1129 | \item<3->[7.]{Create the temporary working catalog on the \textcolor{red}{remote} host, if it does not exist (this is the directory given for the \textcolor{red}{remote} host by the environment variable {\tt tmp\_user\_catalog} in the configuration file {\tt .mrun.config}):\\ \par\medskip |
---|
| 1130 | \qquad{\tt mkdir \textless tmp\_user\_catalog\textgreater}} |
---|
| 1131 | \end{itemize} |
---|
| 1132 | \end{frame} |
---|
| 1133 | |
---|
| 1134 | % Folie 33 |
---|
| 1135 | \begin{frame} |
---|
| 1136 | \frametitle{Installing PALM on a \textcolor{red}{remote} Computer (HLRN) \\ Step by Step Instructions (IV)} |
---|
| 1137 | \footnotesize |
---|
| 1138 | \begin{itemize} |
---|
| 1139 | \item<1->[8.]{Carry out the test run by calling mrun on the \textcolor{green}{local} host:\\ \par\medskip |
---|
| 1140 | \qquad{\tt mrun -d example\_cbl -h lcsgih -K parallel -X8 -T2 -q testq}\\ |
---|
| 1141 | \qquad{\tt -t 300 -r \dq d3\#\dq}}\\ \par\medskip |
---|
| 1142 | \item<2->[9.]{After the job has finished on the \textcolor{red}{remote} host, results will be automatically transferred to the \textcolor{green}{local} host. Check the results on the \textcolor{green}{local} host:\\ \par\medskip |
---|
| 1143 | \qquad{\tt cd JOBS/example\_cbl/MONITORING} \\ |
---|
| 1144 | \qquad{\tt kdiff3 lcsgih\_example\_cbl\_rc}\\ |
---|
| 1145 | \qquad{\tt ../../../trunk/INSTALL/example\_cbl\_rc}} |
---|
| 1146 | \end{itemize} |
---|
| 1147 | |
---|
| 1148 | \end{frame} |
---|
| 1149 | |
---|
| 1150 | |
---|
| 1151 | \end{document} |
---|