跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

天体物理学 > 天体物理仪器与方法

arXiv:1410.4345 (astro-ph)
[提交于 2014年10月16日]

标题:HOPE: A Python Just-In-Time compiler for astrophysical computations

作者:Joel Akeret, Lukas Gamper, Adam Amara, Alexandre Refregier
查看论文《HOPE: A Python Just-In-Time compiler for astrophysical computations》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The Python programming language is becoming increasingly popular for scientific applications due to its simplicity, versatility, and the broad range of its libraries. A drawback of this dynamic language, however, is its low runtime performance which limits its applicability for large simulations and for the analysis of large data sets, as is common in astrophysics and cosmology. While various frameworks have been developed to address this limitation, most focus on covering the complete language set, and either force the user to alter the code or are not able to reach the full speed of an optimised native compiled language. In order to combine the ease of Python and the speed of C++, we developed HOPE, a specialised Python just-in-time (JIT) compiler designed for numerical astrophysical applications. HOPE focuses on a subset of the language and is able to translate Python code into C++ while performing numerical optimisation on mathematical expressions at runtime. To enable the JIT compilation, the user only needs to add a decorator to the function definition. We assess the performance of HOPE by performing a series of benchmarks and compare its execution speed with that of plain Python, C++ and the other existing frameworks. We find that HOPE improves the performance compared to plain Python by a factor of 2 to 120, achieves speeds comparable to that of C++, and often exceeds the speed of the existing solutions. We discuss the differences between HOPE and the other frameworks, as well as future extensions of its capabilities. The fully documented HOPE package is available at http://hope.phys.ethz.ch and is published under the GPLv3 license on PyPI and GitHub.
评论: Accepted for publication in Astronomy and Computing. 14 pages, 1 figure. The code is available at http://hope.phys.ethz.ch
主题: 天体物理仪器与方法 (astro-ph.IM); 数学软件 (cs.MS); 程序设计语言 (cs.PL); 计算物理 (physics.comp-ph)
引用方式: arXiv:1410.4345 [astro-ph.IM]
  (或者 arXiv:1410.4345v1 [astro-ph.IM] 对于此版本)
  https://doi.org/10.48550/arXiv.1410.4345

提交历史

来自:Joel Akeret
[v1] 2014年10月16日 星期四 09:28:18 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

astro-ph.IM
< 上一篇   |   下一篇 >
最新 | 近期 | 2014-10
切换浏览方式为:
astro-ph
cs.MS
cs.PL
physics.comp-ph

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站