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

Last change on this file since 1737 was 1737, checked in by yushan, 2 years ago

GENERIC_TESTCASE : cleanup

  • Property svn:executable set to *
File size: 1.7 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
34
35# python user_config.py
36
37rm -f setup.sh
38touch setup.sh
39>setup.sh
40for i in $(ls -d test_*/)
41do
42  cp setup.py ${i%%/}     
43  cp run_sub_test.sh ${i%%/}     
44  echo "bash -c \"cd " ${i%%/} " && python setup.py\" ">> setup.sh
45  echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh
46done
47
48export output=$(python user_config.py 2>&1 >/dev/null)
49
50if [ "$output" -ne 0 ]
51then
52        echo "user_config.py failed"
53        exit
54else
55        echo "user_config.py OK"
56fi
57
58
59cmake .
60# ctest -V
61ctest --output-on-failure
62make report
63
64
65rm -f test_*/setup.py
66rm -f test_*/run_sub_test.sh
67rm -f test_*/run_test_*.py
68rm -f test_*/CMakeLists.txt
69
70
71#srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf
72#srun --mpi=pmi2 ../bin/test_client.exe
73
74
Note: See TracBrowser for help on using the repository browser.