The MPI/HDF code framework and task management system
C Python Shell Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


The Mechanic is a task management system and a host software framework developed to help in conducting massive numerical simulations. It provides powerful and flexible user API with unified data storage and management. It relies on the core-module approach, which allows to separate numerical problem from the common programming tasks, such as setup, storage, task management, splitting the workload, checkpointing etc. From this point of view it allows the user to focus on the numerical part of the scientific problem only, without digging into MPI or advanced data storage. Since the user API is written in C, it allows to easily adapt any code developed with a C-interoperable programming language, such as C++, Fortran2003+, OpenCL or CUDA.

The core code is based on the MPI Task Farm model and the HDF5 data storage specification. It may be installed system-wide and become a helper tool for users, who need to perform a large number of serial computations. The code has been tested on large CPU-clusters, as well as desktop computers and works equally well (the Linux and Mac OS X operating systems are actively maintained).

Mechanic is BSD-licensed. The source code package comes with few example modules and is freely available at the project page.

If you are going to use this code, or its parts, please consider referring to the Authors by the following paper:

Slonina M., Gozdziewski K., Migaszewski C., "Mechanic: the MPI/HDF code framework for dynamical astronomy", New Astronomy, 2015, Vol. 34, pp.98-107, DOI: 10.1016/j.newast.2014.05.006

This project was supported by the following grants:

  • Polish Ministry of Science and Higher Education through the grant N/N203/402739
  • The POWIEW project of the European Regional Development Fund in Innovative Economy Programme POIG.02.03.00-00-018/08