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

Annotation of /MITgcm/tools/example_scripts/ACESgrid/aces_test_pgi_mpi

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


Revision 1.9 - (hide annotations) (download)
Tue Jun 16 21:32:22 2009 UTC (14 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62, checkpoint62a, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.8: +10 -8 lines
get case insensitive "ls" (in batch job)

1 jmc 1.1 #!/bin/bash
2     #
3 jmc 1.4 #PBS -q four-twelve
4 jmc 1.1 #PBS -N tst_pgi
5     #PBS -l nodes=2:ppn=2
6     #PBS -e /home/jmc/test_ACES/output/tst_pgi.stderr
7     #PBS -o /home/jmc/test_ACES/output/tst_pgi.stdout
8    
9 jmc 1.9 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_pgi_mpi,v 1.8 2008/08/28 18:35:42 jmc Exp $
10 jmc 1.1 # $Name: $
11    
12 jmc 1.9 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 jmc 1.5 umask 0022
19 jmc 1.9 #- to get case insensitive "ls" (and order of tested experiments)
20     export LC_ALL="en_US.UTF-8"
21    
22 jmc 1.5 TST_DIR="/home/jmc/test_ACES/gcm_tests"
23     HERE='/home/jmc/test_ACES/output'
24     cd $HERE
25    
26     sfx='pgi'
27     module add mpich/$sfx
28     OPTFILE="../tools/build_options/linux_ia32_pgf77+mpi_aces"
29     options='-mpi -match 10'
30 jmc 1.1
31 jmc 1.6 checkOut=1
32     #options="$options -nc" ; checkOut=0
33     #options="$options -q" ; checkOut=0
34    
35 jmc 1.5 MF=$HERE"/mf_"$sfx
36 jmc 1.1 cat $PBS_NODEFILE | sort | uniq > $MF
37     NCPU=`wc -l $MF | awk '{print $1}'`
38     EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv"
39    
40 jmc 1.5 gcmDIR="MITgcm_$sfx"
41     cd $TST_DIR
42 jmc 1.7 #- 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 jmc 1.6 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 jmc 1.8 echo "dir $gcmDIR/verification exist"
70 jmc 1.6 else
71     echo "no dir $gcmDIR/verification => exit"
72     exit
73     fi
74 jmc 1.1 fi
75    
76 jmc 1.5 cd $gcmDIR/verification
77 jmc 1.8 echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
78 jmc 1.5 ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
79 jmc 1.1

  ViewVC Help
Powered by ViewVC 1.1.22