1 | #!/bin/bash |
---|
2 | ###################### |
---|
3 | ## CURIE TGCC/CEA ## |
---|
4 | ###################### |
---|
5 | #MSUB -r XIOS |
---|
6 | #MSUB -o client_output.out # standard output |
---|
7 | #MSUB -e client_error.err #error output |
---|
8 | #MSUB -eo |
---|
9 | #MSUB -c 1 |
---|
10 | #MSUB -n 16 # Number of MPI tasks (SPMD case) or cores (MPMD case) |
---|
11 | #MSUB -X |
---|
12 | #MSUB -x |
---|
13 | #MSUB -T 1800 # Wall clock limit (seconds) |
---|
14 | #MSUB -q skylake # thin nodes |
---|
15 | #MSUB -A devcmip6 |
---|
16 | #MSUB -Q test |
---|
17 | #MSUB -m work |
---|
18 | |
---|
19 | cd $BRIDGE_MSUB_PWD |
---|
20 | module unload netcdf-c netcdf-fortran hdf5 flavor perl hdf5 boost blitz mpi gnu |
---|
21 | module load gnu |
---|
22 | module load mpi/intelmpi/2017.0.6.256 |
---|
23 | module load flavor/buildcompiler/intel/17 |
---|
24 | module load flavor/hdf5/parallel |
---|
25 | module load netcdf-fortran/4.4.4 |
---|
26 | module load hdf5/1.8.20 |
---|
27 | module load boost |
---|
28 | module load blitz |
---|
29 | module load feature/bridge/heterogenous_mpmd |
---|
30 | module load arm-forge |
---|
31 | module load nco |
---|
32 | module load cdo |
---|
33 | |
---|
34 | export KMP_STACKSIZE=3g |
---|
35 | export KMP_LIBRARY=turnaround |
---|
36 | export MKL_SERIAL=YES |
---|
37 | export OMP_NUM_THREADS=${BRIDGE_MSUB_NCORE} |
---|
38 | |
---|
39 | set -x |
---|
40 | |
---|
41 | #export GMON_OUT_PREFIX='gmon.out' |
---|
42 | |
---|
43 | #export TAU_MAKEFILE=$TAU_MAKEFILEDIR/Makefile.tau-icpc-papi-mpi-pdt-openmp-opari-scorep |
---|
44 | #ccc_mprun -E '--enable_perf' amplxe-cl -collect hotspots -r ${PWD}/1omp_vtune/vtune_results ../../bin/test_send.exe |
---|
45 | |
---|
46 | #ccc_mprun ../build_prod/bin/test_omp.exe 4 |
---|
47 | #ccc_mprun tau_exec -io ../../bin/test_send.exe |
---|
48 | #ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | #============================= Run EP with IntelMPI ============================= |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | export machine_name=irene |
---|
58 | export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp |
---|
59 | export build_dir=build_ep_intelmpi_prod |
---|
60 | |
---|
61 | rm -f setup.sh |
---|
62 | touch setup.sh |
---|
63 | >setup.sh |
---|
64 | for i in $(ls -d test_*/) |
---|
65 | do |
---|
66 | cp setup.py ${i%%/} |
---|
67 | cp run_sub_test.sh ${i%%/} |
---|
68 | echo "bash -c \"cd " ${i%%/} " && python setup.py\" ">> setup.sh |
---|
69 | echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh |
---|
70 | done |
---|
71 | |
---|
72 | export output=$(python user_config.py 2>&1 >/dev/null) |
---|
73 | |
---|
74 | if [ "$output" -ne 0 ] |
---|
75 | then |
---|
76 | echo "user_config.py failed" |
---|
77 | exit |
---|
78 | else |
---|
79 | echo "user_config.py OK" |
---|
80 | fi |
---|
81 | |
---|
82 | |
---|
83 | cmake . |
---|
84 | ctest -V |
---|
85 | #ctest --output-on-failure |
---|
86 | make report |
---|
87 | |
---|
88 | #echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr |
---|
89 | |
---|
90 | rm -f test_*/setup.py |
---|
91 | rm -f test_*/run_sub_test.sh |
---|
92 | rm -f test_*/run_test_*.py |
---|
93 | rm -f test_*/CMakeLists.txt |
---|
94 | rm -f test_*/context_grid_dynamico.xml |
---|
95 | rm -f test_*/dynamico_grid.nc |
---|
96 | rm -f test_*/default_param.pyc |
---|
97 | rm -f test_*/user_param.pyc |
---|
98 | rm -f test_*/user_param.py.* |
---|
99 | |
---|
100 | rm -f report_ep_intelmpi.* |
---|
101 | cp report.txt report_ep_intelmpi.txt |
---|
102 | cp report.html report_ep_intelmpi.html |
---|
103 | |
---|
104 | |
---|
105 | |
---|
106 | |
---|
107 | |
---|
108 | #============================= Run MPI with IntelMPI ============================= |
---|
109 | |
---|
110 | |
---|
111 | |
---|
112 | |
---|
113 | |
---|
114 | |
---|
115 | |
---|
116 | |
---|
117 | |
---|
118 | export machine_name=irene |
---|
119 | export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp |
---|
120 | export build_dir=build_mpi_intelmpi_prod |
---|
121 | |
---|
122 | rm -f setup.sh |
---|
123 | touch setup.sh |
---|
124 | >setup.sh |
---|
125 | for i in $(ls -d test_*/) |
---|
126 | do |
---|
127 | cp setup.py ${i%%/} |
---|
128 | cp run_sub_test.sh ${i%%/} |
---|
129 | echo "bash -c \"cd " ${i%%/} " && python setup.py\" ">> setup.sh |
---|
130 | echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh |
---|
131 | done |
---|
132 | |
---|
133 | export output=$(python user_config.py 2>&1 >/dev/null) |
---|
134 | |
---|
135 | if [ "$output" -ne 0 ] |
---|
136 | then |
---|
137 | echo "user_config.py failed" |
---|
138 | exit |
---|
139 | else |
---|
140 | echo "user_config.py OK" |
---|
141 | fi |
---|
142 | |
---|
143 | |
---|
144 | cmake . |
---|
145 | ctest -V |
---|
146 | #ctest --output-on-failure |
---|
147 | make report |
---|
148 | |
---|
149 | #echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr |
---|
150 | |
---|
151 | rm -f test_*/setup.py |
---|
152 | rm -f test_*/run_sub_test.sh |
---|
153 | rm -f test_*/run_test_*.py |
---|
154 | rm -f test_*/CMakeLists.txt |
---|
155 | rm -f test_*/context_grid_dynamico.xml |
---|
156 | rm -f test_*/dynamico_grid.nc |
---|
157 | rm -f test_*/default_param.pyc |
---|
158 | rm -f test_*/user_param.pyc |
---|
159 | rm -f test_*/user_param.py.* |
---|
160 | |
---|
161 | rm -f report_mpi_intelmpi.* |
---|
162 | cp report.txt report_mpi_intelmpi.txt |
---|
163 | cp report.html report_mpi_intelmpi.html |
---|