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

Last change on this file since 1745 was 1745, checked in by yushan, 5 years ago

Generic_testcase: build flag --omp to enable EP with intelmpi. --omp2 to enable EP with openmpi. tested on Irene with compiler=intel17, mpi=intelmpi&openmpi, with and without EP

File size: 2.3 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
50export machine_name=irene
51export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp
52export build_dir=build_mpi_intelmpi_prod
53
54rm -f setup.sh
55touch setup.sh
56>setup.sh
57for i in $(ls -d test_*/)
58do
59  cp setup.py ${i%%/}     
60  cp run_sub_test.sh ${i%%/}     
61  echo "bash -c \"cd " ${i%%/} " && python setup.py\" ">> setup.sh
62  echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh
63done
64
65export output=$(python user_config.py 2>&1 >/dev/null)
66
67if [ "$output" -ne 0 ]
68then
69        echo "user_config.py failed"
70        exit
71else
72        echo "user_config.py OK"
73fi
74
75
76cmake .
77ctest -V
78#ctest --output-on-failure
79make report
80
81echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr
82
83rm -f test_*/setup.py
84rm -f test_*/run_sub_test.sh
85rm -f test_*/run_test_*.py
86rm -f test_*/CMakeLists.txt
87rm -f test_*/context_grid_dynamico.xml
88rm -f test_*/dynamico_grid.nc
89rm -f test_*/default_param.pyc
90rm -f test_*/user_param.pyc
91rm -f test_*/user_param.py.*
92
Note: See TracBrowser for help on using the repository browser.