annotate create_config_machines.sh @ 0:7a7ba86e95a4 draft default tip

"planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
author climate
date Tue, 15 Jun 2021 09:39:23 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
1 #!/usr/bin/env bash
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
2
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
3 GALAXY_SLOTS=$1
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
4
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
5 echo "===================================================================="
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
6 echo " Create Config machine for CESM "
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
7 echo " Tool will be running with $GALAXY_SLOTS processors (MPI tasks) "
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
8 echo "===================================================================="
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
9
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
10
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
11 cat > config_machines_galaxy.xml << EOF
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
12 <?xml version="1.0"?>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
13 <config_machines>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
14 <machine MACH="galaxy">
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
15 <DESC>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
16 VM
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
17 x4 CPUs
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
18 Gold Centos 7
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
19 </DESC>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
20 <NODENAME_REGEX>UNSET</NODENAME_REGEX>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
21 <OS>LINUX</OS>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
22 <PROXY>UNSET</PROXY>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
23 <COMPILERS>gnu</COMPILERS>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
24 <MPILIBS>mpich</MPILIBS>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
25 <SAVE_TIMING_DIR>UNSET</SAVE_TIMING_DIR>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
26 <CIME_OUTPUT_ROOT>\$ENV{HOME}/work</CIME_OUTPUT_ROOT>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
27 <DIN_LOC_ROOT>\$ENV{HOME}/inputdata</DIN_LOC_ROOT>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
28 <DIN_LOC_ROOT_CLMFORC>\$ENV{HOME}/inputdata/atm/datm7</DIN_LOC_ROOT_CLMFORC>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
29 <DOUT_S_ROOT>\$ENV{HOME}/archive/\$CASE</DOUT_S_ROOT>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
30 <BASELINE_ROOT>UNSET</BASELINE_ROOT>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
31 <CCSM_CPRNC>UNSET</CCSM_CPRNC>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
32 <GMAKE>make</GMAKE>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
33 <GMAKE_J>$GALAXY_SLOTS</GMAKE_J>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
34 <BATCH_SYSTEM>none</BATCH_SYSTEM>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
35 <SUPPORTED_BY>nobody</SUPPORTED_BY>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
36 <MAX_TASKS_PER_NODE>$GALAXY_SLOTS</MAX_TASKS_PER_NODE>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
37 <MAX_MPITASKS_PER_NODE>$GALAXY_SLOTS</MAX_MPITASKS_PER_NODE>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
38 <PROJECT_REQUIRED>FALSE</PROJECT_REQUIRED>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
39 <mpirun mpilib="default">
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
40 <executable>mpiexec</executable>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
41 <arguments>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
42 <arg name="anum_tasks"> -np \$TOTALPES</arg>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
43 </arguments>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
44 </mpirun>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
45 <module_system type="none"/>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
46 <environment_variables>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
47 <env name="KMP_STACKSIZE">64M</env>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
48 </environment_variables>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
49 <resource_limits>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
50 <resource name="RLIMIT_STACK">-1</resource>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
51 </resource_limits>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
52 </machine>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
53 </config_machines>
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
54 EOF
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
55
7a7ba86e95a4 "planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
climate
parents:
diff changeset
56 echo "Configuration machine created."