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

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

GENERIC_TESTCASE : generate job scripts for each config (Jean-Zay and Irene)

File size: 1.9 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
51
52rm -f setup.sh
53touch setup.sh
54>setup.sh
55for i in $(ls -d test_*/)
56do
57  cp setup.py ${i%%/}     
58  cp run_sub_test.sh ${i%%/}     
59  echo "bash -c \"cd " ${i%%/} " && python setup.py\" ">> setup.sh
60  echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh
61done
62
63export output=$(python user_config.py 2>&1 >/dev/null)
64
65if [ "$output" -ne 0 ]
66then
67        echo "user_config.py failed"
68        exit
69else
70        echo "user_config.py OK"
71fi
72
73
74cmake .
75ctest -V
76#ctest --output-on-failure
77make report
78
79
80rm -f test_*/setup.py
81rm -f test_*/run_sub_test.sh
82rm -f test_*/run_test_*.py
83rm -f test_*/CMakeLists.txt
84
Note: See TracBrowser for help on using the repository browser.