introduction to the standard running environment (sre) of the integrating model & data...

18
Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

Upload: gavin-baker

Post on 29-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

Introduction to theStandard Running Environment

(SRE)

of the Integrating Model & Data Infrastructure

Heinrich Widmann, M&D

Page 2: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 2

Outline

Components of the SRE Standard Directory Structure of Experiments Generation of Tasks Running Environment SRE File Systems and DKRZ Computing Facilities Models and Platforms supported by SRE Benefits and Documentation

Page 3: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 3

Experiment flow within IMDI

SVN Repository

Modify source code

Post-

Processing

Compile script

generation

Compi-lation

Config.of the

experiment

Generate

TasksRetrieve source code

Model execution

Post-processing

Visualisation Archiving

SCM SCE SRE

SRE-Tasks

Page 4: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 4

Components of SRE

Standardized directory structure the executables (generated by SCE) the input, output and restart files tools for script generation setup files for the experiment directories to run the experiment

m4 and ksh scripts to generate site and model specific scripts from a common base of header files for model execution post-processing, visualisation and archiving

Computing and archiving facilities

Page 5: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 5

SRE directory structure of ’experiments’

experiments

exp1 exp2 input

bin input outdata restart log scripts work

mod1

mod1

coupler

mod1

mod1

coupler

mod1

mod1

coupler

RUN_cplmod_exp2POST_cplmod_exp2VIS_cplmod_exp2SAVE_cplmod_exp2

IMDIROOT

utilSX

bin running

mod1.x,mod2.xcoupler.x

mod1.x,mod2.xcoupler.x

Page 6: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 6

Generation of Tasks

RUN_cplmod_id - Model integration POST_cplmod_id - Output data postprocessingVIS_cplmod_id - Output data visualisationSAVE_cplmod_id - Archiving

Create_TASKS.frm cplmod ID [node]

setup_cplmod_id

check_setup_cplmod

m4User adaptation Include File

Repository *.h *node.h *model.h *cplmod.h

Tasks

m4

m4

Page 7: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 7

The Running environment

model execution

postprocessing

visualisation

archiving

executables

archiveoutput datarestart files

Create_TASKS.frm cplmod ID

POST_cplmod_ID

SAVE_cplmod_ID

RUN_cplmod_ID

VIS_cplmod_ID

Tasks

archive_ininput datarestart files

Page 8: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 8

Post-processing

DB-Filling

LE-Visualisation

Preprocessing

Start Rerun Stop

www

Archiving

FileArchive

FileArchive

HE-Visualisation

Processing

Independence and interoperability of tasks

Page 9: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 9

The Setup File

setup_cplmod_ID Specification of all

configurable variables of the experiment

Non configurable variables in complete_setup_cplmod.h

config_experiment.hconfig_cplmod.hconfig_timecontrol.hconfig_postprocessing.hconfig_postprocessing_model.hconfig_archive.hconfig_visualisation.hconfig_visualisation_model.hconfig_mpi_node.hconfig_filesystem.hconfig_site_node.hconfig_commands_node.h

complete_setup_cplmod.h

cplmod: coupled modelID: experiment idnode: node namemodel: component model

Page 10: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 10

The Runscript

comments_cplmod.hqueue_commands_node.hsetup_cplmod_IDcomplete_setup_cplmod.hfunctions.hcalendar.hcreate_directories.hget_executables_cplmod.hget_input_data_model.hnamelist_model.hlaunching_cplmod_node.hsave_output_model.hpostprocessing_model.hsubmit_next_jobs.h

for all component models and the

coupler

Definitions

Preprocessing

Execution

PostprocessingJob submission

cplmod: coupled modelnode: node nameID: experiment IDmodel: component model

Page 11: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 11

Runtime Control

0001 03 01 3

next yearnext month next day

next job

Wed Feb 2 10:46:36 MET 2005 : Beginning of Experiment D01bWed Feb 2 10:46:36 MET 2005 : 1 00010101 0:41880.siox3 - startWed Feb 2 11:00:24 MET 2005 : 1 00010131 0:41880.siox3 - doneWed Feb 2 11:02:14 MET 2005 : 2 00010201 0:41909.siox3 - startWed Feb 2 11:14:01 MET 2005 : 2 00010228 0:41909.siox3 - doneWed Feb 2 11:14:01 MET 2005 : Experiment over

real time date job-numbersimulated date

job-id

expid.log

expid.date

Page 12: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 12

File Systems of SRE

The file systems are specified in the setup file.

home: permanent file system for scripts work: temporary working directory, time horizon of a run data: input, output and restart files, executables; capacity for

big data files, time horizon of several runs, fast connection to "work"

archive: model output, long term archive archive_in: initial files, long term archive

Page 13: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 13

SRE within the DKRZ IT environment and data transfer

Compilation

Execution

Postprocessing

Visualisation

Archiving

Compile Server

Compute Server

temporary file system

medium term archive

Postprocessing Host

Visualisation Host

Archiving Host

cross: /pf

hurrikan: /ipf

/tmp, /shr

/shr

ds7: /pf

cross: /pf

Archive (cross): /ut

get executables and input data transfer of output and processed data

Page 14: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 14

Model configurations adapted to the SRE

(Coupled) Model

COSMOS-A

COSMOS-O

COSMOS-AO

COSMOS-AOB

COSMOS-ASOB

CLM

TOYCLIM

Component (sub) models

ECHAM5

MPIOM

ECHAM5 + MPIOM

ECHAM5 + (MPIOM + HAMOCC)

ECHAM5 + JSBACH + (MPIOM+HAMOCC)

CLM (regional stand-alone model)

TOYATM + TOYOCE + TOYCHE

Page 15: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 15

Model requirements

Modularity of IMDI components Usage of SRE without adaption to SCE is possible

(executables must be at the correct place with the correct name)

Adaption to the Standard Compile Environment (Source Code Management)

Flexible source code : Control parameters (e.g. length of the simulation, the number of processors, exchange frequencies in coupled models) should not be hard-coded

Page 16: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 16

Platforms supported by SRE

Currently supported

NEC SX-6

Linux i686

In progress

SunOS

Within the PRISM project

Cray X1

SGI IRIX64

IBM Power4

nodes

cs (hurrikan)

workstations at ZMAW

yang

Page 17: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 17

Benefits Common look-and-feel

for all models for all platforms

Portability and modularity Profit from future developments Support (M&D and OASIS Team) Post-processing and visualisation tools Facilitation of model exchange

within a coupled configuration between institutes

Page 18: Introduction to the Standard Running Environment (SRE) of the Integrating Model & Data Infrastructure Heinrich Widmann, M&D

29 March 2007

DKRZ/M&D Schulung Heinrich Widmann 18

Documentation

SRE Handbook (being updated) SVN: http://svn-mad.zmaw.de /svn/mad/Model/IMDI/tags/’tag’/util/running/docWeb:http://mad.zmaw.de/imdi

bottom of page:

- pdf-version

- html-version