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

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

dev_trunk_omp : update xios_report.html

  • Property svn:executable set to *
File size: 2.9 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
26module load subversion
27#module load arm-forge
28
29ulimit -c 0
30#export ALLINEA_NO_TIMEOUT=1
31
32#ddt --connect srun --mpi=pmi2 -K1 -m block:block --multi-prog ./mpmd_srun.conf
33#srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./mpmd_srun.conf
34export machine_name=jeanzay
35export xios_dir=/gpfswork/rech/psl/rpsl954/xios/dev_trunk_omp
36export build_dir=build_prod
37
38# python user_config.py
39
40rm -f plein_report.txt
41echo -n "#revision " >> plein_report.txt
42svn info --show-item revision .. >> plein_report.txt
43# echo -n "#url " >> plein_report.txt
44# svn info --show-item url .. >> plein_report.txt
45echo -n "#relurl " >> plein_report.txt
46svn info --show-item relative-url .. >> plein_report.txt
47echo -n "#machine " >> plein_report.txt
48echo $machine_name >> plein_report.txt
49echo -n "#build_dir " >> plein_report.txt
50echo $build_dir >> plein_report.txt
51
52export arch_dir=$(readlink ../$build_dir/arch.fcm .. 2>&1)
53echo $arch_dir
54my_arch=$(echo $arch_dir | sed 's|.*/arch-||' | sed 's|\(.*\).fcm.*|\1|' 2>&1)
55echo $my_arch
56
57
58echo -n "#arch " >> plein_report.txt
59echo $my_arch >> plein_report.txt
60
61export xios_revision=$(svn info --show-item revision .. 2>&1)
62echo $xios_revision
63
64rm -f setup.sh
65touch setup.sh
66>setup.sh
67for i in $(ls -d test_*/)
68do
69  cp setup.py ${i%%/}     
70  cp run_sub_test.sh ${i%%/}     
71  echo "bash -c \"cd " ${i%%/} " && python setup.py \" ">> setup.sh
72  echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh
73done
74
75export output=$(python user_config.py 2>&1 >/dev/null)
76
77if [ "$output" -ne 0 ]
78then
79        echo "user_config.py failed"
80        exit
81else
82        echo "user_config.py OK"
83fi
84
85
86cmake .
87ctest -V
88#ctest --output-on-failure
89make report
90
91#echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr
92
93rm -f test_*/setup.py
94rm -f test_*/run_sub_test.sh
95rm -f test_*/run_test_*.py
96rm -f test_*/CMakeLists.txt
97rm -f test_*/context_grid_dynamico.xml
98rm -f test_*/dynamico_grid.nc
99rm -f test_*/default_param.pyc
100rm -f test_*/user_param.pyc
101rm -f test_*/user_param.py.*
102
103
104#srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf
105#srun --mpi=pmi2 ../bin/test_client.exe
106
107cp plein_report.txt ../Web/plein_report_$xios_revision.txt
Note: See TracBrowser for help on using the repository browser.