Last change
on this file since 1008 was
994,
checked in by dubos, 5 years ago
|
testing : update benchmark scripts
|
File size:
1.4 KB
|
Rev | Line | |
---|
[702] | 1 | #!/bin/bash |
---|
| 2 | ## Request name |
---|
| 3 | #MSUB -r DYN_bench |
---|
| 4 | #MSUB -E '--exclude=irene[1325-1346]' |
---|
| 5 | ## Number of tasks (=MPI processes) to use |
---|
| 6 | #MSUB -n NUM_MPI |
---|
| 7 | ## Number of OpenMP threads |
---|
| 8 | #MSUB -c NUM_OMP |
---|
| 9 | ## Elapsed time limit in seconds |
---|
| 10 | #MSUB -T 1800 |
---|
| 11 | # account, partition (Xeon/KNL) |
---|
[994] | 12 | #MSUB -A gen0239 |
---|
[702] | 13 | #MSUB -q skylake |
---|
| 14 | # Mount on compute node |
---|
| 15 | #MSUB -m work |
---|
| 16 | |
---|
| 17 | function run_standard() |
---|
| 18 | { |
---|
| 19 | date > gcm.log |
---|
| 20 | ccc_mprun /ccc/work/cont003/gen7548/dubosth/IRENE/testing/build_mpi_omp/bin/icosa_gcm.exe >> gcm.log |
---|
| 21 | date >> gcm.log |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | function run_mpmd() |
---|
| 25 | { |
---|
| 26 | ln -s dynamico.0000.out gcm.log |
---|
| 27 | ccc_mprun -f mpmd.conf |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | function run_hmpmd() |
---|
| 31 | { |
---|
| 32 | module load feature/bridge/heterogenous_mpmd |
---|
| 33 | ln -s dynamico.0000.out gcm.log |
---|
| 34 | ccc_mprun -f hmpmd.conf |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | cd ${BRIDGE_MSUB_PWD} |
---|
| 38 | |
---|
| 39 | source /ccc/work/cont003/gen7548/dubosth/IRENE/testing/build_mpi_omp/arch.env |
---|
| 40 | module load ipm |
---|
| 41 | export IPM_REPORT=full |
---|
| 42 | export OMP_NUM_THREADS=$BRIDGE_MSUB_NCORE |
---|
| 43 | export OMP_STACKSIZE=128M |
---|
| 44 | |
---|
| 45 | rm -rf dynamico.* gcm.log logs *.nc netcdf |
---|
| 46 | ulimit -s unlimited |
---|
| 47 | |
---|
| 48 | #run_standard |
---|
| 49 | run_mpmd |
---|
| 50 | #run_hmpmd |
---|
| 51 | |
---|
| 52 | grep MAIN gcm.log |
---|
| 53 | tail -n 50 gcm.log |
---|
| 54 | |
---|
| 55 | mkdir -p netcdf |
---|
| 56 | cp gcm.log *.def netcdf |
---|
| 57 | mv *.nc netcdf |
---|
| 58 | |
---|
| 59 | mkdir -p logs |
---|
| 60 | cp *.xml logs |
---|
| 61 | cp -pr /ccc/work/cont003/gen7548/dubosth/IRENE/testing/build_mpi_omp/bin/icosa_gcm.exe logs |
---|
| 62 | cp -pr /ccc/work/cont003/gen7548/dubosth/IRENE/testing/DYNAMICO_trunk/src logs |
---|
| 63 | mv gcm.log xios_client_*.err xios_client_*.out dynamico.* logs |
---|
| 64 | |
---|
| 65 | touch already_done |
---|
Note: See
TracBrowser
for help on using the repository browser.