GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — esmf/scripts/mpirun.ibmll.batch at develop · esmf-org/esmf Expand file tree/ Copy pathmpirun.ibmll.batchMore file actions executable file ·60 lines (53 loc) · 1.79 KB / Copy pathmpirun.ibmll.batchFile metadata and controlsexecutable file ·60 lines (53 loc) · 1.79 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 #!/bin/ksh # $Id$ ################################################################################ # This script abides to the ESMF script rules for executing the bundled test # and example applications. # # 1) <this_script> -np N prog # runs N copies of executable "prog" in parallel. The script must hide all # of the system specific details, such as going through a queueing system # and/or calling a system specific mpirun script with modified arguments. # # 2) The output of the script must be written to a file named "prog".stdout and # it must contain the combination of stdout and stderr output of the # execution. # # 3) The script must block, i.e. _not_ return, until the output described in #2 # has become accessible. # # To access this script set environment variable ESMF_MPIRUN=<this_script> in # your shell before executing any of the ESMF run targets or targets that # call run targets indirectly, such as the all_tests. ################################################################################ if [ "$1" != "-np" ] then echo "Usage: mpirun -np # prog" exit 1 fi num_procs=$2 logname=$3 shift 2 prog=$* # Write out LoadLeveler script to run the test cat > $ESMF_DIR/scripts/esmf_script.ll << THE_END_OF_BATCH_SCRIPT #@ shell = /usr/bin/ksh #@ class=parallel #@ job_type = parallel #@ output = $logname.stdout #@ error = $logname.stdout #@ notification = never #@ resources = ConsumableMemory(200mb) #@ node = 1 #@ total_tasks = $num_procs #@ wall_clock_limit = 00:00:30 #@ node_usage = shared #@ queue poe $prog exit THE_END_OF_BATCH_SCRIPT # Submit the script that has just been written to LoadLeveler # (the "-s" qualifier makes the script block until the job finishes) llsubmit -s $ESMF_DIR/scripts/esmf_script.ll # Clean up #rm -f $ESMF_DIR/scripts/esmf_script.ll |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |