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.
sh_bench in NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF – NEMO

source: NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF/sh_bench @ 9856

Last change on this file since 9856 was 9856, checked in by smasson, 6 years ago

dev_r9759_HPC09_ESIWACE: update jobs for bench

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2set -u
3#set -xv
4
5resolution=${1:?"you must provide the resolution: 1 025 or 12"}
6
7machine=$( hostname | sed -e "s/[0-9]*//g" )
8
9case $machine in
10    "beaufixlogin") ncore_node=40 ;;
11    "curie")        ncore_node=16 ;;
12    "irene")        ncore_node=48 ;;
13esac
14
15case $ncore_node in
16    16)
17    case ${resolution} in
18   "1")  list="4*4 8*4 8*8 8*16 24*10 24*22 40*24 45*48 72*66" ;;
19   "025")list="8*4 8*8 16*8 20*12 24*22 32*32 48*42 72*58 96*81 144*110 144*201" ;;
20   "12") list="16*16 32*16 40*26 80*26 80*51 96*85 160*102 216*150" ;;
21    esac
22    ;;
23    40)
24    case ${resolution} in
25   "1")  list="8*5 8*10 10*16 20*16 20*30 40*33 40*66 60*66 120*55" ;;
26   "025")list="8*5 10*8 16*10 20*16 20*32 40*32 60*42 96*55 96*110 120*173" ;;
27   "12") list="20*14 20*26 40*26 60*34 80*51 96*85 160*102 240*137" ;;
28    esac
29    ;;
30    48)
31    case ${resolution} in
32   "1")  list="8*6 12*8 24*10 24*16 24*30 30*48 40*66 72*66" ;;
33   "025")list="8*6 12*8 16*12 24*16 24*32 48*32 48*64 96*64 96*134 144*173 144*241" ;;
34   "12") list="16*15 24*22 48*22 48*42 80*51 96*85 160*102 240*137" ;;
35    esac
36    ;;
37esac
38
39for ii in $list
40do
41    grep "( ${ii/\*/ x } ), " best_jpni_jpnj_eorca${resolution}
42    echo "$ii = $ncore_node * $( echo "scale=3 ; $ii/${ncore_node}" | bc ) = $( echo $ii | bc )"
43done
44
45for cores in $list
46do
47    ./submit_bench $cores $ncore_node ${resolution}
48done
49
Note: See TracBrowser for help on using the repository browser.