1 |
#PBS -S /bin/csh |
2 |
#PBS -N Testreport |
3 |
#PBS -l select=1:ncpus=2:mpiprocs=2:model=har |
4 |
#PBS -l walltime=05:00:00 |
5 |
#PBS -V |
6 |
|
7 |
# $Header: $ |
8 |
# $Name: $ |
9 |
|
10 |
### script to run testreport, tar the result, and send it to jmc@mitgcm.org |
11 |
### on Pleiades (Ice) |
12 |
|
13 |
#- to get case insensitive "ls" (and order of tested experiments) |
14 |
setenv LC_ALL "en_US.UTF-8" |
15 |
|
16 |
set date_str=`date +%Y%m%d`"_0" |
17 |
|
18 |
module purge |
19 |
module load comp-intel/11.1.046 mpi/mpt.1.25 netcdf/3.6.0/intel |
20 |
module list |
21 |
|
22 |
#hnum=`hostname | sed -e"s/columbia//"` |
23 |
#fs=/nobackup$hnum |
24 |
#echo $fs |
25 |
#cd $fs/dfer |
26 |
#pwd |
27 |
|
28 |
#cp -p -r ~/TEMPO/MITgcm . |
29 |
cd ~/MITgcm/verification |
30 |
|
31 |
set tst1=0 |
32 |
set tst2=1 |
33 |
set tst3=1 |
34 |
|
35 |
##### NO MPI + IEEE |
36 |
if ( $tst1 == 1 ) then |
37 |
|
38 |
./testreport -of='linux_ia64_ifort' -match 10 -j 2 |
39 |
../tools/do_tst_2+2 |
40 |
|
41 |
set tdir0=`ls -dt1 tr_* | grep -v tr_out | head -1` |
42 |
set tdir1=tr_columbia_$date_str |
43 |
mv $tdir0 $tdir1 |
44 |
mv tst_2+2_out.txt $tdir1/ |
45 |
set tdir2=$tdir1.tar.gz |
46 |
tar -czf $tdir2 $tdir1 |
47 |
../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 jmc@mitgcm.org |
48 |
|
49 |
../tools/do_tst_2+2 -clean |
50 |
./testreport -clean |
51 |
|
52 |
endif |
53 |
|
54 |
##### MPI + IEEE |
55 |
if ( $tst2 == 1 ) then |
56 |
|
57 |
./testreport -of='../tools/build_options/linux_amd64_ifort+mpi_ice_nas' -mpi -match 10 -command='mpiexec_mpt -np 2 ./mitgcmuv' -j 2 |
58 |
|
59 |
../tools/do_tst_2+2 -mpi -exe 'mpiexec_mpt -np 2 ./mitgcmuv' -a NONE -o pleiades-ieee |
60 |
|
61 |
set tdir0=`ls -dt1 tr_* | grep -v tr_out | head -1` |
62 |
set tdir1=tr_pleiades-ieee_$date_str |
63 |
mv $tdir0 $tdir1 |
64 |
mv tst_2+2_out.txt $tdir1/ |
65 |
set tdir2=$tdir1.tar.gz |
66 |
tar -czf $tdir2 $tdir1 |
67 |
#../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 jmc@mitgcm.org |
68 |
#../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 dfer@ocean.mit.edu |
69 |
|
70 |
set tdir0=`ls -dt1 rs_* | grep -v tr_out | head -1` |
71 |
#set tdir1=rs_pleiades-ieee_$date_str |
72 |
#mv $tdir0 $tdir1 |
73 |
set tdir2=$tdir0.tar.gz |
74 |
tar -czf $tdir2 $tdir0 |
75 |
#../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 jmc@mitgcm.org |
76 |
#../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 dfer@ocean.mit.edu |
77 |
|
78 |
../tools/do_tst_2+2 -clean |
79 |
./testreport -clean |
80 |
|
81 |
endif |
82 |
|
83 |
##### MPI + NO IEEE |
84 |
if ( $tst3 == 1 ) then |
85 |
|
86 |
./testreport -of='../tools/build_options/linux_amd64_ifort+mpi_ice_nas' -mpi -noieee -match 10 -command='mpiexec_mpt -np 2 ./mitgcmuv' -j 2 |
87 |
../tools/do_tst_2+2 -mpi -exe 'mpiexec_mpt -np 2 ./mitgcmuv' -a NONE -o pleiades-noieee |
88 |
|
89 |
set tdir0=`ls -dt1 tr_* | grep -v tr_out | head -1` |
90 |
set tdir1=tr_pleiades-noieee_$date_str |
91 |
mv $tdir0 $tdir1 |
92 |
mv tst_2+2_out.txt $tdir1/ |
93 |
set tdir2=$tdir1.tar.gz |
94 |
tar -czf $tdir2 $tdir1 |
95 |
#../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 jmc@mitgcm.org |
96 |
#../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 dfer@ocean.mit.edu |
97 |
|
98 |
set tdir0=`ls -dt1 rs_* | grep -v tr_out | head -1` |
99 |
#set tdir1=rs_pleiades-ieee_$date_str |
100 |
#mv $tdir0 $tdir1 |
101 |
set tdir2=$tdir0.tar.gz |
102 |
tar -czf $tdir2 $tdir0 |
103 |
#../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 jmc@mitgcm.org |
104 |
#../tools/mpack-1.6/bin/mpack -s MITgcm-test -m 3555000 $tdir2 dfer@ocean.mit.edu |
105 |
|
106 |
../tools/do_tst_2+2 -clean |
107 |
./testreport -clean |
108 |
|
109 |
endif |
110 |
|
111 |
exit |