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 |
|
|
|