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

Annotation of /MITgcm/tools/example_scripts/ACESgrid/aces_test_adm_mpi

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


Revision 1.1 - (hide annotations) (download)
Sat May 30 18:03:02 2009 UTC (14 years, 11 months ago) by jmc
Branch: MAIN
add MPI + AD test on aces (for now, test just 1 exp, with g77 on 2 proc)

1 jmc 1.1 #!/bin/bash
2     #
3     #PBS -q four-twelve
4     #PBS -N tst_adm
5     #PBS -l nodes=2:ppn=2
6     #PBS -e /home/jmc/test_ACES/output/tst_adm.stderr
7     #PBS -o /home/jmc/test_ACES/output/tst_adm.stdout
8    
9     # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_adm_mpi,v 1.8 2009/04/03 21:31:34 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='adm'
24     module add mpich/gnu
25     OPTFILE="../tools/build_options/linux_ia32_g77+mpi_aces"
26     options='-adm -mpi'
27     #- need this to get "staf":
28     #export PATH="$PATH:~/bin" <- does not work
29     export MITGCM_AD_OF="/home/jmc/test_ACES/ad_optfil_local"
30    
31     checkOut=1
32     #options="$options -nc" ; checkOut=0
33     #options="$options -q" ; checkOut=0
34    
35     MF=$HERE"/mf_"$sfx
36     cat $PBS_NODEFILE | sort | uniq > $MF
37     NCPU=`wc -l $MF | awk '{print $1}'`
38     EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv_ad"
39    
40     # cat << EOF > $HERE"/.cvspass"
41     # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=
42     # EOF
43     gcmDIR="MITgcm_$sfx"
44     cd $TST_DIR
45     #- check for disk space:
46     dsp=`df . | 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     echo "cvs update of dir $gcmDIR :"
55     ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
56     /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
57     else
58     echo "no dir: $gcmDIR/CVS => try a fresh check-out"
59     checkOut=2
60     fi
61     fi
62     if [ $checkOut -eq 2 ] ; then
63     if test -e $gcmDIR ; then
64     rm -rf $gcmDIR
65     fi
66     cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
67     # cvs co MITgcm
68     /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
69     /usr/bin/find $gcmDIR -type f | xargs chmod g+r
70     else
71     if test -e $gcmDIR/verification ; then
72     echo "dir $gcmDIR/verification exist"
73     else
74     echo "no dir $gcmDIR/verification => exit"
75     exit
76     fi
77     fi
78    
79     cd $gcmDIR/verification
80     # avoid hanging in fizhi-cs-32x32x40 (due to I/O problems with g77)
81     echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
82     ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
83    

  ViewVC Help
Powered by ViewVC 1.1.22