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

Last change on this file since 1779 was 1779, checked in by yushan, 4 years ago

dev_trunk_omp : update JEAN-ZAY arch file

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