Ignore:
Timestamp:
2019-07-29T16:54:28+02:00 (2 years ago)
Author:
smasson
Message:

dev_r10984_HPC-13 : update BENCH to be more robust, see #2285

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/tests/BENCH/EXPREF/submit_bench

    r11359 r11364  
    160160    [ "$machine" == "curie" ] && queuename=standard || queuename=skylake 
    161161     
    162     jobname=$HOME/binrun/jobbench 
     162    EXPjob=../EXP_${resolution}_${nproc5}_${dateref} 
     163    mkdir -p ${EXPjob} 
     164    cd ${EXPjob} 
     165    jobname=jobbench 
    163166    cat > $jobname << EOF 
    164167#!/bin/bash 
     
    176179# 
    177180 
    178 cd \${BRIDGE_MSUB_PWD}/.. 
    179  
    180  
    181 EXPjob=EXP_${resolution}_${nproc5}_${dateref} 
    182 rsync -av --exclude="*eo" EXPREF/ \${EXPjob}/ 
    183 rsync -av EXP00/nemo \${EXPjob}/nemo 
    184 cd \${EXPjob} 
     181cd \${BRIDGE_MSUB_PWD} 
     182 
     183for ff in \${BRIDGE_MSUB_PWD}/../EXPREF/namelist_*cfg \${BRIDGE_MSUB_PWD}/../EXPREF/namelist_*ref \${BRIDGE_MSUB_PWD}/../BLD/bin/nemo.exe 
     184do 
     185    cp \$ff . 
     186done 
    185187 
    186188jpni=${cores/\**/} 
    187189jpnj=${cores/?*\*/} 
    188190 
    189 sed -e "s/jpni *=.*/jpni = \${jpni}/" -e "s/jpnj *=.*/jpnj = \${jpnj}/" namelist_cfg_orca${resolution}_like > namelist_cfg 
    190  
    191 time ccc_mprun -n \${BRIDGE_MSUB_NPROC} ./nemo > jobout_${resolution}_${nproc5}_${dateref} 
     191sed -e "s/jpni *=.*/jpni = \${jpni}/" \ 
     192    -e "s/jpnj *=.*/jpnj = \${jpnj}/"\ 
     193    -e "s/ln_timing *= *.false./ln_timing   =  .true./" \ 
     194     \${BRIDGE_MSUB_PWD}/../EXPREF/namelist_cfg_orca${resolution}_like > namelist_cfg 
     195 
     196time ccc_mprun -n \${BRIDGE_MSUB_NPROC} ./nemo.exe > jobout_${resolution}_${nproc5}_${dateref} 2>&1 
    192197 
    193198EOF 
     
    217222#SBATCH --nodes=${nnode}             # nombre de noeuds 
    218223#SBATCH --ntasks-per-node=${ncore_node}  # nombre de taches MPI par noeud 
     224#SBATCH --ntasks-per-core=1        # 1 processus MPI par coeur physique (pas d'hyperthreading) 
    219225#SBATCH --time=${hh}:${mm}:${ss}       # temps d execution maximum demande (HH:MM:SS) 
    220226#SBATCH --output=bench_${resolution}_${nproc5}_%j.eo        # nom du fichier de sortie 
     
    249255echo  
    250256 
    251 time mpirun -np ${nproc} ./nemo.exe > out_run.txt 2>&1 
     257time srun --mpi=pmi2 --cpu-bind=cores -K1 -n ${nproc} ./nemo.exe > jobout_${resolution}_${nproc5}_${dateref} 2>&1 
    252258 
    253259ls -l 
Note: See TracChangeset for help on using the changeset viewer.