arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1904.02546cs.SE
收藏

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

Automated Fortran--C++ Bindings for Large-Scale Scientific Applications

Seth R. Johnson, Andrey Prokopenko, Katherine J. Evans

摘要:

虽然许多活跃的科学代码使用现代Fortran,但大多数当代科学软件“库”都是用C和C++实现的。为Fortran代码提供数值、算法或数据管理功能需要编写和维护大量的粘合代码。本文介绍了一个自动生成C和C++库的本机Fortran 2003接口的工具。该工具支持没有直接Fortran模拟的C++功能,例如模板函数和异常。一组简单的示例演示了该工具的实用性和范围,使用模拟数值库进行的时间测量说明了生成的包装器代码对性能的影响最小。

英文摘要:

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 article 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 demonstrate 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑