components and concurrency in esmf nancy collins [email protected] [email protected] 2005 community...

16
Components and Concurrency in ESMF Nancy Collins [email protected] 2005 Community Meeting July 21, 2005 http://www.esmf. ucar. edu GMAO Seasonal Forecast NCAR/LANL CCSM NCEP Forecast GFDL FMS Suite MITgcm NASA GSFC GSI

Upload: mark-johnston

Post on 26-Dec-2015

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal

Components and Concurrency in ESMF

Nancy Collins [email protected] 2005 Community Meeting

July 21, 2005

http://www.esmf.ucar.edu

GMAO Seasonal Forecast

NCAR/LANL CCSM NCEP ForecastGFDL FMS Suite

MITgcmNASA GSFC GSI

Page 2: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal

Current Status

• Starting with ESMF release 2.1.0 ESMF Components can be executed concurrently as well as serially.

• Child components can be created on a subset of the parent component’s PETs (new petList argument to the ESMF_ComponentCreate() call)

• The main loop looks very much the same, but a new Blocking flag can be set to return immediately on all PETs which do not run the component. They can then start another component.

• Ensemble runs are now supported as well.

Page 3: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal

Sequential vs Concurrent

Page 4: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal

ESMF_StateReconcile()

• New ESMF_State call • ESMF Communications are all computed in parallel by each PET. • Each PET computes independently what data needs to be sent and

to who, and what data will be received and from whom.• The reconcile process ensures all PETs have the global grid

information for all data items, even those without local data. • Then they can compute who they will be receiving data from, or to

whom they need to send data.

Page 5: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal

Creating Ensembles

Multiple Components running the same module code. Each can compute with a different set of input parameters.

Page 6: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal

Ensembles seem:

But they are:

Page 7: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal

Get/SetInternalState

Each component derived type maintains a private pointer to an allocated user data block. Think shared vs private variables in OpenMP, for example.

Page 8: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal

Futures: Threading

Threads allow a single processor to have more than one stream of execution.

Threading is enabled in the Child component at SetServices time by making a VM Set call.

Page 9: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal
Page 10: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal
Page 11: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal
Page 12: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal
Page 13: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal
Page 14: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal
Page 15: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal
Page 16: Components and Concurrency in ESMF Nancy Collins nancy@ucar.edu nancy@ucar.edu 2005 Community Meeting July 21, 2005  GMAO Seasonal