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

Annotation of /MITgcm/tools/example_scripts/cg01/cg01_intel_test_mpi

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


Revision 1.4 - (hide annotations) (download)
Tue Apr 25 19:15:46 2006 UTC (18 years, 1 month 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 edhill 1.1 #!/bin/bash
2     #
3     # o -N Job Name
4     #PBS -N eh3_intel
5     #
6 edhill 1.4 #PBS -q four-twelve
7     #
8 edhill 1.1 # 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_intel
13     #PBS -o /cluster/home/edhill/out_intel
14     #
15     # o Export all my environment variables to the job
16     #PBS -V
17     #
18    
19     VENDOR=intel
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 edhill 1.3 TDIR="/SCRATCH/s06/edhill/tmp_"$VENDOR
45 edhill 1.1 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     OPTFILE="../tools/build_options/linux_ia32_ifc+mpi_cg01"
55 jmc 1.2 ./testreport -mpi -of $OPTFILE -command $COMMAND -odir "cg01_"$VENDOR -a 'edhill@mitgcm.org'
56 edhill 1.1
57    

  ViewVC Help
Powered by ViewVC 1.1.22