Table of Contents |
---|
Introduction
Motivations
Complex simulations often combines a number of physics codes, potentially provided by various actors and written in different programming languages. To make them working together, an additional layer, that takes care on 'orchestrates' execution of particular codes, and takes care on passing data between 'producers' and 'consumers' is neededSometimes . Sometimes the functionality of such layer is provided by dedicated software (aka 'workflow orchestrators', like Kepler https://kepler-project.org/), sometimes it can be handled by much simpler mechanism like Python scripts.. Unfortunately all components ('actors') that constitute a computing scenario ('workflow') must be implemented in the same programming language, defining the same API.
Unfortunately, in most cases, scientificScientific, simulation codes that performs computing intensive calculations in most cases calculations (due to performance reasons) are written in C++ or Fortran. , while 'workflow orchestrators' are implemented in (more popular nowadays) languages, like Java, Python, etc. Hence the need for a 'wrapper' that intermediates between native code language and language of the orchestrator. Such wrappers can be developed manually, however users may benefit from a tool that automatise this process - iWrap
iWrap - actor generator
iWrap is a modular component generator, implemented in Python, used for creating IMAS actors from physics models. This mechanism allows to integrate physics codes written in one language (Fortran, CPP) within complex computing scenarios designed in other language (e.g. Python).
It's plug-in based modular design with clear separation of concerns allows to generate various types of actors and easily change data access paradigm (from dataset descriptor for AL to direct HDC data for instance)
For user conveniency it provides two kinds of interfaces: user friendly graphical interface that allows non-experienced users to define an actor in intuitive way and command line interface foreseen for more advanced users that may want to e.g. automatise actor generation process using scripts.
...
Info |
---|
Glossary Scenario (aka workflow)
Actor
Native code
|
Preparation of code
...
A signature of user code must follow strict rules to allow interaction between it and wrapping actor. Please use following >>link<< to to get detailed guidelines for persons integrating their integration of native code into workflows using iWrap
...
wrapping (job description, iWrap)
...