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

Contents of /MITgcm/tools/example_scripts/ACESgrid/aces_test_mp2_mth

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


Revision 1.8 - (show annotations) (download)
Tue Feb 15 18:33:15 2011 UTC (13 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62x, checkpoint62y, checkpoint63a, checkpoint62s, checkpoint63, checkpoint62w, checkpoint62v
Changes since 1.7: +10 -10 lines
switch to 3 MPI procs (instead of 2)

1 #!/bin/bash
2 #
3 #PBS -q long
4 #PBS -N tst_mp2
5 #PBS -l nodes=3:ppn=2
6 #PBS -e /home/jmc/test_ACES/output/tst_mp2.stderr
7 #PBS -o /home/jmc/test_ACES/output/tst_mp2.stdout
8
9 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_mp2_mth,v 1.7 2010/12/14 21:34:45 jmc Exp $
10 # $Name: $
11
12 # ACES-grid PBS-batch script for MPI+Multi-Threaded test using ifort (v9) & mpich2
13
14 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 # to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI
19
20 umask 0022
21 #- to get case insensitive "ls" (and order of tested experiments)
22 export LC_ALL="en_US.UTF-8"
23
24 TST_DIR="/home/jmc/test_ACES"
25 HERE=$TST_DIR/output
26 #cd $HERE
27
28 sfx='mp2'
29 #- to build:
30 module add ifc/9.0.021 icc/9.0.021 intel/9.0
31 module add mpich2/1.0.3/intel
32 module add netcdf/3.6.1/icc
33 export MPI_INC_DIR='/usr/local/pkg/mpich2/mpich2-1.0.3/intel/include/'
34 #- to run:
35 module add mpiexec
36 OPTFILE="../tools/build_options/linux_ia32_ifort+mpi_aces"
37 #OPTFILE="$HERE/linux_ia32_ifort+mpi_aces"
38 options="-j 2 -MPI 3 -mth -mf $PBS_NODEFILE"
39 export OMP_NUM_THREADS=2
40 EXE="mpiexec -pernode -comm pmi -np TR_NPROC ./mitgcmuv"
41 #export KMP_STACKSIZE=400m <-- added in file "~/.bashrc"
42
43 #- keep a copy of MPI_MFILE:
44 cp -p $PBS_NODEFILE $HERE"/mf_"$sfx
45
46 checkOut=1
47 #options="$options -nc" ; checkOut=0
48 #options="$options -q" ; checkOut=0
49
50 gcmDIR="MITgcm_$sfx"
51 cd $TST_DIR
52 #- check for disk space:
53 dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'`
54 if [ $dsp -gt 99 ] ; then
55 echo 'Not enough space on this disk => do not run testreport.'
56 df .
57 exit
58 fi
59 if [ $checkOut -eq 1 ] ; then
60 if test -d $gcmDIR/CVS ; then
61 /bin/rm -rf $gcmDIR/verification/??_aces-${sfx}_????????_?
62 # ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
63 echo "cvs update of dir $gcmDIR :"
64 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
65 else
66 echo "no dir: $gcmDIR/CVS => try a fresh check-out"
67 checkOut=2
68 fi
69 fi
70 if [ $checkOut -eq 2 ] ; then
71 if test -e $gcmDIR ; then
72 rm -rf $gcmDIR
73 fi
74 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
75 /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
76 /usr/bin/find $gcmDIR -type f | xargs chmod g+r
77 else
78 if test -e $gcmDIR/verification ; then
79 echo "dir $gcmDIR/verification exist"
80 else
81 echo "no dir $gcmDIR/verification => exit"
82 exit
83 fi
84 fi
85
86 #-- in case mpiexec get stuck, run this script in background to check
87 if test -x $HERE/check_$sfx ; then
88 echo "start check_$sfx in background"
89 mv -f $HERE/check_${sfx}.log $HERE/check_${sfx}.log_bak
90 ( cd $HERE ; ./check_$sfx > check_${sfx}.log 2>&1 ) &
91 fi
92 cd $gcmDIR/verification
93 echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
94 ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
95
96 #echo ''
97 #echo ../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe \"$EXE\" -o aces-$sfx -a NONE
98 #../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe "$EXE" -o aces-$sfx -a NONE

  ViewVC Help
Powered by ViewVC 1.1.22