source:
NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH/EXPREF/sh_bench
@
9846
Last change on this file since 9846 was 9846, checked in by smasson, 6 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[9846] | 1 | #!/bin/bash |
2 | set -u | |
3 | set -xv | |
4 | ||
5 | resolution=$1 | |
6 | machine=$( hostname | sed -e "s/[0-9]*//g" ) | |
7 | ||
8 | case $machine in | |
9 | "beaufix") ncore_nod=40 ;; | |
10 | "curie") ncore_node=16 ;; | |
11 | esac | |
12 | ||
13 | case $ncore_node in | |
14 | 16) | |
15 | case ${resolution} in | |
16 | "1")list1="4*4 8*4 8*8 8*16 24*10 24*22 40*24 72*28 120*30 72*66" ;; | |
17 | "025")list025="4*4 8*4 8*8 16*8 20*12 24*22 32*32 48*42 160*25 56*134 120*134 240*121" ;; | |
18 | "12")list12="16*8 16*16 32*16 40*26 80*26 80*51 114*72 160*102 240*126" ;; | |
19 | esac | |
20 | ;; | |
21 | 40) | |
22 | case ${resolution} in | |
23 | "1")list1="8*5 8*10 16*10 20*16 20*30 40*33 60*42 120*42" ;; | |
24 | "025")list025="8*5 10*8 16*10 20*16 20*32 40*32 60*42 80*67 180*64" ;; | |
25 | "12")list12="40*31 60*42 80*63 160*75" ;; | |
26 | esac | |
27 | ;; | |
28 | esac | |
29 | ||
30 | ||
31 | # ORCA1 | |
32 | if [ ${resolution} == "1" ]; then | |
33 | for cores in $list1 | |
34 | do | |
35 | ./submit_bench $cores $ncore_node ${resolution} | |
36 | done | |
37 | ||
38 | # ORCA025 | |
39 | elif [ ${resolution} == "025" ]; then | |
40 | for cores in $list025 | |
41 | do | |
42 | ./submit_bench $cores $ncore_node ${resolution} | |
43 | done | |
44 | ||
45 | # ORCA12 | |
46 | elif [ ${resolution} == "12" ]; then | |
47 | for cores in $list12 | |
48 | do | |
49 | ./submit_bench $cores $ncore_node ${resolution} | |
50 | done | |
51 | fi |
Note: See TracBrowser
for help on using the repository browser.