Changeset 493 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Mar 1, 2010 8:30:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r475 r493 198 198 # 03/02/10 - Siggi - make options (mopts) to be set by configuration file 199 199 # implemented 200 # 08/02/10 - Siggi - loading of modules now controlled via configuration 201 # file (modules) 200 202 201 203 … … 261 263 mc=`echo $mc | cut -f2- -d"/"` 262 264 done 263 module_ files=""265 module_calls="" 264 266 mrun_script_name=$mc 265 267 netcdf_inc="" … … 2072 2074 2073 2075 2076 # set module load command and export for subjob 2077 if [[ "$modules" != "" ]] 2078 then 2079 export module_calls="module load ${modules};" 2080 fi 2081 2082 2074 2083 # SET DEFAULT VALUE FOR MPI MODULE TO BE USED ON SGI-ALTIX 2075 2084 if [[ $host = lcsgib || $host = lcsgih ]] 2076 2085 then 2077 [[ "$mpilib" = "" ]] && export mpilib=mpt 2086 if [[ $(echo $modules | grep -c mpt ) != 0 ]] 2087 then 2088 mpilib=mpt 2089 elif [[ $(echo $modules | grep -c mvapich ) != 0 ]] 2090 then 2091 mpilib=mvapich 2092 fi 2078 2093 fi 2079 2094 … … 2125 2140 if [[ "$mopts" != "" ]] 2126 2141 then 2127 spalte1= make-options:; spalte2=$mopts2142 spalte1="make options:"; spalte2=$mopts 2128 2143 printf "| $spalte1$spalte2 | \n" 2129 2144 zeile=$(echo "$mopts" | cut -c41-) … … 2137 2152 fi 2138 2153 2139 spalte1= cpp-directives:; spalte2=$cpp_options2154 spalte1="cpp directives:"; spalte2=$cpp_options 2140 2155 printf "| $spalte1$spalte2 | \n" 2141 2156 zeile=$(echo "$cpp_options" | cut -c41-) … … 2148 2163 done 2149 2164 2150 spalte1= compiler-options:; spalte2="$fopts"2165 spalte1="compiler options:"; spalte2="$fopts" 2151 2166 printf "| $spalte1$spalte2 | \n" 2152 2167 zeile=$(echo "$fopts" | cut -c41-) … … 2159 2174 done 2160 2175 2161 spalte1= linker-options:; spalte2=$lopts2176 spalte1="linker options:"; spalte2=$lopts 2162 2177 printf "| $spalte1$spalte2 | \n" 2163 2178 zeile=$(echo "$lopts" | cut -c41-) 2179 while [[ "$zeile" != "" ]] 2180 do 2181 spalte1="" 2182 spalte2=$zeile 2183 printf "| $spalte1$spalte2 | \n" 2184 zeile=$(echo "$zeile" | cut -c41-) 2185 done 2186 2187 spalte1="modules to be load:"; spalte2=$modules 2188 printf "| $spalte1$spalte2 | \n" 2189 zeile=$(echo "$modules" | cut -c41-) 2164 2190 while [[ "$zeile" != "" ]] 2165 2191 do … … 2300 2326 tmpcreate=true 2301 2327 2328 # set striping on lustre file system 2329 # if [[ $localhost = lcsgih ]] 2330 # then 2331 # lfs setstripe -s 8192k -c 16 $TEMPDIR 2332 # lfs getstripe $TEMPDIR 2333 # fi 2334 2302 2335 2303 2336 # SAEMTLICHE QUELLTEXT-DATEIEN BZW. AUSFUEHRBARES PROGRAMM IN … … 2430 2463 printf " compilername: $compiler_name\n" 2431 2464 printf " compiler options: $fopts\n" 2432 printf " preprocessor-directives: $cpp_options \n" 2433 printf " linker-options: $lopts \n" 2465 printf " preprocessor directives: $cpp_options \n" 2466 printf " linker options: $lopts \n" 2467 if [[ "$modules" != "" ]] 2468 then 2469 printf " modules to be load: $modules \n" 2470 fi 2434 2471 printf " source code files: $source_list \n" 2435 2472 2436 2473 if [[ $localhost = nech ]] 2437 2474 then 2438 ssh 136.172.44.192 -l $usern ". /SX/opt/etc/initsx.sh; cd \$HOME/work/${usern}.$kennung; sxmake $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" "2475 ssh 136.172.44.192 -l $usern ". /SX/opt/etc/initsx.sh; $module_calls cd \$HOME/work/${usern}.$kennung; sxmake $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" " 2439 2476 cp $TEMPDIR_COMPILE/a.out . 2440 2477 [[ $? != 0 ]] && compile_error=true … … 2443 2480 then 2444 2481 printf " compiler is called via ssh on \"plogin1\" \n" 2445 ssh plogin1 -l $usern "export PATH=/sw/ibm/xlf/12.1.0.3/usr/bin:$PATH; cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" "2482 ssh plogin1 -l $usern "export PATH=/sw/ibm/xlf/12.1.0.3/usr/bin:$PATH; $module_calls cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" " 2446 2483 [[ ! -f a.out ]] && compile_error=true 2447 2484 continue # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN 2448 2485 elif [[ $localhost = lcsgib ]] 2449 2486 then 2450 printf " compiler is called via ssh on \"bicegate\" using module \"$mpilib\"\n"2451 ssh 130.73.232.103 -l $usern ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib;cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" "2487 printf " compiler is called via ssh on \"bicegate\" \n" 2488 ssh 130.73.232.103 -l $usern ". /usr/share/modules/init/bash; $module_calls cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" " 2452 2489 [[ ! -f a.out ]] && compile_error=true 2453 2490 continue # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN 2454 2491 elif [[ $localhost = lcsgih ]] 2455 2492 then 2456 printf " compiler is called via ssh on \"hicegate2\" using module \"$mpilib\"\n"2457 ssh 130.75.4.103 -l $usern ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib;cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" 2>&1 "2493 printf " compiler is called via ssh on \"hicegate2\" \n" 2494 ssh 130.75.4.103 -l $usern ". /usr/share/modules/init/bash; $module_calls cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" 2>&1 " 2458 2495 [[ ! -f a.out ]] && compile_error=true 2459 2496 continue # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN 2460 2497 else 2461 2498 [[ $localhost = lctit ]] && export LM_LICENSE_FILE=27050@tggls 2499 [[ "$module_calls" != "" ]] && eval $module_calls 2462 2500 make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT="$cpp_options" F90FLAGS="$fopts" LDFLAGS="$lopts" 2463 2501 fi
Note: See TracChangeset
for help on using the changeset viewer.