source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/job_irene.sh @ 1762

Last change on this file since 1762 was 1762, checked in by yushan, 2 years ago

Generic_testcase : flag --omp is used to enable EP_lib. Tested on Irene with generic_testcase and test_omp (ep+intelmpi, ep+openmpi, mpi+intelmpi, mpi+openmpi)

File size: 3.6 KB
Line 
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
19cd $BRIDGE_MSUB_PWD
20module unload netcdf-c netcdf-fortran hdf5 flavor perl hdf5 boost blitz mpi gnu
21module load gnu
22module load mpi/intelmpi/2017.0.6.256
23module load flavor/buildcompiler/intel/17
24module load flavor/hdf5/parallel
25module load netcdf-fortran/4.4.4
26module load hdf5/1.8.20
27module load boost
28module load blitz
29module load feature/bridge/heterogenous_mpmd
30module load arm-forge
31module load nco
32module load cdo
33
34export KMP_STACKSIZE=3g
35export KMP_LIBRARY=turnaround
36export MKL_SERIAL=YES
37export OMP_NUM_THREADS=${BRIDGE_MSUB_NCORE}
38
39set -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
57export machine_name=irene
58export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp
59export build_dir=build_ep_intelmpi_prod
60
61rm -f setup.sh
62touch setup.sh
63>setup.sh
64for i in $(ls -d test_*/)
65do
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
70done
71
72export output=$(python user_config.py 2>&1 >/dev/null)
73
74if [ "$output" -ne 0 ]
75then
76        echo "user_config.py failed"
77        exit
78else
79        echo "user_config.py OK"
80fi
81
82
83cmake .
84ctest -V
85#ctest --output-on-failure
86make report
87
88#echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr
89
90rm -f test_*/setup.py
91rm -f test_*/run_sub_test.sh
92rm -f test_*/run_test_*.py
93rm -f test_*/CMakeLists.txt
94rm -f test_*/context_grid_dynamico.xml
95rm -f test_*/dynamico_grid.nc
96rm -f test_*/default_param.pyc
97rm -f test_*/user_param.pyc
98rm -f test_*/user_param.py.*
99
100rm -f report_ep_intelmpi.*
101cp report.txt report_ep_intelmpi.txt
102cp 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
118export machine_name=irene
119export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp
120export build_dir=build_mpi_intelmpi_prod
121
122rm -f setup.sh
123touch setup.sh
124>setup.sh
125
126for i in $(ls -d test_*/)
127do
128  cp setup.py ${i%%/}     
129  cp run_sub_test.sh ${i%%/}     
130  echo "bash -c \"cd " ${i%%/} " && python setup.py\" ">> setup.sh
131  echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh
132done
133export output=$(python user_config.py 2>&1 >/dev/null)
134
135if [ "$output" -ne 0 ]
136then
137        echo "user_config.py failed"
138        exit
139else
140        echo "user_config.py OK"
141fi
142
143
144cmake .
145ctest -V
146#ctest --output-on-failure
147make report
148
149#echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr
150
151rm -f test_*/setup.py
152rm -f test_*/run_sub_test.sh
153rm -f test_*/run_test_*.py
154rm -f test_*/CMakeLists.txt
155rm -f test_*/context_grid_dynamico.xml
156rm -f test_*/dynamico_grid.nc
157rm -f test_*/default_param.pyc
158rm -f test_*/user_param.pyc
159rm -f test_*/user_param.py.*
160
161rm -f report_mpi_intelmpi.*
162cp report.txt report_mpi_intelmpi.txt
163cp report.html report_mpi_intelmpi.html
164
165
Note: See TracBrowser for help on using the repository browser.