Babel F2003 Wrap-up Stefan Muszala*, Tom Epperly(LLNL), Nanbor Wang* Funded by DOE (TASCS) Grant No DE-FC02-07ER25805, DOE Grant No DE-FG02-04ER84099 and.

Slides:



Advertisements
Similar presentations
Semantic Analysis Chapter 6. Two Flavors  Static (done during compile time) –C –Ada  Dynamic (done during run time) –LISP –Smalltalk  Optimization.
Advertisements

PyECLOUD G. Iadarola, G. Rumolo Thanks to: F. Zimmermann, G. Arduini, H. Bartosik, C. Bhat, O. Dominguez, M. Driss Mensi, E. Metral, M. Taborelli.
UPPAAL Andreas Hadiyono Arrummaisha Adrifina Harya Iswara Aditya Wibowo Juwita Utami Putri.
AS 4002 Star Formation & Plasma Astrophysics BACKGROUND: Maxwell’s Equations (mks) H (the magnetic field) and D (the electric displacement) to eliminate.
Abstract Data Types Data abstraction, or abstract data types, is a programming methodology where one defines not only the data structure to be used, but.
Physics of fusion power Lecture 6: Conserved quantities / Mirror device / tokamak.
Tammy Dahlgren, Tom Epperly, Scott Kohn, and Gary Kumfert Center for Applied Scientific Computing Common Component Architecture Working Group October 3,
Creating and Linking Components in ESMF and CCA Eric Hutton Cyberinformatics and numerics working group February 2008.
ECLOUD Calculations of Coherent Tune Shifts for the April 2007 and January 2009 Measurements - Preparation for PAC2009 FR5RF Paper and Poster - “Effects.
Department of Computer Science University of Maryland, College Park
Recent Numerical Advances for Beam-Driven HEDP Experiments S.A. Veitzer, P.H. Stoltz, J.R. Cary Tech-X Corporation J.J. Barnard Lawrence Livermore National.
1 CMSC 132: Object-Oriented Programming II Nelson Padua-Perez William Pugh Department of Computer Science University of Maryland, College Park.
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 5 Types Types are the leaven of computer programming;
Data Types.
Chapter 6.6, (event-driven simulation) Queues 1CSCI 3333 Data Structures.
An Automated Component-Based Performance Experiment and Modeling Environment Van Bui, Boyana Norris, Lois Curfman McInnes, and Li Li Argonne National Laboratory,
Center for Component Technology for Terascale Simulation Software 122 June 2002Workshop on Performance Optimization via High Level Languages and Libraries.
CCA Forum Fall Meeting October CCA Common Component Architecture Update on TASCS Component Technology Initiatives CCA Fall Meeting October.
High-Performance Component- Based Scientific Software Engineering Boyana Norris Argonne National Laboratory CSDMS Meeting:
Gary Kumfert with Bill Bosl, Tammy Dahlgren, Tom Epperly, Scott Kohn, & Steve Smith Achieving Language Interoperability with.
CCA Forum Autumn Meeting15 October 2006 CCA Common Component Architecture Component Technology Initiatives How can we exploit the component environment.
SciDAC Accelerator Simulation project: FNAL Booster modeling, status and plans Robert D. Ryne, P. Spentzouris.
CcaEcloud Phase I Wrap-up Phase I Doe SBIR Stefan Muszala, PI DOE Grant No DE-FG02-08ER85152 Tech-X Corporation Boulder, CO Updates: onRamp, FACETS+Babel,
CCA Common Component Architecture CCA Forum Tutorial Working Group Welcome to the Common.
CCA Common Component Architecture CCA Forum Tutorial Working Group Contributors: Language Interoperability Using Gary.
CCA Common Component Architecture CCA Forum Tutorial Working Group Welcome to the Common.
Tammy Dahlgren with Tom Epperly, Scott Kohn, and Gary Kumfert Center for Applied Scientific Computing Common Component Architecture Working Group October.
PyDebug: A New Application for Integrated Debugging of Python with C and Fortran Extensions Peter Stoltz Tech-X Corporation O'Reilly.
Tech-X Corporation for CCA Overview Tech-X Corporation is an entrepreneurial and dynamic enterprise committed to scientific and technical excellence and.
Plans and Opportunities Involving Beam Dynamics Components ComPASS SAP Project and Phase I and II Doe SBIR Boyana Norris (ANL) In collaboration with Stefan.
Checking Equality of Reference Variables. Arrays and objects are both “reference” types n They are allocated a chunk of memory in the address space n.
Components for Beam Dynamics Douglas R. Dechow, Tech-X Lois Curfman McInnes, ANL Boyana Norris, ANL With thanks to the Common Component Architecture (CCA)
Building an Electron Cloud Simulation using Bocca, Synergia2, TxPhysics and Tau Performance Tools Phase I Doe SBIR Stefan Muszala, PI DOE Grant No DE-FG02-08ER85152.
SAP Participants: Douglas Dechow, Tech-X Corporation Lois Curfman McInnes, Boyana Norris, ANL Physics Collaborators: James Amundson, Panagiotis Spentzouris,
Center for Component Technology for Terascale Simulation Software CCA is about: Enhancing Programmer Productivity without sacrificing performance. Supporting.
11 Adding Tomato Targets Session Session Overview  We now have a game which lets a player bounce a piece of cheese on a bread bat  Now we have.
Presented by An Overview of the Common Component Architecture (CCA) The CCA Forum and the Center for Technology for Advanced Scientific Component Software.
1 SciDAC TOPS PETSc Work SciDAC TOPS Developers Satish Balay Chris Buschelman Matt Knepley Barry Smith.
CCA Components for Accelerator Physics ComPASS SAP Project and Phase II Doe SBIR Stefan Muszala, Tech-X Corp, Boulder, CO In collaboration with Jim Amundson.
Scott Kohn with Tammy Dahlgren, Tom Epperly, and Gary Kumfert Center for Applied Scientific Computing Lawrence Livermore National Laboratory October 2,
CCA Common Component Architecture CCA Forum Tutorial Working Group Welcome to the Common Component Architecture Tutorial.
Update on CORBA Support for Babel RMI Nanbor Wang and Roopa Pundaleeka Tech-X Corporation Boulder, CO Funded by DOE OASCR SBIR.
Introduction to Generics
 Advanced Accelerator Simulation Panagiotis Spentzouris Fermilab Computing Division (member of the SciDAC AST project)
Integrating Large-Scale Distributed and Parallel High Performance Computing (DPHPC) Applications Using a Component-based Architecture Nanbor Wang 1, Fang.
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
S.A. Veitzer H IGH -P ERFORMANCE M ODELING OF E LECTRON C LOUD E FFECT AND RF D IAGNOSTICS SIMULATIONS EMPOWERING YOUR INNOVATIONS 1 MEIC Collaboration.
Brief Update: BABEL Struct Support for Fortran and raw-arrays Stefan Muszala Svetlana G. Shasharina, John Cary, Nanbor Wang, Rooparani Pundaleeka, Scott.
CCA Common Component Architecture CCA Forum Tutorial Working Group CCA Status and Plans.
Babel F2003 Struct Support Update and FACETS integration Funded by DOE (TASCS) Grant No DE-FC02-07ER25805, DOE Grant No DE-FG02-04ER84099 and Tech-X Stefan.
Distributed Components for Integrating Large- Scale High Performance Computing Applications Nanbor Wang, Roopa Pundaleeka and Johan Carlsson
Grid and Component Technologies in Physics Applications Svetlana Shasharina Nanbor Wang, Stefan Muszala and Roopa Pundaleeka. Tech-X Corporation.
Distributed Components for Integrating Large-Scale High Performance Computing Applications – A Project Summary Nanbor Wang Tech-X Corporation.
1 Introduction to C++ Noppadon Kamolvilassatian Department of Computer Engineering Prince of Songkla University.
Accelerator Simulation in the Computing Division Panagiotis Spentzouris.
Midwest Accelerator Physics Meeting. Indiana University, March 15-19, ORBIT Electron Cloud Model Andrei Shishlo, Yoichi Sato, Slava Danilov, Jeff.
Accelerator Simulation in the Computing Division Panagiotis Spentzouris.
Enum,Structure and Nullable Types Ashima Wadhwa. Enumerations, Enumerations, or enums, are used to group named constants similar to how they are used.
Toward a Distributed and Parallel High Performance Computing Environment Johan Carlsson and Nanbor Wang Tech-X Corporation Boulder,
Center for Component Technology for Terascale Simulation Software (CCTTSS) 110 April 2002CCA Forum, Townsend, TN This work has been sponsored by the Mathematics,
Tech-X Corporation Status of the next generation of Synergia Interface and Refactoring Douglas R. Dechow.
 Accelerator Simulation P. Spentzouris Accelerator activity coordination meeting 03 Aug '04.
Electron Cloud Modeling for the Main Injector Seth A. Veitzer 1 Paul L. G. Lebrun 2, J. Amundson 2, J. R. Cary 1, P. H. Stoltz 1 and P. Spentzouris 2 1.
FACETS – A Multiphysics Parallel Component Framework Svetlana Shasharina*, John Cary*, Ammar Hakim*, Gregory Werner**, Scott Kruger*, Alexander Pletzer*
Peter Stoltz Tech-X Corp. collaborators: J. Cary, P. Messmer (Tech-X)
Electron Cloud Meeting
Subprograms and Programmer Defined Data Type
Intro to Chemistry I. Atoms A. Smallest whole particle of matter
Intro to Chemistry I. Atoms A. Smallest whole particle of matter
Type & Typeclass Syntax in function
Presentation transcript:

Babel F2003 Wrap-up Stefan Muszala*, Tom Epperly(LLNL), Nanbor Wang* Funded by DOE (TASCS) Grant No DE-FC02-07ER25805, DOE Grant No DE-FG02-04ER84099 and Tech-X FACETS+Babel Update Stefan Muszala*, Scott Kruger*, Srinath Vadlamani* Funded by DOE (TASCS) Grant No DE-FC02-07ER25805 and Tech-X CCA Ecloud Intro Stefan Muszala*, Jim Amundson (FNAL), Paul Lebrun (FNAL), Lois Curfman McInnes (ANL) Boyana Norris (ANL), Peter Stoltz* DOE Grant No DE-FG02-08ER85152 * Tech-X

Babel now has a functioning Fortran 2003 Binding that supports Structured Data Types. C C++ F77 F90 Python Java F03

Babel F2003 functionality supports the following SIDL struct definitions. enum Color { red, blue, green } struct Empty { bool d_bool; } struct Simple { bool d_bool; char d_char; dcomplex d_dcomplex; double d_double; fcomplex d_fcomplex; float d_float; int d_int; long d_long; opaque d_opaque; Color d_enum; } struct Hard { array d_array; } struct HardRarray { int d_int; rarray d_rarrayRaw(d_int); rarray d_rarrayFix(3); } struct Combined { Simple d_simple; Hard d_hard; } struct CombRarray { Simple d_simple; HardRarray d_hardRarray; }

Babel F2003 functionality supports the following SIDL function declarations. Type = {Empty,Simple,Hard,Combined} return (); bool passin (in s); bool passout (out s); bool passinout (inout s); passeverywhere (in s1, out s2, inout s3); TypeR = {HardRarray,CombRarray} bool passin (in s); bool passinout (inout s); bool passeverywhere (in s1, inout s2);

The Babel F2003 binding generates true Fortran functions for scalar types (bool,int,long,float,double,fcomplex,dcomplex) function s_StructTest_passinEmpty_mi(self, s, exception) … logical :: s_StructTest_passinEmpty_mi ! out … s_StructTest_passinEmpty_mi=.true. … end function s_StructTest_passinEmpty_mi complex (kind=sidl_dcomplex) :: func_checkReturn_retDcomplex_mi ! Out … ! DO-NOT-DELETE splicer.begin(func.checkReturn.retDcomplex) DcomplexVar=DcomplexVar*2.0 DcomplexVar=conjg(DcomplexVar) func_checkReturn_retDcomplex_mi=DcomplexVar

Tying up loose ends for the F03 Binding (Outstanding issues) Some regression tests breaking or failing on non-Tech-X build systems. –Failing on Jaguar runC2C runCxx2C –Broken on LLNL build box runCxx2C runCxx2Cxx Adding Tech-X build to Gantlet results. –This is on hold until our new build system is online.

Babel F2003 Wrap-up Stefan Muszala*, Tom Epperly(LLNL), Nanbor Wang* Funded by DOE (TASCS) Grant No DE-FC02-07ER25805, DOE Grant No DE-FG02-04ER84099 and Tech-X FACETS+Babel Update Funded by DOE (TASCS) Grant No DE-FC02-07ER25805 and Tech-X CCA Ecloud Intro Stefan Muszala*, Jim Amundson (FNAL), Paul Lebrun (FNAL), Lois Curfman McInnes (ANL) Boyana Norris (ANL), Peter Stoltz* DOE Grant No DE-FG02-08ER85152 * Tech-X Stefan Muszala*, Scott Kruger*, Srinath Vadlamani*

FACETS-Integrated Fusion simulation (core, edge and wall). Tokamak: Produce Fusion Energy FACETS: Fusion Simulation, Wall to Core

Babel is being used to integrate legacy Fortran codes into FACETS. One of the driving forces for the F2003 Babel binding is the integration of legacy codes into the FACETS* project! FACETS is a C++ framework that will call FORTRAN77, Fortran90/95, Fortran 2003, Python and C codes. * FACETS-( Framework Application for Core-Edge Transport Simulations ) is a SCIDAC project led by Tech-X which aims to integrate core, edge and wall fusion simulations.

The current approach to C++/Fortran structured data type interoperability relies on pre-F2003 features.

The Babel approach begins with a SIDL definition of existing Fortran derived types TYPE :: MmmFlags INTEGER :: nroot INTEGER :: npoints INTEGER :: nprout INTEGER :: lprint INTEGER :: lsuper INTEGER :: lreset INTEGER :: nerr INTEGER :: lswitch(8) REAL(kind=r8) :: cswitch(25) REAL(kind=r8) :: fig(4) REAL(kind=r8) :: frb(4) REAL(kind=r8) :: fkb(4) INTEGER :: UnitNum END TYPE MmmFlags struct MmmFlags { int nroot; int npoints; int nprout; int lprint; int lsuper; int lreset; int nerr; int lswitch(8); rarray cswitch(25); rarray fig(4); rarray frb(4); rarray fkb(4); int UnitNum; }

The FACETS+Babel implementation simplifies the code structure and provides common interfaces.

Recent work has involved refactoring FACETS Interfaces for increased usability ={Transport Type} = {Anomalous,Neoclassical,Gyrokinetic} – = {GLF23,MMM95,TGLF*} – ={NCLASS*,Kapisn*} – ={Gyro*} Separating Fortran derived types into smaller units based on different transport types. Calling structure basically remains the same as before. * currently under development

Babel F2003 Wrap-up Stefan Muszala*, Tom Epperly(LLNL), Nanbor Wang* Funded by DOE (TASCS) Grant No DE-FC02-07ER25805, DOE Grant No DE-FG02-04ER84099 and Tech-X FACETS+Babel Update Funded by DOE (TASCS) Grant No DE-FC02-07ER25805 and Tech-X CCA Ecloud Intro Stefan Muszala*, Jim Amundson (FNAL), Paul Lebrun (FNAL), Lois Curfman McInnes (ANL) Boyana Norris (ANL), Peter Stoltz* DOE Grant No DE-FG02-08ER85152 * Tech-X Stefan Muszala*, Scott Kruger*, Srinath Vadlamani*

CCA Ecloud is a new Tech-X project that models the Electron Cloud Effect (ECE) using CCA components. Electrons bouncing off of beam walls causes the wall to emit more electrons through secondary emission and eventually build into a cloud. The ECE is important to particle accelerator simulations since the cloud causes the proton beam to degrade.

The CCA Ecloud applications are Synergia2 and POSINST/TxPhysics 1) Electron Cloud Generation i. Number of secondary electrons produced in each impact. ii. Energy spectrum of those electrons. 2) Beam Dynamics (calculates x,y,z,v of simulated particles) 2 1 1

Prior Tech-X SBIR work with Synergia involved adding functionality: 1)Python-based steering interface for Synergia operation. 2) Adding the functionality to merge diagnostics with steering. 3) Using items 1 and 2 to model an accelerator.

Current work with Synergia involves modifying Synergia and TASCS collaboration. 1)Jim Amundson is refactoring the Synergia code base and providing a newly componentized model. 2)TASCS-COMPASS collaboration for providing 1) “high-performance components for accelerator modeling, with initial emphasis on particle tracking, beam optics, and solvers for space charge models.” 2) “selection and parameterization of accelerator components for CQoS work”