- Timestamp:
- 10/16/19 11:18:04 (5 years ago)
- Location:
- XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/check.py
r1738 r1743 46 46 f.write("module load cdo\n") 47 47 f.write("ulimit -c 0\n") 48 xios_root=os.getenv('xios_dir') 49 build_folder=os.getenv('build_dir') 50 f.write("export xios_dir="+xios_root+"\n") 51 f.write("export build_dir="+build_folder+"\n") 48 52 f.write("export machine_name=jeanzay\n") 49 53 f.write("cp ../setup.py ./\n") … … 54 58 f.write("cmake .\n") 55 59 f.write("ctest -V #enable all output\n") 56 f.write("rm -f setup.py run_sub_test.sh\n") 60 f.write("rm -f setup.py\n") 61 f.write("rm -f run_sub_test.sh\n") 57 62 f.write("rm -f run_test_*.py\n") 58 f.write("rm -f user_param.py.*\n") 59 f.write("rm -f user_param.def\n") 63 f.write("rm -f CMakeLists.txt\n") 64 f.write("rm -f context_grid_dynamico.xml\n") 65 f.write("rm -f dynamico_grid.nc\n") 66 f.write("rm -f default_param.*\n") 67 f.write("rm -f user_param.*\n") 60 68 f.write("mv user_params.def_bkp user_params.def\n") 61 69 f.write("\n") 62 70 f.close 63 64 65 71 66 72 def write_irene_job(configName, nbproc=8): … … 99 105 f.write("export OMP_NUM_THREADS=${BRIDGE_MSUB_NCORE}\n") 100 106 f.write("set -x \n") 107 xios_root=os.getenv('xios_dir') 108 build_folder=os.getenv('build_dir') 109 f.write("export xios_dir="+xios_root+"\n") 110 f.write("export build_dir="+build_folder+"\n") 101 111 f.write("export machine_name=irene\n") 102 112 f.write("cp ../setup.py ./\n") … … 107 117 f.write("cmake .\n") 108 118 f.write("ctest -V #enable all output\n") 109 f.write("rm -f setup.py run_sub_test.sh\n") 119 f.write("rm -f setup.py\n") 120 f.write("rm -f run_sub_test.sh\n") 110 121 f.write("rm -f run_test_*.py\n") 111 f.write("rm -f user_param.py.*\n") 112 f.write("rm -f user_param.def\n") 122 f.write("rm -f CMakeLists.txt\n") 123 f.write("rm -f context_grid_dynamico.xml\n") 124 f.write("rm -f dynamico_grid.nc\n") 125 f.write("rm -f default_param.*\n") 126 f.write("rm -f user_param.*\n") 113 127 f.write("mv user_params.def_bkp user_params.def\n") 114 128 f.write("\n") … … 234 248 l.write("<br>") 235 249 h.close() 250 #generate job scripts 251 hostname=os.getenv('machine_name') 252 if hostname.startswith("jeanzay"): 253 write_jz_job(configName, NumberClients+NumberServers) 254 255 elif hostname.startswith("irene"): 256 write_irene_job(configName, NumberClients+NumberServers) 257 258 else : 259 print("machine unknown") 260 print >> sys.stderr, 1 261 sys.exit() 236 262 237 263 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/clean_config.sh
r1734 r1743 1 bash -c "cd test_function && rm -rf config_* "2 bash -c "cd test_scalar_algo && rm -rf config_* "3 bash -c "cd test_axis_algo && rm -rf config_* "4 bash -c "cd test_domain_algo && rm -rf config_* "5 bash -c "cd test_grid_algo && rm -rf config_* "1 bash -c "cd test_function && rm -rf config_* && rm -f jz_job_*.sh && rm -f irene_job_*.sh && rm -f user_param.py.* && rm -f run_test_*.py && rm -f report.* && rm -rf diff.txt && rm -rf current_run" 2 bash -c "cd test_scalar_algo && rm -rf config_* && rm -f jz_job_*.sh && rm -f irene_job_*.sh && rm -f user_param.py.* && rm -f run_test_*.py && rm -f report.* && rm -rf diff.txt && rm -rf current_run" 3 bash -c "cd test_axis_algo && rm -rf config_* && rm -f jz_job_*.sh && rm -f irene_job_*.sh && rm -f user_param.py.* && rm -f run_test_*.py && rm -f report.* && rm -rf diff.txt && rm -rf current_run" 4 bash -c "cd test_domain_algo && rm -rf config_* && rm -f jz_job_*.sh && rm -f irene_job_*.sh && rm -f user_param.py.* && rm -f run_test_*.py && rm -f report.* && rm -rf diff.txt && rm -rf current_run" 5 bash -c "cd test_grid_algo && rm -rf config_* && rm -f jz_job_*.sh && rm -f irene_job_*.sh && rm -f user_param.py.* && rm -f run_test_*.py && rm -f report.* && rm -rf diff.txt && rm -rf current_run" 6 6 7 7 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/clean_xios.sh
r1722 r1743 1 cd test_function /test_average1 cd test_function 2 2 rm -f xios_*.out 3 3 rm -f xios_*.err 4 rm -f *.nc 5 rm -f graph_data.json 6 rm -f distribute_file_*.dat 4 7 5 cd ../test_ maximum8 cd ../test_scalar_algo 6 9 rm -f xios_*.out 7 10 rm -f xios_*.err 8 9 cd ../test_minimum 10 rm -f xios_*.out 11 rm -f xios_*.err 12 13 cd ../test_sum 14 rm -f xios_*.out 15 rm -f xios_*.err 16 17 cd ../../test_scalar_algo 18 rm -f xios_*.out 19 rm -f xios_*.err 11 rm -f *.nc 12 rm -f graph_data.json 13 rm -f distribute_file_*.dat 20 14 21 15 cd ../test_axis_algo 22 16 rm -f xios_*.out 23 17 rm -f xios_*.err 18 rm -f *.nc 19 rm -f graph_data.json 20 rm -f distribute_file_*.dat 24 21 25 22 cd ../test_domain_algo 26 23 rm -f xios_*.out 27 24 rm -f xios_*.err 25 rm -f *.nc 26 rm -f graph_data.json 27 rm -f distribute_file_*.dat 28 28 29 29 cd ../test_grid_algo 30 30 rm -f xios_*.out 31 31 rm -f xios_*.err 32 rm -f *.nc 33 rm -f graph_data.json 34 rm -f distribute_file_*.dat 32 35 33 36 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/job_irene.sh
r1738 r1743 49 49 50 50 export machine_name=irene 51 export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 52 export build_dir=build_mpi_intelmpi_prod 51 53 52 54 rm -f setup.sh … … 82 84 rm -f test_*/run_test_*.py 83 85 rm -f test_*/CMakeLists.txt 86 rm -f test_*/context_grid_dynamico.xml 87 rm -f test_*/dynamico_grid.nc 88 rm -f test_*/default_param.pyc 89 rm -f test_*/user_param.pyc 90 rm -f test_*/user_param.py.* 84 91 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/job_jz.sh
r1739 r1743 32 32 #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./mpmd_srun.conf 33 33 export machine_name=jeanzay 34 export xios_dir=/gpfswork/rech/psl/rpsl954/xios/dev_trunk_omp 35 export build_dir=build_prod 34 36 35 37 # python user_config.py … … 67 69 rm -f test_*/run_test_*.py 68 70 rm -f test_*/CMakeLists.txt 71 rm -f test_*/context_grid_dynamico.xml 72 rm -f test_*/dynamico_grid.nc 73 rm -f test_*/default_param.pyc 74 rm -f test_*/user_param.pyc 75 rm -f test_*/user_param.py.* 69 76 70 77 … … 73 80 74 81 75 # bj98et@eduroam.cnrs.fr76 # corsez filez doutez isbas -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/run_sub_test.sh
r1739 r1743 25 25 then 26 26 echo "Testing on Irene" 27 ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe27 ccc_mprun -n $nb_proc $xios_dir/$build_dir/bin/generic_testcase.exe 28 28 elif [[($machine_name == ada)]] 29 29 then 30 30 echo "Testing on ADA" 31 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe31 mpirun -np $nb_proc $xios_dir/$build_dir/bin/generic_testcase.exe 32 32 elif [[($machine_name == jeanzay)]] 33 33 then 34 34 echo "Testing on Jean-Zay" 35 srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe35 srun -n $nb_proc --mpi=pmi2 $xios_dir/$build_dir/bin/generic_testcase.exe 36 36 if [ $? -ne 0 ] 37 37 then -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/job_irene.sh
r1738 r1743 40 40 41 41 export machine_name=irene 42 #export GMON_OUT_PREFIX='gmon.out' 42 export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 43 export build_dir=build_mpi_intelmpi_prod 43 44 44 #export TAU_MAKEFILE=$TAU_MAKEFILEDIR/Makefile.tau-icpc-papi-mpi-pdt-openmp-opari-scorep45 #ccc_mprun -E '--enable_perf' amplxe-cl -collect hotspots -r ${PWD}/1omp_vtune/vtune_results ../../bin/test_send.exe46 47 #ccc_mprun ../build_prod/bin/test_omp.exe 448 #ccc_mprun tau_exec -io ../../bin/test_send.exe49 #ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe50 45 cp ../setup.py ./ 51 46 cp ../run_sub_test.sh ./ … … 59 54 ctest -V #enable all output 60 55 61 rm -f setup.py run_sub_test.sh 56 rm -f setup.py 57 rm -f run_sub_test.sh 62 58 rm -f run_test_*.py 59 rm -f CMakeLists.txt 60 rm -f context_grid_dynamico.xml 61 rm -f dynamico_grid.nc 62 rm -f default_param.pyc 63 rm -f user_param.pyc 63 64 rm -f user_param.py.* -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/job_jz.sh
r1737 r1743 32 32 #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./mpmd_srun.conf 33 33 export machine_name=jeanzay 34 export xios_dir=/gpfswork/rech/psl/rpsl954/xios/dev_trunk_omp 35 export build_dir=build_prod 34 36 35 37 cp ../setup.py ./ … … 44 46 ctest -V #enable all output 45 47 46 rm -f setup.py run_sub_test.sh 48 rm -f setup.py 49 rm -f run_sub_test.sh 47 50 rm -f run_test_*.py 51 rm -f CMakeLists.txt 52 rm -f context_grid_dynamico.xml 53 rm -f dynamico_grid.nc 54 rm -f default_param.pyc 55 rm -f user_param.pyc 48 56 rm -f user_param.py.* -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/job_irene.sh
r1738 r1743 40 40 41 41 export machine_name=irene 42 #export GMON_OUT_PREFIX='gmon.out' 42 export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 43 export build_dir=build_mpi_intelmpi_prod 43 44 44 #export TAU_MAKEFILE=$TAU_MAKEFILEDIR/Makefile.tau-icpc-papi-mpi-pdt-openmp-opari-scorep45 #ccc_mprun -E '--enable_perf' amplxe-cl -collect hotspots -r ${PWD}/1omp_vtune/vtune_results ../../bin/test_send.exe46 47 #ccc_mprun ../build_prod/bin/test_omp.exe 448 #ccc_mprun tau_exec -io ../../bin/test_send.exe49 #ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe50 45 cp ../setup.py ./ 51 46 cp ../run_sub_test.sh ./ … … 59 54 ctest -V #enable all output 60 55 61 rm -f setup.py run_sub_test.sh 56 rm -f setup.py 57 rm -f run_sub_test.sh 62 58 rm -f run_test_*.py 59 rm -f CMakeLists.txt 60 rm -f context_grid_dynamico.xml 61 rm -f dynamico_grid.nc 62 rm -f default_param.pyc 63 rm -f user_param.pyc 63 64 rm -f user_param.py.* -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/job_jz.sh
r1737 r1743 32 32 #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./mpmd_srun.conf 33 33 export machine_name=jeanzay 34 export xios_dir=/gpfswork/rech/psl/rpsl954/xios/dev_trunk_omp 35 export build_dir=build_prod 34 36 35 37 cp ../setup.py ./ … … 40 42 cmake . 41 43 42 ctest --output-on-failure #enable output only when test failed44 #ctest --output-on-failure #enable output only when test failed 43 45 44 #ctest -V #enable all output46 ctest -V #enable all output 45 47 46 rm -f setup.py run_sub_test.sh 48 rm -f setup.py 49 rm -f run_sub_test.sh 47 50 rm -f run_test_*.py 51 rm -f CMakeLists.txt 52 rm -f context_grid_dynamico.xml 53 rm -f dynamico_grid.nc 54 rm -f default_param.pyc 55 rm -f user_param.pyc 48 56 rm -f user_param.py.* 49 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/job_irene.sh
r1738 r1743 39 39 set -x 40 40 41 #export GMON_OUT_PREFIX='gmon.out' 41 export machine_name=irene 42 export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 43 export build_dir=build_mpi_intelmpi_prod 42 44 43 #export TAU_MAKEFILE=$TAU_MAKEFILEDIR/Makefile.tau-icpc-papi-mpi-pdt-openmp-opari-scorep44 #ccc_mprun -E '--enable_perf' amplxe-cl -collect hotspots -r ${PWD}/1omp_vtune/vtune_results ../../bin/test_send.exe45 46 #ccc_mprun ../build_prod/bin/test_omp.exe 447 #ccc_mprun tau_exec -io ../../bin/test_send.exe48 #ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe49 45 cp ../setup.py ./ 50 46 cp ../run_sub_test.sh ./ … … 58 54 ctest -V #enable all output 59 55 60 rm -f setup.py run_sub_test.sh 56 rm -f setup.py 57 rm -f run_sub_test.sh 61 58 rm -f run_test_*.py 59 rm -f CMakeLists.txt 60 rm -f context_grid_dynamico.xml 61 rm -f dynamico_grid.nc 62 rm -f default_param.pyc 63 rm -f user_param.pyc 62 64 rm -f user_param.py.* -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/job_jz.sh
r1737 r1743 32 32 #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./mpmd_srun.conf 33 33 export machine_name=jeanzay 34 export xios_dir=/gpfswork/rech/psl/rpsl954/xios/dev_trunk_omp 35 export build_dir=build_prod 34 36 35 37 cp ../setup.py ./ … … 40 42 cmake . 41 43 42 ctest --output-on-failure #enable output only when test failed44 #ctest --output-on-failure #enable output only when test failed 43 45 44 #ctest -V #enable all output46 ctest -V #enable all output 45 47 46 rm -f setup.py run_sub_test.sh 48 rm -f setup.py 49 rm -f run_sub_test.sh 47 50 rm -f run_test_*.py 51 rm -f CMakeLists.txt 52 rm -f context_grid_dynamico.xml 53 rm -f dynamico_grid.nc 54 rm -f default_param.pyc 55 rm -f user_param.pyc 48 56 rm -f user_param.py.* 49 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/job_irene.sh
r1738 r1743 40 40 41 41 export machine_name=irene 42 #export GMON_OUT_PREFIX='gmon.out' 42 export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 43 export build_dir=build_mpi_intelmpi_prod 43 44 44 #export TAU_MAKEFILE=$TAU_MAKEFILEDIR/Makefile.tau-icpc-papi-mpi-pdt-openmp-opari-scorep45 #ccc_mprun -E '--enable_perf' amplxe-cl -collect hotspots -r ${PWD}/1omp_vtune/vtune_results ../../bin/test_send.exe46 47 #ccc_mprun ../build_prod/bin/test_omp.exe 448 #ccc_mprun tau_exec -io ../../bin/test_send.exe49 #ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe50 45 cp ../setup.py ./ 51 46 cp ../run_sub_test.sh ./ … … 59 54 ctest -V #enable all output 60 55 61 rm -f setup.py run_sub_test.sh 56 rm -f setup.py 57 rm -f run_sub_test.sh 62 58 rm -f run_test_*.py 59 rm -f CMakeLists.txt 60 rm -f context_grid_dynamico.xml 61 rm -f dynamico_grid.nc 62 rm -f default_param.pyc 63 rm -f user_param.pyc 63 64 rm -f user_param.py.* -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/job_jz.sh
r1737 r1743 32 32 #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./mpmd_srun.conf 33 33 export machine_name=jeanzay 34 export xios_dir=/gpfswork/rech/psl/rpsl954/xios/dev_trunk_omp 35 export build_dir=build_prod 34 36 35 37 cp ../setup.py ./ … … 40 42 cmake . 41 43 42 ctest --output-on-failure #enable output only when test failed44 #ctest --output-on-failure #enable output only when test failed 43 45 44 #ctest -V #enable all output46 ctest -V #enable all output 45 47 46 rm -f setup.py run_sub_test.sh 48 rm -f setup.py 49 rm -f run_sub_test.sh 47 50 rm -f run_test_*.py 51 rm -f CMakeLists.txt 52 rm -f context_grid_dynamico.xml 53 rm -f dynamico_grid.nc 54 rm -f default_param.pyc 55 rm -f user_param.pyc 48 56 rm -f user_param.py.* 49 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/job_irene.sh
r1738 r1743 40 40 41 41 export machine_name=irene 42 #export GMON_OUT_PREFIX='gmon.out' 42 export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 43 export build_dir=build_mpi_intelmpi_prod 43 44 44 #export TAU_MAKEFILE=$TAU_MAKEFILEDIR/Makefile.tau-icpc-papi-mpi-pdt-openmp-opari-scorep45 #ccc_mprun -E '--enable_perf' amplxe-cl -collect hotspots -r ${PWD}/1omp_vtune/vtune_results ../../bin/test_send.exe46 47 #ccc_mprun ../build_prod/bin/test_omp.exe 448 #ccc_mprun tau_exec -io ../../bin/test_send.exe49 #ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe50 45 cp ../setup.py ./ 51 46 cp ../run_sub_test.sh ./ … … 59 54 ctest -V #enable all output 60 55 61 rm -f setup.py run_sub_test.sh 56 rm -f setup.py 57 rm -f run_sub_test.sh 62 58 rm -f run_test_*.py 59 rm -f CMakeLists.txt 60 rm -f context_grid_dynamico.xml 61 rm -f dynamico_grid.nc 62 rm -f default_param.pyc 63 rm -f user_param.pyc 63 64 rm -f user_param.py.* -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/job_jz.sh
r1737 r1743 32 32 #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./mpmd_srun.conf 33 33 export machine_name=jeanzay 34 export xios_dir=/gpfswork/rech/psl/rpsl954/xios/dev_trunk_omp 35 export build_dir=build_prod 34 36 35 37 cp ../setup.py ./ … … 40 42 cmake . 41 43 42 ctest --output-on-failure #enable output only when test failed44 #ctest --output-on-failure #enable output only when test failed 43 45 44 #ctest -V #enable all output46 ctest -V #enable all output 45 47 46 rm -f setup.py run_sub_test.sh 48 rm -f setup.py 49 rm -f run_sub_test.sh 47 50 rm -f run_test_*.py 51 rm -f CMakeLists.txt 52 rm -f context_grid_dynamico.xml 53 rm -f dynamico_grid.nc 54 rm -f default_param.pyc 55 rm -f user_param.pyc 48 56 rm -f user_param.py.*
Note: See TracChangeset
for help on using the changeset viewer.