1 |
mlosch |
1.1 |
#!/bin/tcsh -x |
2 |
mlosch |
1.2 |
#$Header: /u/gcmpack/MITgcm_contrib/test_scripts/edvir/edvir1_testreport,v 1.1 2006/09/06 08:29:16 mlosch Exp $ |
3 |
|
|
#$Name: $ |
4 |
mlosch |
1.1 |
|
5 |
|
|
# LoadLeveler batch commands that are used if this script is submitted to |
6 |
|
|
# the share batch queue: |
7 |
|
|
# @ job_type = parallel |
8 |
|
|
# @ job_name = mitgcm_testreport |
9 |
|
|
# @ output = testreport.out |
10 |
|
|
# @ error = testreport.out |
11 |
|
|
# @ wall_clock_limit = 8:00:0,8:00:0 |
12 |
|
|
# @ resources = ConsumableCpus(1) |
13 |
|
|
# @ image_size = 50 |
14 |
|
|
# @ class = cpar |
15 |
|
|
|
16 |
|
|
## @ notification = never |
17 |
|
|
# @ notification = complete |
18 |
|
|
# @ notify_user = mlosch@awi-bremerhaven.de |
19 |
|
|
|
20 |
|
|
# @ node = 1 |
21 |
|
|
# @ tasks_per_node = 2 |
22 |
|
|
# @ node_usage = shared |
23 |
|
|
# @ queue |
24 |
|
|
|
25 |
|
|
set VENDOR=mpxlf95 |
26 |
|
|
set RUNIT="runit_"$VENDOR |
27 |
|
|
set HERE=$cwd |
28 |
|
|
set EXE='poe ./mitgcmuv -procs 2' |
29 |
|
|
set DIR=/edvir1/user2/mlosch/tmp |
30 |
|
|
#set DIR=${HOME}/tmp |
31 |
|
|
|
32 |
|
|
cat << EOF > $HERE/$RUNIT |
33 |
|
|
#!/bin/csh |
34 |
|
|
|
35 |
|
|
$EXE |
36 |
|
|
|
37 |
|
|
cp STDOUT.0000 output.txt |
38 |
|
|
|
39 |
|
|
EOF |
40 |
|
|
chmod a+x $RUNIT |
41 |
|
|
|
42 |
|
|
set COMMAND=$HERE/$RUNIT |
43 |
|
|
|
44 |
|
|
|
45 |
|
|
cd ${DIR}/MITgcm/verification |
46 |
|
|
bash ./testreport -bash /usr/bin/bash -postclean -mpi -of=../tools/build_options/sp4+mpi_edvir1 -command $COMMAND -a 'edhill@mitgcm.org mlosch@awi-bremerhaven.de' >& /dev/null |
47 |
|
|
|
48 |
|
|
|
49 |
|
|
exit |
50 |
|
|
|
51 |
|
|
# workaround for sending emails to mitgcm.org |
52 |
|
|
set rmhost=rays1.awi-bremerhaven.de |
53 |
|
|
# pack directory into an archive an compress it |
54 |
|
|
set fname = `ls -dtr tr_edvir* | grep -v tar.gz` |
55 |
|
|
tar cf - $fname | gzip >! ${fname}'.tar.gz' |
56 |
|
|
# copy gzipped archive to remote host |
57 |
|
|
scp ${fname}'.tar.gz' $rmhost':' |
58 |
|
|
# on the remote host execute the mpack command, that send the email |
59 |
|
|
#ssh $rmhost '/u/u0/mlosch/bin/mpack -s MITgcm-test '$fname'.tar.gz edhill@mitgcm.org' |
60 |
|
|
ssh $rmhost '/home/tphs1/mlosch/bin_sol/mpack -s MITgcm-test '$fname'.tar.gz edhill@mitgcm.org' |
61 |
|
|
# wait a little, just to be sure everything is done |
62 |
|
|
sleep 2 |
63 |
|
|
# remove archives |
64 |
|
|
ssh $rmhost 'rm '$fname'.tar.gz' |
65 |
|
|
rm -rf $fname'.tar.gz' |
66 |
|
|
|
67 |
|
|
exit |
68 |
|
|
# now repeat everything for 1 CPU, first delete previous test report directory |
69 |
|
|
rm -rf ${fname} |
70 |
|
|
|
71 |
|
|
./testreport -clean >& /dev/null |
72 |
|
|
bash ./testreport -bash /usr/bin/bash -of=../tools/build_options/sp4_edvir1 >& /dev/null |
73 |
|
|
|
74 |
|
|
exit |
75 |
|
|
# workaround for mailing the stuff |
76 |
|
|
# set name of remote host where to do the mpack command |
77 |
|
|
#set rmhost=belle.csail.mit.edu |
78 |
|
|
set rmhost=rays1.awi-bremerhaven.de |
79 |
|
|
# pack directory into an archive an compress it |
80 |
|
|
set fname = `ls -dtr tr_edvir* | grep -v tar.gz` |
81 |
|
|
tar cf - $fname | gzip >! ${fname}'.tar.gz' |
82 |
|
|
# copy gzipped archive to remote host |
83 |
|
|
scp ${fname}'.tar.gz' $rmhost':' |
84 |
|
|
# on the remote host execute the mpack command, that send the email |
85 |
|
|
#ssh $rmhost '/u/u0/mlosch/bin/mpack -s MITgcm-test '$fname'.tar.gz edhill@mitgcm.org' |
86 |
|
|
ssh $rmhost '/home/tphs1/mlosch/bin_sol/mpack -s MITgcm-test '$fname'.tar.gz edhill@mitgcm.org' |
87 |
|
|
# wait a little, just to be sure everything is done |
88 |
|
|
sleep 2 |
89 |
|
|
# remove archives |
90 |
|
|
ssh $rmhost 'rm '$fname'.tar.gz' |
91 |
|
|
rm -rf $fname'.tar.gz' |
92 |
|
|
# |