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

Annotation of /MITgcm/tools/example_scripts/cg01/cg01_pgi_test_mpi

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


Revision 1.2 - (hide annotations) (download)
Thu Jul 28 23:42:40 2005 UTC (18 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint57o_post, checkpoint57s_post, checkpoint57y_post, checkpoint57x_post, checkpoint57y_pre, checkpoint57v_post, checkpoint57r_post, checkpoint58, checkpoint57n_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint57q_post, checkpoint57z_post, checkpoint58b_post
Changes since 1.1: +1 -1 lines
change output dir to be tr_cg01_pgi_$DATE

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

  ViewVC Help
Powered by ViewVC 1.1.22