| 1 |
#PBS -S /bin/csh |
| 2 |
#PBS -N Report_1C |
| 3 |
#PBS -l select=serial=true:ncpus=1 |
| 4 |
#PBS -l walltime=08:00:00 |
| 5 |
##PBS -l walltime=00:30:00 |
| 6 |
#PBS -A n02-ncas |
| 7 |
#PBS -V |
| 8 |
|
| 9 |
# $Header: /u/gcmpack/MITgcm/tools/example_scripts/archer/script_split1_cray,v 1.1 2016/10/03 20:11:34 dfer Exp $ |
| 10 |
# $Name: $ |
| 11 |
|
| 12 |
### script to run testreport, tar the result, and send it to jmc@mitgcm.org |
| 13 |
|
| 14 |
#- to get case insensitive "ls" (and order of tested experiments) |
| 15 |
setenv LC_ALL "en_US.UTF-8" |
| 16 |
|
| 17 |
cd /work/n02/n02/dfer/MITgcm/verification |
| 18 |
|
| 19 |
module load cray-hdf5-parallel/1.8.14 |
| 20 |
module load cray-netcdf-hdf5parallel/4.3.3.1 |
| 21 |
module list |
| 22 |
|
| 23 |
### set to 1 to run test |
| 24 |
set tst1=0 # test without MPI, but with optimization |
| 25 |
set tst2=1 # test with MPI, no optimization |
| 26 |
set tst3=0 # test with MPI, with optimization |
| 27 |
|
| 28 |
##### NO MPI |
| 29 |
if ( $tst1 == 1 ) then |
| 30 |
|
| 31 |
./testreport -of='../tools/build_options/linux_ia64_cray_archer' -norun -j 4 -makedepend makedepend -devel |
| 32 |
|
| 33 |
sed "s/ tsb1=./ tsb1=1/" script_split2_cray > script_split2.tmp |
| 34 |
mv -f script_split2.tmp script_split2_cray |
| 35 |
#qsub script_split2_cray |
| 36 |
|
| 37 |
##### MPI + IEEE |
| 38 |
else if ( $tst2 == 1 ) then |
| 39 |
|
| 40 |
./testreport -of='../tools/build_options/linux_ia64_cray_archer' -MPI 24 -command='aprun -n TR_NPROC ./mitgcmuv' -norun -j 4 -makedepend makedepend -skd "fizhi-*" |
| 41 |
|
| 42 |
sed "s/ tsb1=./ tsb1=2/" script_split2_cray > script_split2.tmp |
| 43 |
mv -f script_split2.tmp script_split2_cray |
| 44 |
qsub script_split2_cray |
| 45 |
|
| 46 |
##### MPI + NO IEEE |
| 47 |
else if ( $tst3 == 1 ) then |
| 48 |
|
| 49 |
./testreport -of='../tools/build_options/linux_ia64_cray_archer' -MPI 24 -command='aprun -n TR_NPROC ./mitgcmuv' -norun -j 4 -makedepend makedepend -skd "fizhi-*" -fast |
| 50 |
|
| 51 |
sed "s/ tsb1=./ tsb1=3/" script_split2_cray > script_split2.tmp |
| 52 |
mv -f script_split2.tmp script_split2_cray |
| 53 |
qsub script_split2_cray |
| 54 |
|
| 55 |
endif |
| 56 |
|
| 57 |
exit |