当前位置: X-MOL 学术Comput. Sci. Eng. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Automated Fortran-C++ Bindings for Large-Scale Scientific Applications
Computing in Science & Engineering ( IF 2.1 ) Pub Date : 2020-09-01 , DOI: 10.1109/mcse.2019.2924204
Seth R. Johnson 1 , Andrey Prokopenko 1 , Katherine J. Evans 1
Affiliation  

Although many active scientific codes use modern Fortran, most contemporary scientific software libraries are implemented in C and C++. Providing their numerical, algorithmic, or data management features to Fortran codes requires writing and maintaining substantial amounts of glue code. This paper introduces a tool that automatically generates native Fortran 2003 interfaces to C and C++ libraries. The tool supports C++ features that have no direct Fortran analog, such as templated functions and exceptions. A set of simple examples demonstrates the utility and scope of the tool, and timing measurements with a mock numerical library illustrate the minimal performance impact of the generated wrapper code.

中文翻译:

用于大规模科学应用的自动 Fortran-C++ 绑定

尽管许多活跃的科学代码使用现代 Fortran,但大多数现代科学软件库都是用 C 和 C++ 实现的。为 Fortran 代码提供数值、算法或数据管理功能需要编写和维护大量的胶水代码。本文介绍了一种工具,该工具可自动生成 C 和 C++ 库的原生 Fortran 2003 接口。该工具支持没有直接 Fortran 模拟的 C++ 功能,例如模板化函数和异常。一组简单的示例展示了该工具的实用性和范围,并且使用模拟数值库进行计时测量说明了生成的包装器代码对性能的最小影响。
更新日期:2020-09-01
down
wechat
bug