source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/job_jz.sh @ 1771

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

dev_trunk_omp : add xios_report.html

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#!/bin/bash
2##SBATCH --nodes=2
3#SBATCH --ntasks=8              # Nombre total de processus MPI
4#SBATCH --ntasks-per-node=16
5##SBATCH --cpus-per-task=1
6#SBATCH --hint=nomultithread
7#SBATCH -t 00:10:00              # Temps elapsed maximum d'exécution
8#SBATCH -o output.out     # Nom du fichier de sortie
9#SBATCH -e error.err     # Nom du fichier d'erreur
10##SBATCH -p cpu_port             # Nom de la partition d'exécution
11##SBATCH -A sos@cpu
12##SBATCH --distribution=arbitrary
13#SBATCH --account=psl@cpu
14
15
16cd ${SLURM_SUBMIT_DIR}
17
18module purge
19module load intel-all/19.0.4
20module load netcdf/4.7.0/intel-19.0.4-mpi
21module load netcdf-cxx/4.2/intel-19.0.4-mpi
22module load netcdf-fortran/4.4.5/intel-19.0.4-mpi
23module load gcc/6.5.0/gcc-4.8.5
24module load cmake
25module load cdo
26#module load arm-forge
27
28ulimit -c 0
29#export ALLINEA_NO_TIMEOUT=1
30
31#ddt --connect srun --mpi=pmi2 -K1 -m block:block --multi-prog ./mpmd_srun.conf
32#srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./mpmd_srun.conf
33export machine_name=jeanzay
34export xios_dir=/gpfswork/rech/psl/rpsl954/xios/dev_trunk_omp
35export build_dir=build_prod
36
37# python user_config.py
38
39rm -f plein_report.txt
40
41rm -f setup.sh
42touch setup.sh
43>setup.sh
44for i in $(ls -d test_*/)
45do
46  cp setup.py ${i%%/}     
47  cp run_sub_test.sh ${i%%/}     
48  echo "bash -c \"cd " ${i%%/} " && python setup.py \" ">> setup.sh
49  echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh
50done
51
52export output=$(python user_config.py 2>&1 >/dev/null)
53
54if [ "$output" -ne 0 ]
55then
56        echo "user_config.py failed"
57        exit
58else
59        echo "user_config.py OK"
60fi
61
62
63cmake .
64ctest -V
65#ctest --output-on-failure
66make report
67
68#echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr
69
70rm -f test_*/setup.py
71rm -f test_*/run_sub_test.sh
72rm -f test_*/run_test_*.py
73rm -f test_*/CMakeLists.txt
74rm -f test_*/context_grid_dynamico.xml
75rm -f test_*/dynamico_grid.nc
76rm -f test_*/default_param.pyc
77rm -f test_*/user_param.pyc
78rm -f test_*/user_param.py.*
79
80
81#srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf
82#srun --mpi=pmi2 ../bin/test_client.exe
83
84python generate_table.py
Note: See TracBrowser for help on using the repository browser.