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

Contents of /MITgcm/tools/example_scripts/ACESgrid/test_aces_pgi_mpi

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


Revision 1.1 - (show annotations) (download)
Wed Aug 10 23:34:19 2011 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
add pgi+mpi test (on up to 6 proc) using mpich2

1 #!/bin/bash
2 #
3 #PBS -q four
4 #PBS -N tst_pgi
5 #PBS -l nodes=1:ppn=6
6 #PBS -e /mit/jm_c/test_acesgrid/output/tst_pgi.stderr
7 #PBS -o /mit/jm_c/test_acesgrid/output/tst_pgi.stdout
8
9 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/test_aces_gnu_mpi,v 1.1 2011/08/08 20:04:49 jmc Exp $
10 # $Name: $
11
12 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 umask 0022
19 #- to get case insensitive "ls" (and order of tested experiments)
20 export LC_ALL="en_US.UTF-8"
21
22 #TST_DIR="/home/jmc/test_ACES"
23 TST_DIR="/mit/jm_c/test_acesgrid"
24 HERE=$TST_DIR/output
25 #cd $HERE
26
27 sfx='pgi'
28 module add pgi
29 module add mvapich2
30 OPTFILE="../tools/build_options/linux_amd64_pgf77+mpi"
31 #options="-j 2 -MPI 6 -mf $PBS_NODEFILE"
32 #EXE="mpirun -machinefile TR_MFILE -v -np TR_NPROC ./mitgcmuv"
33 options="-j 2 -MPI 6"
34 EXE="mpirun -v -np TR_NPROC ./mitgcmuv"
35
36 #- keep a copy of MPI_MFILE:
37 cp -p $PBS_NODEFILE $HERE"/mf_"$sfx
38
39 checkOut=1
40 #options="$options -nc" ; checkOut=0
41 #options="$options -q" ; checkOut=0
42
43 gcmDIR="MITgcm_$sfx"
44 cd $TST_DIR
45 #- check for disk space:
46 dsp=`df -P . | 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 /bin/rm -rf $gcmDIR/verification/??_acesgrid-${sfx}_????????_?
55 # ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
56 echo "cvs update of dir $gcmDIR :"
57 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
58 else
59 echo "no dir: $gcmDIR/CVS => try a fresh check-out"
60 checkOut=2
61 fi
62 fi
63 if [ $checkOut -eq 2 ] ; then
64 if test -e $gcmDIR ; then
65 rm -rf $gcmDIR
66 fi
67 # cvs co MITgcm
68 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
69 /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
70 /usr/bin/find $gcmDIR -type f | xargs chmod g+r
71 else
72 if test -e $gcmDIR/verification ; then
73 echo "dir $gcmDIR/verification exist"
74 else
75 echo "no dir $gcmDIR/verification => exit"
76 exit
77 fi
78 fi
79
80 cd $gcmDIR/verification
81 # avoid hanging in fizhi-cs-32x32x40 (due to I/O problems with g77)
82 echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir acesgrid-$sfx \
83 -skd fizhi-cs-32x32x40
84 ./testreport $options -of $OPTFILE -command "$EXE" -odir acesgrid-$sfx \
85 -skd fizhi-cs-32x32x40

  ViewVC Help
Powered by ViewVC 1.1.22