/[MITgcm]/MITgcm_contrib/test_scripts/other/testing_loc
ViewVC logotype

Annotation of /MITgcm_contrib/test_scripts/other/testing_loc

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


Revision 1.2 - (hide annotations) (download)
Fri Jun 3 17:59:32 2011 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.1: +6 -4 lines
to run the 2 testreport on my laptop (now FC.14):
- use same optfile for both test: adapted from linux_amd64_ifort11+mpi_generic
  with specific path for MPI include dir.
- tested 2 versions of intel compiler (11.1 and 12.0.4)

1 jmc 1.1 #! /usr/bin/env bash
2    
3 jmc 1.2 # $Header: /u/gcmpack/MITgcm_contrib/test_scripts/other/testing_loc,v 1.1 2011/04/27 21:26:07 jmc Exp $
4 jmc 1.1 # $Name: $
5    
6 jmc 1.2 #echo 'source ~jmc/bin/intel_v11.sh'
7     #source ~jmc/bin/intel_v11.sh
8     echo 'source ~jmc/bin/intel_v12.sh'
9     source ~jmc/bin/intel_v12.sh
10 jmc 1.1 tst_list='mp2 ur4'
11     #tst_list='ur4'
12     #tst_list='mp2'
13    
14     for tt in $tst_list
15     do
16    
17     echo "=========================================================================="
18     set -x
19     rm -f tr_clean_$tt.log
20     #- cleanup previous restart:
21     ( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 )
22     #- cleanup previous test:
23     ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )
24    
25     set +x
26     echo ""
27    
28     echo "=========================================================================="
29     set -x
30     ( cd MITgcm_$tt ; cvs update -P -d >> ../tr_clean_$tt.log 2>&1 )
31     set +x
32     echo ""
33    
34     echo "=========================================================================="
35    
36     mv -f tr_run_$tt.log tr_run_$tt.log_bak
37     cd MITgcm_$tt/verification
38    
39     date
40     # verbose mode:
41     set -x
42     pwd
43    
44     if test $tt = 'mp2' ; then
45    
46     export OMP_NUM_THREADS=2
47     export KMP_STACKSIZE=400m
48    
49 jmc 1.2 testreport -MPI 2 -mth -of ../../linux_amd64_ifort+mpi_chk \
50 jmc 1.1 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
51     -a jmc@mitgcm.org -nc > ../../tr_run_$tt.log 2>&1
52    
53     #unset echo
54     sed -n "/ email /,$ p" ../../tr_run_$tt.log
55    
56     #- test restart:
57     echo '' >> ../../tr_run_$tt.log 2>&1
58     ../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \
59     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
60    
61     fi
62    
63     if test $tt = 'ur4' ; then
64    
65     testreport -MPI 3 -ur4 -of ../../linux_amd64_ifort+mpi_chk \
66     -nc -dd -nr > ../../tr_run_$tt.log 2>&1
67    
68     set +x
69     echo '' ; echo ' remove */build/*.o */mitgcmuv'
70     /bin/rm -f */build/*.o
71     /bin/rm -f */build/mitgcmuv
72     echo ''
73     set -x
74    
75     testreport -MPI 3 -ur4 -of ../../linux_amd64_ifort+mpi_chk \
76     -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
77     -a jmc@mitgcm.org -q >> ../../tr_run_$tt.log 2>&1
78    
79     sed -n "/ email /,$ p" ../../tr_run_$tt.log
80    
81     #- test restart:
82     echo '' >> ../../tr_run_$tt.log 2>&1
83     ../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \
84     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
85    
86     fi
87    
88     set +x
89     cd ../..
90    
91     done

  ViewVC Help
Powered by ViewVC 1.1.22