New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Developers/Validation/trunk_perfs/do_trunk_perfs – NEMO
wiki:Developers/Validation/trunk_perfs/do_trunk_perfs

Version 19 (modified by clem, 4 years ago) (diff)

--

Get the code

# my login
me=smasson
# svn path to NEMO trunk
svnpath=svn+ssh://${me}@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/NEMO/trunk
# get the revision number of the HEAD
rev=$( svn info $svnpath | grep "Last Changed Rev" | sed -e "s/.*: *//" )
# directory name given to the local trunk
dirnemo=trunk_test_perf_${rev}
# checkout the trunk into $dirnemo
svn co $svnpath $dirnemo
#
cd $dirnemo
#

Prepare and compile the tests

link the input files files

ORCA2_ICE_v4.x.gz is available

  • on Seb cloud: here
  • on Jean-Zay : /gpfsstore/rech/fqx/reee217/input_nemo_v4.0
  • on Irene : /ccc/store/cont005/ra0542/massons/input_nemo_v4.0

Ice_initialization.nc is available

  • on Clément cloud: here
  • on Jean-Zay : /gpfsstore/rech/fqx/reee217/input_nemo_v4.0
  • on Irene : /ccc/store/cont005/ra0542/massons/input_nemo_v4.0
# define path to ORCA2_ICE_v4.x directory. For example:
#dirdata=/ccc/scratch/cont005/ra0542/massons/input_nemo_v4.0/ORCA2_ICE_v4.x
#dirdata=/gpfsscratch/rech/fqx/reee217/input_nemo_v4.0/ORCA2_ICE_v4.x
dirdata=...

# add the new Ice_initialization file to this directory
mv Ice_initialization.nc $dirdata

# link the input files
for dd in cfgs/ORCA2_*/EXP00
do
    cd $dd
    ln -sf $dirdata/* .
    cd -
done

Run!

see the 2 examples of jobs: jobaps_irene.sh or jobaps_jeanzay.sh

#export qs=sbatch
for dd in cfgs/ORCA2_*/EXP00
do
    \cp jobaps.sh $dd/. # get jobaps.sh from the attached files
    cd $dd
    qs jobaps.sh  # define qs alias is not already done...
    cd -
done

Check the runs did 5840 time steps

for ff in cfgs/ORCA2_*/EXP00/time.step
do
    echo "$ff: $( cat $ff)"
done

Create aps reports

for dd in cfgs/ORCA2_*/EXP00
do
    cd $dd
    yyyymmdd=$( date +%Y%m%d )
    hhmmss=$( date +%H%M%S )
    rptname=aps_result_${yyyymmdd}_${hhmmss}.txt
    module list > $rptname   # add the list of modules in the report
    echo >> $rptname
    aps-report aps_result_${yyyymmdd} >> $rptname
    cd -
done

Create gnu plots from timing.output

#module load gnuplot
for dd in cfgs/ORCA2_*/EXP00
do
    cd $dd
    grep " timing step" timing.output | sed -e "s/.*: *//" | gnuplot -p -e 'set yrange [0.0:0.5] ; set title "trunk r'${rev}'" ; set output "timing.png" ; plot "/dev/stdin"'
    cd -
done

Attachments (4)

Download all attachments as: .zip