source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/job_jz.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

  • Property svn:executable set to *
File size: 2.0 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 Test_client.out     # Nom du fichier de sortie
9#SBATCH -e Test_client.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 setup.sh
40touch setup.sh
41>setup.sh
42for i in $(ls -d test_*/)
43do
44  cp setup.py ${i%%/}     
45  cp run_sub_test.sh ${i%%/}     
46  echo "bash -c \"cd " ${i%%/} " && python setup.py\" ">> setup.sh
47  echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh
48done
49
50export output=$(python user_config.py 2>&1 >/dev/null)
51
52if [ "$output" -ne 0 ]
53then
54        echo "user_config.py failed"
55        exit
56else
57        echo "user_config.py OK"
58fi
59
60
61cmake .
62#ctest -V
63ctest --output-on-failure
64make report
65
66echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr
67
68rm -f test_*/setup.py
69rm -f test_*/run_sub_test.sh
70rm -f test_*/run_test_*.py
71rm -f test_*/CMakeLists.txt
72rm -f test_*/context_grid_dynamico.xml
73rm -f test_*/dynamico_grid.nc
74rm -f test_*/default_param.pyc
75rm -f test_*/user_param.pyc
76rm -f test_*/user_param.py.*
77
78
79#srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf
80#srun --mpi=pmi2 ../bin/test_client.exe
81
82
Note: See TracBrowser for help on using the repository browser.