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

Annotation of /MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mpi

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


Revision 1.17 - (hide annotations) (download)
Fri Jan 21 05:04:38 2011 UTC (13 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63, checkpoint62s, checkpoint62r, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.16: +11 -11 lines
switch to new testreport mpi option which allows different number of procs
 for each experiment.

1 jmc 1.1 #!/bin/bash
2     #
3 jmc 1.4 #PBS -q four-twelve
4 jmc 1.1 #PBS -N tst_ifc
5 jmc 1.17 #PBS -l nodes=3:ppn=2
6 jmc 1.1 #PBS -e /home/jmc/test_ACES/output/tst_ifc.stderr
7     #PBS -o /home/jmc/test_ACES/output/tst_ifc.stdout
8    
9 jmc 1.17 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mpi,v 1.16 2010/12/14 21:34:45 jmc Exp $
10 jmc 1.1 # $Name: $
11    
12 jmc 1.12 # ACES-grid PBS-batch script for MPI test using ifort (default=v8) & mpich
13    
14 jmc 1.11 if test -f /etc/profile.d/modules.sh ; then
15     . /etc/profile.d/modules.sh
16     fi
17     # Note: added "ulimit -s unlimited" in file "~/.bashrc"
18 jmc 1.12 # to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI
19 jmc 1.11
20 jmc 1.5 umask 0022
21 jmc 1.11 #- to get case insensitive "ls" (and order of tested experiments)
22     export LC_ALL="en_US.UTF-8"
23    
24 jmc 1.14 TST_DIR="/home/jmc/test_ACES"
25     HERE=$TST_DIR/output
26     #cd $HERE
27 jmc 1.5
28     sfx='ifc'
29 jmc 1.12 module add mpich/intel
30     module add netcdf/3.6.1/icc
31     export MPI_INC_DIR='/usr/local/pkg/mpich/mpich-intel/include/'
32     OPTFILE="../tools/build_options/linux_ia32_ifort+mpi_aces"
33     #OPTFILE="$HERE/linux_ia32_ifort+mpi_aces"
34 jmc 1.17 options="-j 2 -MPI 6 -mf $PBS_NODEFILE"
35     EXE="mpirun -machinefile TR_MFILE -v -np TR_NPROC ./mitgcmuv"
36    
37     #- keep a copy of MPI_MFILE:
38     cp -p $PBS_NODEFILE $HERE"/mf_"$sfx
39 jmc 1.1
40 jmc 1.6 checkOut=1
41     #options="$options -nc" ; checkOut=0
42     #options="$options -q" ; checkOut=0
43    
44 jmc 1.5 gcmDIR="MITgcm_$sfx"
45     cd $TST_DIR
46 jmc 1.7 #- check for disk space:
47 jmc 1.16 dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'`
48 jmc 1.7 if [ $dsp -gt 99 ] ; then
49     echo 'Not enough space on this disk => do not run testreport.'
50     df .
51     exit
52     fi
53     if [ $checkOut -eq 1 ] ; then
54     if test -d $gcmDIR/CVS ; then
55 jmc 1.13 /bin/rm -rf $gcmDIR/verification/??_aces-${sfx}_????????_?
56 jmc 1.9 ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
57 jmc 1.7 echo "cvs update of dir $gcmDIR :"
58 jmc 1.15 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
59 jmc 1.7 else
60     echo "no dir: $gcmDIR/CVS => try a fresh check-out"
61     checkOut=2
62     fi
63     fi
64     if [ $checkOut -eq 2 ] ; then
65 jmc 1.6 if test -e $gcmDIR ; then
66     rm -rf $gcmDIR
67     fi
68 jmc 1.17 # cvs co MITgcm
69 jmc 1.6 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
70     /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
71     /usr/bin/find $gcmDIR -type f | xargs chmod g+r
72     else
73     if test -e $gcmDIR/verification ; then
74 jmc 1.8 echo "dir $gcmDIR/verification exist"
75 jmc 1.6 else
76     echo "no dir $gcmDIR/verification => exit"
77     exit
78     fi
79 jmc 1.1 fi
80    
81 jmc 1.5 cd $gcmDIR/verification
82 jmc 1.8 echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
83 jmc 1.5 ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
84 jmc 1.1
85 jmc 1.17 echo ''
86     echo ../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe \"$EXE\" -o aces-$sfx -a NONE
87     ../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe "$EXE" -o aces-$sfx -a NONE
88 jmc 1.9

  ViewVC Help
Powered by ViewVC 1.1.22