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

Contents of /MITgcm/tools/example_scripts/ACESgrid/itrda_pgi_test_mpi

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


Revision 1.11 - (show annotations) (download)
Tue Mar 13 19:40:54 2007 UTC (17 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59n, checkpoint59i, checkpoint58y_post, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58x_post, checkpoint59h, checkpoint58w_post, checkpoint59l
Changes since 1.10: +3 -1 lines
Do not export environment (comment out #PBS -V option): after recent upgrade
 of ao, head-node environment is no longer suitable for computer-node.

1 #!/bin/bash
2 #
3 #PBS -q long
4 #PBS -N eh3_pgf77
5 #PBS -l nodes=2:ppn=2
6 #PBS -e /home/edhill/test_outp/eh3_pgi.stderr
7 #PBS -o /home/edhill/test_outp/eh3_pgi.stdout
8 # #PBS -V
9 # ^- commented out => do not export env. variable !
10 # since head node environment (& module) is too different from computer node
11
12 if test -f /etc/profile.d/modules.sh ; then
13 . /etc/profile.d/modules.sh
14 fi
15 module add mpich/pgi
16
17 HERE='/home/edhill/test_outp'
18 cd $HERE
19
20 FC=pgf77
21 MF=$HERE"/mf_"$FC
22 cat $PBS_NODEFILE | sort | uniq > $MF
23 NCPU=`wc -l $MF | awk '{print $1}'`
24 EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv"
25
26 # cat << EOF > $HERE"/.cvspass"
27 # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=
28 # EOF
29 umask 0022
30 TDIR="/net/ds-01/scratch-5/edhill/tmp_"$FC
31 if test -e $TDIR ; then
32 rm -rf $TDIR
33 fi
34 mkdir $TDIR
35 cd $TDIR
36 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null 2>&1
37 # cvs co MITgcm
38 /usr/bin/find $TDIR -type d | xargs chmod g+rxs
39 /usr/bin/find $TDIR -type f | xargs chmod g+r
40
41 cd MITgcm/verification
42 OPTFILE="../tools/build_options/linux_ia32_"$FC"+mpi_aces"
43 # ./testreport -j 2 -mpi -of $OPTFILE -command "$EXE" -a 'edhill@mitgcm.org'
44 ./testreport -mpi -of $OPTFILE -command "$EXE"

  ViewVC Help
Powered by ViewVC 1.1.22