Changeset 336 for palm/trunk/DOC/app/chapter_3.2.html
- Timestamp:
- Jun 10, 2009 11:19:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/DOC/app/chapter_3.2.html
r97 r336 32 32 <p style="line-height: 100%;">The following configuration 33 33 data 34 exclusively applies to model runs on the IBM Regatta hanniof the34 exclusively applies to model runs on the SGI ICE system of the 35 35 HLRN when using several processing elements (i.e. for the parallel 36 36 version of the model). The proper installation of the model is … … 38 38 5.0</a>). Furthermore it is supposed that the user is located in 39 39 the 40 directory <tt><font style="font-size: 10pt;" size="2">$HOME/palm/current_version/SOURCE</font></tt> 41 on its local computer. There are the FORTRAN source codes of the 42 model (<tt><font style="font-size: 10pt;" size="2">*.f90</font></tt>) 43 as 44 well as the configuration file (name: <tt><font style="font-size: 10pt;" size="2">.mrun.config</font></tt>) 45 and the make file (name: <tt><font style="font-size: 10pt;" size="2">Makefile</font></tt>). 40 directory <tt><font style="font-size: 10pt;" size="2">$HOME/palm/current_version</font></tt> 41 on its local computer, where the configuration file (<tt><font style="font-size: 10pt;" size="2">.mrun.config</font></tt>) should reside. 46 42 The configuration file has the following contents (among other things): 47 43 <br> 48 </p><pre style="line-height: 100%;"><font style="font-size: 10pt;" size="2">% source_path <i>$HOME/palm/current_version/SOURCE</i></font><br><font style="font-size: 10pt;" size="2">% mainprog <i>palm.f90</i></font><br><font style="font-size: 10pt;" size="2">% use_makefile <i>true</i></font><br><font style="font-size: 10pt;" size="2">% fopts <i>-O3:-g:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:-qarch=pwr4:-qnosave:-qnoescape ibmh parallel<span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span></i></font><br><font style="font-size: 10pt;" size="2">% lopts <span style="font-style: italic;">-O3:-g:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:-qarch=pwr4:-qnosave:-qnoescape:-lesslsmp ibmh parallel</span></font><br><font style="font-size: 10pt;" size="2">#</font><br><font style="font-size: 10pt;" size="2">EC:[[ \$locat = execution]] & & <i>cat </i>RUN_CONTROL </font><br><font style="font-size: 10pt;" size="2">#</font><br><a href="chapter_3.4.html#PARIN"><font style="font-size: 10pt;" size="2">PARIN</font></a><font style="font-size: 10pt;" size="2"> in:job:npe d3# ~/palm/current_version/JOBS/$fname/INPUT _p3d</font><br><font style="font-size: 10pt;" size="2">#</font><br><a href="chapter_3.4.html#RUN_CONTROL"><font style="font-size: 10pt;" size="2">RUN_CONTROL</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr d3# ~/palm/current_version/JOBS/$fname/MONITORING _rc</font><br><a href="chapter_3.4.html#HEADER"><font style="font-size: 10pt;" size="2">HEADER</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr d3# ~/palm/current_version/JOBS/$fname/MONITORING _header</font><br><a href="chapter_3.4.html#PLOT1D_PAR"><font style="font-size: 10pt;" size="2">PLOT1D_PAR</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr pr# ~/palm/current_version/JOBS/$fname/OUTPUT _pr_par</font><br><a href="chapter_3.4.html#PLOT1D_DATA"><font style="font-size: 10pt;" size="2">PLOT1D_DATA</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr pr# ~/palm/current_version/JOBS/$fname/OUTPUT _pr_in</font></pre>44 </p><pre style="line-height: 100%;"><font style="font-size: 10pt;" size="2">%mainprog palm.f90<br>%base_directory $HOME/palm/current_version<br>%base_data ~/palm/current_version/JOBS<br>%source_path $base_directory/trunk/SOURCE<br>#<br></font><font style="font-size: 10pt;" size="2">%fopts -g:-w:-xT:-O3:-cpp:-r8:-ftz:-fno-alias:-no-prec-div:-no-prec-sqrt:-ip:-nbs:-convert:little_endian lcsgih parallel<br></font><font style="font-size: 10pt;" size="2">%lopts -g:-w:-xT:-O3:-cpp:-r8:-ftz:-fno-alias:-no-prec-div:-no-prec-sqrt:-ip:-nbs:-Vaxlib lcsgih parallel</font><font style="font-size: 10pt;" size="2"><br>#</font><br><font style="font-size: 10pt;" size="2">EC:[[ \$locat = execution]] & & <i>cat </i>RUN_CONTROL </font><br><font style="font-size: 10pt;" size="2">#</font><br><a href="chapter_3.4.html#PARIN"><font style="font-size: 10pt;" size="2">PARIN</font></a><font style="font-size: 10pt;" size="2"> in:job d3# $base_data/$fname/INPUT _p3d</font><br><font style="font-size: 10pt;" size="2">#</font><br><a href="chapter_3.4.html#RUN_CONTROL"><font style="font-size: 10pt;" size="2">RUN_CONTROL</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr d3# $base_data/$fname/MONITORING _rc</font><br><a href="chapter_3.4.html#HEADER"><font style="font-size: 10pt;" size="2">HEADER</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr d3# $base_data/$fname/MONITORING _header</font><span style="font-family: mon;"><span style="text-decoration: underline;"><br></span><a href="chapter_3.4.html#DATA_1D_PR_NETCDF">DATA_1D_PR_NETCDF</a></span><font style="font-size: 10pt;" size="2"> out:loc:tr pr# ~/palm/current_version/JOBS/$fname/OUTPUT _pr nc</font></pre> 49 45 <p style="line-height: 100%;"><font face="Thorndale, serif">The first 50 46 five lines specify values of … … 56 52 variable. Again separated by blank t<font face="Thorndale, serif">he 57 53 so-called validity domain</font> can be indicated (later more). 58 With the first threevariables <b>mrun</b> gets to know in54 With the first four variables <b>mrun</b> gets to know in 59 55 which 60 56 directory the source code lies (</font><tt><i><font face="Thorndale, serif">source_path</font></i></tt><font face="Thorndale, serif">), 61 the file name of the main program (</font><tt><i><font face="Thorndale, serif">mainprog</font></i></tt><font face="Thorndale, serif">) 62 and that the <font face="Thorndale, serif">make mechanism 63 should be 64 used </font>for compiling (</font><tt><font face="Thorndale, serif"><i>use_makefile 65 =</i> <i>true</i></font></tt><font face="Thorndale, serif">). <b>mrun 57 the file name of the main program (</font><tt><i><font face="Thorndale, serif">mainprog</font></i></tt><font face="Thorndale, serif">)</font><font face="Thorndale, serif">. Also, two variables are defined which contain path informations used later in the file (<span style="font-style: italic;">base_directory</span>, <span style="font-style: italic;">base_data</span>). <b>mrun 66 58 </b>needs these information, <font color="#000000">because 67 59 for each 68 model run the executable is created by compiling the source files.</font>60 model run the executable is created by compiling the respective source file.</font> 69 61 Normally, only the main program (palm.f90) will be compiled while all 70 62 other object files are just linked. These object files have already … … 84 76 interpret these colons as blanks (2 colons written one behind the 85 77 other will be interpreted as a colon). Thus in the example above</font> fopts 86 has the value<tt><font face="Thorndale, serif"> </font></tt>“<font style="font-size: 10pt; font-family: monospace;" size="2"><i>-O3 87 -g 88 -qrealsize=8 -Q -q64 -qmaxmem=-1 -qtune=pwr4 -qarch=pwr4 -qnosave 89 -qnoescape</i></font><tt><i><font face="Thorndale, serif"><font color="#000000">”</font></font></i></tt><font face="Thorndale, serif"><font color="#000000">. 90 Thus a PALM executable is generated using high level optimization (</font></font><font color="#000000"><span style="font-style: italic; font-family: monospace;">-O3</span></font><font face="Thorndale, serif"><font color="#000000">).</font></font><font color="#000000"><font face="Thorndale, serif"> 78 has the value<tt><font face="Thorndale, serif"> </font></tt>“<tt>-g -w -xT -O3 -cpp -r8 -ftz -fno-alias -no-prec-div -no-prec-sqrt -ip -nbs -convert little_endian<i><font face="Thorndale, serif"><font color="#000000">”</font></font></i></tt><font face="Thorndale, serif"><font color="#000000">. 79 Thus a PALM executable is generated using high level optimization (</font></font><font color="#000000"><span style="font-family: monospace;">-O3</span></font><font face="Thorndale, serif"><font color="#000000">).</font></font><font color="#000000"><font face="Thorndale, serif"> 91 80 For all other options 92 see the compiler manual on the IBM (</font><font size="2"><font face="Cumberland, monospace">man</font></font></font><tt><font color="#000000"> 93 <font size="2"><font face="Cumberland, monospace">f90</font></font></font></tt><font face="Thorndale, serif"><font color="#000000">). 81 see the compiler manual on the SGI (</font><font size="2"><font face="Cumberland, monospace">man</font></font></font><tt><font color="#000000"> <span style="font-family: Cumberland,monospace;">ifort</span></font></tt><font face="Thorndale, serif"><font color="#000000">). 94 82 Additional libraries 95 which the compiler should use are describedby83 which the compiler should use may have to be given by 96 84 the environment variable </font></font><tt><font size="2"><font face="Cumberland, monospace"><font color="#000000">lopts</font></font></font></tt><font color="#000000"> 97 <font face="Thorndale, serif">(loader options).</font></font><font color="#800000"> 98 </font><font face="Thorndale, serif"><font color="#000000">Here you 99 have to indicate a special IBM library (ESSL, </font></font>Engineering 100 and Scientific Subroutine Library)<font face="Thorndale, serif"><font color="#000000">.</font><font color="#800000"> 101 </font>On the 102 IBM-Regatta, all compiler options have also to be given to the linker.</font><font color="#000000"><font face="Thorndale, serif"> </font></font> 85 <font face="Thorndale, serif">(loader options).</font></font><font color="#000000"><font face="Thorndale, serif"> </font></font> 103 86 </p><p style="line-height: 100%;"><font color="#000000">Compiler and 104 87 loader options usually differ from computer to computer. In the … … 111 94 the so-called validity domain which follows in the appropriate 112 95 variable lines after the value of variables.</font></font><font color="#000000"> 113 In the example above the entry “</font><font color="#000000"><font style="font-size: 11pt; font-style: italic; font-family: monospace;" size="2"> ibmh</font></font><tt><font color="#000000"><span style="font-style: italic; font-family: monospace;">96 In the example above the entry “</font><font color="#000000"><font style="font-size: 11pt; font-style: italic; font-family: monospace;" size="2">lcsgih</font></font><tt><font color="#000000"><span style="font-style: italic; font-family: monospace;"> 114 97 </span></font><font color="#000000"><i><font style="font-size: 11pt;" size="2">parallel</font></i></font></tt><font color="#000000">” 115 98 stands for </font><tt><font style="font-size: 10pt;" size="2"><font color="#000000">fopts</font></font></tt><font color="#000000"> 116 99 and </font><tt><font style="font-size: 10pt;" size="2"><font color="#000000">lopts</font></font></tt><font color="#000000">. 117 100 These lines only become active if a run on the parallel computer of 118 the HLRN (</font><tt><i><font style="font-size: 10pt;" size="2"> ibmh</font></i></tt><font color="#000000">)101 the HLRN (</font><tt><i><font style="font-size: 10pt;" size="2">lcsgih</font></i></tt><font color="#000000">) 119 102 on several <font color="#000000">(</font><tt><i><font style="font-size: 10pt;" size="2"><font color="#000000">parallel</font></font></i></tt><font color="#000000">) 120 103 </font>processors is started. The activation takes place when you … … 124 107 (see below). This way, the validity domain can be limited also for all 125 108 other environment-variables. If no validity domain 126 is indicated then the given values of variables are valid onall109 is indicated then the given values of variables are valid for all 127 110 computers. </font> 128 111 </p><p style="line-height: 100%;">After the value … … 208 191 indicated within the mrun <b>call</b> by the option <a href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#Opt-r">-r</a>. 209 192 Thus a call of the form </p> 210 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun - h ibmh -d abcde -r d3</font></pre></ul>193 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun - h lcsgih -d abcde -r "d3#"</font></pre></ul> 211 194 <p style="line-height: 100%;">would lead to the fact that 212 195 the input … … 217 200 these files are to be copied of <b>mrun</b> then the call 218 201 must be</p> 219 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -h ibmh -d abcde -r "d3 pr"</font></pre></ul>202 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -h lcsgih -d abcde -r "d3# pr#"</font></pre></ul> 220 203 <p style="line-height: 100%;">Instead of the option -r you 221 204 can … … 225 208 file all file connection statements are actually executed then 226 209 the call must be: </p> 227 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -h ibmh -d abcde -i d3 -o "d3 pr"</font></pre></ul>210 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -h lcsgih -d abcde -i "d3#" -o "d3# pr#"</font></pre></ul> 228 211 <p style="line-height: 100%;"><font color="#000000">The 229 212 names of the … … 258 241 <p style="line-height: 100%;">The example configuration 259 242 file also 260 instructs <b>mrun</b> to copy fouroutput files of the243 instructs <b>mrun</b> to copy three output files of the 261 244 model to 262 245 appropriate permanent files of the user at the end of the run. … … 266 249 are located, as well as a file with data of horizontally averaged 267 250 vertical profiles 268 (<tt><a href="chapter_3.4.html#PLOT1D_DATA">PLOT1D_DATA</a></tt>) 269 and an associated parameter file (<tt><a href="chapter_3.4.html#PLOT1D_PAR">PLOT1D_PAR</a></tt>), 270 which can be used as input files for the plot program <a href="http://www.muk.uni-hannover.de/institut/software/profil_beschreibung.html">profil</a>. 251 (<tt><a href="chapter_3.4.html#DATA_1D_PR_NETCDF">DATA_1D_PR_NETCDF</a></tt>). 271 252 A model run does not presuppose neither the file connection statements 272 253 for … … 283 264 execution of a 284 265 model run 285 on several processors on the IBM Regatta "hanni"of the HLRN must be266 on several processors on the SGI ICE of the HLRN must be 286 267 supplemented by the following options in each case: </p> 287 <ul > <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun - K parallel -X … -t … -m …</font></pre></ul>268 <ul style="font-family: monospace;"> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun - K parallel -X ... -T ... -t ... -m ---</font></pre></ul> 288 269 <p style="line-height: 100%;">Only the indication of <tt><font style="font-size: 11pt;" size="2">-K 289 270 parallel</font></tt> causes the parallel execution of the … … 294 275 option <tt><font style="font-size: 10pt;" size="2">-X</font> 295 276 </tt><font size="2">(</font><font style="font-size: 10pt;" size="2">e.g. 296 </font><tt><font style="font-size: 10pt;" size="2">-X 297 4</font></tt><font size="2">).</font> 277 </font><tt><font style="font-size: 10pt;" size="2">-X 32</font></tt><font size="2">) and the number of tasks (processors) on onde node have to be given by option -T.</font> 298 278 In each case the permitted CPU time in seconds and the required memory 299 279 size in MB must be indicated by the options <tt><font style="font-size: 11pt;" size="2">-t</font></tt> 300 280 and <tt><font style="font-size: 11pt;" size="2">-m</font></tt>, 301 281 respectively<font face="Thorndale, serif">.</font> 302 Alternatively, thesecan be set by the appropriate environment282 Alternatively, memory and cpu-time demands can be set by the appropriate environment 303 283 variables in the configuration file: </p> 304 <blockquote style="line-height: 100%;"><tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace">% 305 memory <i>1630</i> ibmh parallel</font></font></tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace"><br> </font></font><tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace">% 306 cputime <i>1000</i> ibmh parallel</font></font></tt></blockquote> 284 <blockquote style="line-height: 100%;"><tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace">%memory <i>1500</i> lcsgih parallel</font></font></tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace"><br> </font></font><tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace">%cputime <i>1000</i> lcsgih parallel</font></font></tt></blockquote> 307 285 <p style="line-height: 100%;">The values indicated there 308 286 can be 309 287 overridden with the values of the options <tt><font style="font-size: 10pt;" size="2">-t</font></tt> 310 288 and/or <tt><font style="font-size: 10pt;" size="2">-m</font></tt>, 311 respectivly. </p>289 respectivly.</p><p style="line-height: 100%;"><span style="font-weight: bold;">Warning: When changing the coniguration file, please never use the TAB key!</span> </p> 312 290 <hr><p style="line-height: 100%;"><br> 313 291 <font color="#000080"><font color="#000080"><a href="chapter_3.1.html"><font color="#000080"><img src="left.gif" name="Grafik1" align="bottom" border="2" height="32" width="32"></font></a><a href="index.html"><font color="#000080"><img src="up.gif" name="Grafik2" align="bottom" border="2" height="32" width="32"></font></a><a href="chapter_3.3.html"><font color="#000080"><img src="right.gif" name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p><p style="line-height: 100%;"><i>Last change: </i>
Note: See TracChangeset
for help on using the changeset viewer.