/[MITgcm]/MITgcm/tools/example_scripts/cg01/cg01_g77_test_mpi
ViewVC logotype

Contents of /MITgcm/tools/example_scripts/cg01/cg01_g77_test_mpi

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


Revision 1.4 - (show annotations) (download)
Tue Apr 25 19:15:46 2006 UTC (18 years ago) by edhill
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, checkpoint58g_post, checkpoint58h_post, checkpoint58j_post, checkpoint58f_post, checkpoint58i_post, checkpoint58k_post, checkpoint58m_post
Changes since 1.3: +2 -0 lines
use the "four-twelve" queue on cg01 since the default "four" queue is
  not quite long enough (tests take ~2.5hrs and the default is 2hrs)

1 #!/bin/bash
2 #
3 # o -N Job Name
4 #PBS -N eh3_g77
5 #
6 #PBS -q four-twelve
7 #
8 # o -l ask for 3 nodes, each with the attribute "p4".
9 #PBS -l nodes=2:p4
10 #
11 # o Where to write output
12 #PBS -e /cluster/home/edhill/err_g77
13 #PBS -o /cluster/home/edhill/out_g77
14 #
15 # o Export all my environment variables to the job
16 #PBS -V
17 #
18
19 VENDOR=g77
20 MF="mf_"$VENDOR
21 RUNIT="runit_"$VENDOR
22 cd ~edhill
23 HERE=`pwd`
24 cat $PBS_NODEFILE > $MF
25 NCPU=`wc -l $MF | awk '{print $1}'`
26 MPI="/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/"$VENDOR"/bin/mpirun.ch_gm"
27 EXE="$MPI -machinefile $HERE/$MF --gm-kill 5 -v -np $NCPU ./mitgcmuv"
28
29 cat << EOF > $RUNIT
30 #!/bin/bash
31
32 $EXE
33
34 cp STDOUT.0000 output.txt
35
36 EOF
37 chmod a+x $RUNIT
38
39 COMMAND="$HERE/$RUNIT"
40
41 # cat << EOF > $HERE"/.cvspass"
42 # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=
43 # EOF
44 TDIR="/SCRATCH/s06/edhill/tmp_"$VENDOR
45 if test -e $TDIR ; then
46 rm -rf $TDIR
47 fi
48 mkdir $TDIR
49 cd $TDIR
50 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm
51 # cvs co MITgcm
52 cd MITgcm/verification
53 OPTFILE="../tools/build_options/linux_ia32_"$VENDOR"+mpi_cg01"
54 ./testreport -mpi -of $OPTFILE -command $COMMAND -odir "cg01_"$VENDOR -a 'edhill@mitgcm.org'

  ViewVC Help
Powered by ViewVC 1.1.22