【24h】

A Case Study in High-Performance Mixed-Language Programming

机译:高性能混合语言编程的案例研究

获取原文
获取原文并翻译 | 示例

摘要

Several widely used and promising programming tools and styles for computational science software are reviewed and compared. In particular, we discuss function/subroutine libraries, object-based programming, object-oriented programming, generic (template) programming, and iterators in the context of a specific example involving sparse matrix-vector products. A key issue in the discussion is to hide the storage structure of the sparse matrix in application code. The role of different languages, such as Fortran, C, C++, and Python, is an integral part of the discussion. Finally, we present performance measures of the various designs and implementations. These results show that high-level Python programming, with loops migrated to compiled languages, maintains the performance of traditional implementations, while offering the programmer a more convenient and efficient tool for experimenting with designs and user-friendly interfaces.
机译:对计算科学软件的几种广泛使用且很有前途的编程工具和样式进行了回顾和比较。特别是,在涉及稀疏矩阵向量乘积的特定示例的上下文中,我们讨论了函数/子例程库,基于对象的编程,面向对象的编程,通用(模板)编程和迭代器。讨论中的关键问题是在应用程序代码中隐藏稀疏矩阵的存储结构。不同语言(例如Fortran,C,C ++和Python)的作用是讨论的组成部分。最后,我们介绍了各种设计和实现的性能指标。这些结果表明,将循环迁移到已编译的语言的高级Python编程可保持传统实现的性能,同时为程序员提供了一种更便捷,更有效的工具,用于试验设计和用户友好的界面。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号