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

Contents of /MITgcm/tools/example_scripts/ACESgrid/aces_test_gnu_mpi

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


Revision 1.8 - (show annotations) (download)
Fri Apr 3 21:31:34 2009 UTC (15 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61p
Changes since 1.7: +8 -3 lines
document "ulimit -s unlimited" added in file "~/.bashrc"

1 #!/bin/bash
2 #
3 #PBS -q four-twelve
4 #PBS -N tst_gnu
5 #PBS -l nodes=2:ppn=2
6 #PBS -e /home/jmc/test_ACES/output/tst_gnu.stderr
7 #PBS -o /home/jmc/test_ACES/output/tst_gnu.stdout
8
9 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_gnu_mpi,v 1.7 2008/08/28 18:35:42 jmc Exp $
10 # $Name: $
11
12 umask 0022
13 TST_DIR="/home/jmc/test_ACES/gcm_tests"
14 HERE='/home/jmc/test_ACES/output'
15 cd $HERE
16
17 if test -f /etc/profile.d/modules.sh ; then
18 . /etc/profile.d/modules.sh
19 fi
20 # Note: added "ulimit -s unlimited" in file "~/.bashrc"
21 # to pass big test (the 2 fizhi-cs-* test) with MPI
22
23 sfx='gnu'
24 module add mpich/$sfx
25 OPTFILE="../tools/build_options/linux_ia32_g77+mpi_aces"
26 options='-j 2 -mpi'
27
28 checkOut=1
29 #options="$options -nc" ; checkOut=0
30 #options="$options -q" ; checkOut=0
31
32 MF=$HERE"/mf_"$sfx
33 cat $PBS_NODEFILE | sort | uniq > $MF
34 NCPU=`wc -l $MF | awk '{print $1}'`
35 EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv"
36
37 # cat << EOF > $HERE"/.cvspass"
38 # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=
39 # EOF
40 gcmDIR="MITgcm_$sfx"
41 cd $TST_DIR
42 #- check for disk space:
43 dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'`
44 if [ $dsp -gt 99 ] ; then
45 echo 'Not enough space on this disk => do not run testreport.'
46 df .
47 exit
48 fi
49 if [ $checkOut -eq 1 ] ; then
50 if test -d $gcmDIR/CVS ; then
51 echo "cvs update of dir $gcmDIR :"
52 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
53 /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
54 else
55 echo "no dir: $gcmDIR/CVS => try a fresh check-out"
56 checkOut=2
57 fi
58 fi
59 if [ $checkOut -eq 2 ] ; then
60 if test -e $gcmDIR ; then
61 rm -rf $gcmDIR
62 fi
63 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
64 # cvs co MITgcm
65 /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
66 /usr/bin/find $gcmDIR -type f | xargs chmod g+r
67 else
68 if test -e $gcmDIR/verification ; then
69 echo "dir $gcmDIR/verification exist"
70 else
71 echo "no dir $gcmDIR/verification => exit"
72 exit
73 fi
74 fi
75
76 cd $gcmDIR/verification
77 # avoid hanging in fizhi-cs-32x32x40 (due to I/O problems with g77)
78 echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx \
79 -skd fizhi-cs-32x32x40
80 ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx \
81 -skd fizhi-cs-32x32x40

  ViewVC Help
Powered by ViewVC 1.1.22