/[MITgcm]/MITgcm/tools/example_scripts/ACESgrid/test_aces_pgi_mpi
ViewVC logotype

Contents of /MITgcm/tools/example_scripts/ACESgrid/test_aces_pgi_mpi

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


Revision 1.3 - (show annotations) (download)
Wed Aug 17 20:45:35 2011 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.2: +15 -8 lines
exit if "cvs update" command does not return normally

1 #!/bin/bash
2 #
3 #PBS -q four
4 #PBS -N tst_pgi
5 #PBS -l nodes=1:ppn=6
6 #PBS -e /mit/jm_c/test_acesgrid/output/tst_pgi.stderr
7 #PBS -o /mit/jm_c/test_acesgrid/output/tst_pgi.stdout
8
9 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/test_aces_pgi_mpi,v 1.2 2011/08/16 16:49:01 jmc Exp $
10 # $Name: $
11
12 if test -f /etc/profile.d/modules.sh ; then
13 . /etc/profile.d/modules.sh
14 fi
15 # Note: added "ulimit -s unlimited" in file "~/.bashrc"
16 # to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI
17
18 umask 0022
19 #- to get case insensitive "ls" (and order of tested experiments)
20 export LC_ALL="en_US.UTF-8"
21
22 #TST_DIR="/home/jmc/test_ACES"
23 TST_DIR="/mit/jm_c/test_acesgrid"
24 HERE=$TST_DIR/output
25 #cd $HERE
26
27 sfx='pgi'
28 module add pgi
29 module add mvapich2
30 OPTFILE="../tools/build_options/linux_amd64_pgf77+mpi"
31 #options="-j 2 -MPI 6 -mf $PBS_NODEFILE"
32 #EXE="mpirun -machinefile TR_MFILE -v -np TR_NPROC ./mitgcmuv"
33 options="-j 2 -MPI 6"
34 EXE="mpirun -v -np TR_NPROC ./mitgcmuv"
35
36 #- keep a copy of MPI_MFILE:
37 cp -p $PBS_NODEFILE $HERE"/mf_"$sfx
38
39 checkOut=1
40 #options="$options -nc" ; checkOut=0
41 #options="$options -q" ; checkOut=0
42
43 gcmDIR="MITgcm_$sfx"
44 cd $TST_DIR
45 #- check for disk space:
46 dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'`
47 if [ $dsp -gt 99 ] ; then
48 echo 'Not enough space on this disk => do not run testreport.'
49 df .
50 exit
51 fi
52 if [ $checkOut -eq 1 ] ; then
53 if test -d $gcmDIR/CVS ; then
54 /bin/rm -rf $gcmDIR/verification/??_acesgrid-${sfx}_????????_?
55 ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
56 echo "cvs update of dir $gcmDIR :"
57 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
58 RETVAL=$?
59 if test "x$RETVAL" != x0 ; then
60 echo " cvs update fail (return val=$RETVAL) => exit"
61 exit
62 fi
63 else
64 echo "no dir: $gcmDIR/CVS => try a fresh check-out"
65 checkOut=2
66 fi
67 fi
68 if [ $checkOut -eq 2 ] ; then
69 if test -e $gcmDIR ; then
70 rm -rf $gcmDIR
71 fi
72 # cvs co MITgcm
73 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
74 /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
75 /usr/bin/find $gcmDIR -type f | xargs chmod g+r
76 fi
77
78 #- change dir to $gcmDIR/verification dir:
79 if test -e $gcmDIR/verification ; then
80 if [ $checkOut -lt 2 ] ; then
81 echo " dir $gcmDIR/verification exist" ; fi
82 cd $gcmDIR/verification
83 else
84 echo "no dir $gcmDIR/verification => exit"
85 exit
86 fi
87
88 # avoid hanging in fizhi-cs-32x32x40 (due to I/O problems with g77)
89 echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir acesgrid-$sfx \
90 -skd fizhi-cs-32x32x40
91 ./testreport $options -of $OPTFILE -command "$EXE" -odir acesgrid-$sfx \
92 -skd fizhi-cs-32x32x40
93
94 echo ''
95 #echo ../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe \"$EXE\" -o acesgrid-$sfx -a NONE
96 #../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe "$EXE" -o acesgrid-$sfx -a NONE
97 echo ../tools/do_tst_2+2 -mpi -exe \"$EXE\" -o acesgrid-$sfx -a NONE
98 ../tools/do_tst_2+2 -mpi -exe "$EXE" -o acesgrid-$sfx -a NONE

  ViewVC Help
Powered by ViewVC 1.1.22