/[MITgcm]/MITgcm/tools/example_scripts/faulks/test_csail_fc5
ViewVC logotype

Contents of /MITgcm/tools/example_scripts/faulks/test_csail_fc5

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Thu Sep 11 15:02:06 2008 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.5: +13 -4 lines
double pgi test to reduce the risk of getting "Failed to checkout license"

1 #! /usr/bin/env bash
2
3 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/faulks/test_csail_fc5,v 1.5 2007/11/30 17:05:50 jmc Exp $
4
5 # Ed Hill
6
7 # Test script for MITgcm that should work on most of the csail.mit.edu
8 # Linux machines.
9
10
11 # defaults
12 export PATH='/usr/local/bin:/bin:/usr/bin'
13 OPTFILE=
14 TESTDIR="/scratch/jmc/test_"`hostname`
15 IEEE="-ieee"
16 MC=10
17
18
19 # Turn off stack limit for FIZHI
20 ulimit -s unlimited
21
22 echo -n "Creating a temp directory ..."
23 mach=`hostname`
24 tdir=$TESTDIR
25 if test -e $tdir
26 then test -e $tdir/MITgcm && rm -rf $tdir/MITgcm
27 else mkdir $tdir
28 fi
29 echo " done"
30
31 #- clean-up old output files
32 rm -f $tdir/output_*
33
34 echo -n "Downloading the MITgcm code from CVS pserver..."
35 cd $tdir
36 export CVSROOT='/u/gcmpack'
37 cvs co -P MITgcm > /dev/null 2>&1
38 echo " done"
39 cd MITgcm/verification
40
41 echo "Running testreport using:"
42 comm="./testreport -adm -a jmc@mitgcm.org"
43 echo " \"$comm\""
44 echo "======================"
45 echo
46 $comm > $tdir/output_adm 2>&1
47 tail -100 $tdir/output_adm
48
49
50 echo
51 echo "======================"
52 echo "Cleaning test directories:"
53 ./testreport -clean > /dev/null 2>&1
54 echo "======================"
55 echo
56
57 echo "Running testreport using:"
58 comm="./testreport -of ../tools/build_options/linux_ia32_g77 -a jmc@mitgcm.org"
59 echo " \"$comm\""
60 echo "======================"
61 echo
62 $comm > $tdir/output_g77 2>&1
63 tail -100 $tdir/output_g77
64
65 echo
66 echo "======================"
67 echo "Cleaning test directories:"
68 ./testreport -clean > /dev/null 2>&1
69 echo "======================"
70 echo
71
72 echo "Running testreport using:"
73 export PGI=/usr/local/pkg/pgi/pgi-6.1-5
74 comm="./testreport -match $MC -of ../tools/build_options/linux_ia32_pgf77+authors_fc5 -dd"
75 echo " \"$comm\""
76 echo "======================"
77 echo
78 $comm > $tdir/output_pgi_1 2>&1
79 tail -100 $tdir/output_pgi_1
80 #- run 2 times to increase chances to catch pgi licence
81 comm="./testreport -match $MC -of ../tools/build_options/linux_ia32_pgf77+authors_fc5 -a jmc@mitgcm.org -q"
82 echo " \"$comm\""
83 echo "======================"
84 echo
85 $comm > $tdir/output_pgi_2 2>&1
86 tail -100 $tdir/output_pgi_2
87
88 echo
89
90 echo
91 echo "======================"
92 echo "Cleaning test directories:"
93 ./testreport -clean > /dev/null 2>&1
94 echo "======================"
95 echo
96
97 echo "Running testreport using:"
98 comm="./testreport -match $MC -of ../tools/build_options/linux_ia32_gfortran -a jmc@mitgcm.org"
99 echo " \"$comm\""
100 echo "======================"
101 echo
102 $comm > $tdir/output_gfo 2>&1
103 tail -100 $tdir/output_gfo
104
105 echo
106 echo "======================"
107 echo "Cleaning test directories:"
108 ./testreport -clean > /dev/null 2>&1
109 echo "======================"
110 echo
111
112 echo "Running testreport using:"
113 comm="./testreport -match $MC -of ../tools/build_options/linux_ia32_ifort+authors_v9 -a jmc@mitgcm.org"
114 echo " \"$comm\""
115 echo "======================"
116 echo
117 $comm > $tdir/output_ifc 2>&1
118 tail -100 $tdir/output_ifc
119
120 echo
121 echo "======================"
122 echo "Cleaning test directories:"
123 ./testreport -clean > /dev/null 2>&1
124 echo "======================"
125 echo
126
127 echo "Running testreport using:"
128 export OMP_NUM_THREADS=2
129 export KMP_STACKSIZE=400m
130 comm="./testreport -mth -match $MC -of ../tools/build_options/linux_ia32_ifort.v9+mth -a jmc@mitgcm.org"
131 echo " \"$comm\""
132 echo "======================"
133 echo
134 $comm > $tdir/output_mth 2>&1
135 tail -100 $tdir/output_mth
136

  ViewVC Help
Powered by ViewVC 1.1.22