通过 Numba 在 MCDC 中实现高性能便携式蒙特卡洛中子传输

Joanna Piper Morgan, Ilham Variansyah, Braxton Cuneo, Todd S. Palmer, Kyle E. Niemeyer
{"title":"通过 Numba 在 MCDC 中实现高性能便携式蒙特卡洛中子传输","authors":"Joanna Piper Morgan, Ilham Variansyah, Braxton Cuneo, Todd S. Palmer, Kyle E. Niemeyer","doi":"arxiv-2409.04668","DOIUrl":null,"url":null,"abstract":"Finding a software engineering approach that allows for portability, rapid\ndevelopment, open collaboration, and performance for high performance computing\non GPUs and CPUs is a challenge. We implement a portability scheme using the\nNumba compiler for Python in Monte Carlo / Dynamic Code (MC/DC), a new neutron\ntransport application for rapid Monte Carlo methods development. Using this\nscheme, we have built MC/DC as a single source, single language, single\ncompiler application that can run as a pure Python, compiled CPU, or compiled\nGPU solver. In GPU mode, we use Numba paired with an asynchronous GPU scheduler\ncalled Harmonize to increase GPU performance. We present performance results\nfor a time-dependent problem on both the CPU and GPU and compare them to a\nproduction code.","PeriodicalId":501369,"journal":{"name":"arXiv - PHYS - Computational Physics","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-09-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Performance Portable Monte Carlo Neutron Transport in MCDC via Numba\",\"authors\":\"Joanna Piper Morgan, Ilham Variansyah, Braxton Cuneo, Todd S. Palmer, Kyle E. Niemeyer\",\"doi\":\"arxiv-2409.04668\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Finding a software engineering approach that allows for portability, rapid\\ndevelopment, open collaboration, and performance for high performance computing\\non GPUs and CPUs is a challenge. We implement a portability scheme using the\\nNumba compiler for Python in Monte Carlo / Dynamic Code (MC/DC), a new neutron\\ntransport application for rapid Monte Carlo methods development. Using this\\nscheme, we have built MC/DC as a single source, single language, single\\ncompiler application that can run as a pure Python, compiled CPU, or compiled\\nGPU solver. In GPU mode, we use Numba paired with an asynchronous GPU scheduler\\ncalled Harmonize to increase GPU performance. We present performance results\\nfor a time-dependent problem on both the CPU and GPU and compare them to a\\nproduction code.\",\"PeriodicalId\":501369,\"journal\":{\"name\":\"arXiv - PHYS - Computational Physics\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-09-07\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - PHYS - Computational Physics\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2409.04668\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - PHYS - Computational Physics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.04668","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

为 GPU 和 CPU 上的高性能计算寻找一种可移植性、快速开发、开放协作和性能的软件工程方法是一项挑战。我们在蒙特卡洛/动态代码(MC/DC)中使用Python的Numba编译器实现了一种可移植性方案,MC/DC是一种用于快速蒙特卡洛方法开发的新型中子传输应用程序。利用这一方案,我们将 MC/DC 构建成了一个单源代码、单语言、单编译器的应用程序,可以作为纯 Python、编译 CPU 或编译 GPU 的求解器运行。在 GPU 模式下,我们使用 Numba 搭配称为 Harmonize 的异步 GPU 调度来提高 GPU 性能。我们展示了 CPU 和 GPU 上一个随时间变化的问题的性能结果,并将其与生产代码进行了比较。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Performance Portable Monte Carlo Neutron Transport in MCDC via Numba
Finding a software engineering approach that allows for portability, rapid development, open collaboration, and performance for high performance computing on GPUs and CPUs is a challenge. We implement a portability scheme using the Numba compiler for Python in Monte Carlo / Dynamic Code (MC/DC), a new neutron transport application for rapid Monte Carlo methods development. Using this scheme, we have built MC/DC as a single source, single language, single compiler application that can run as a pure Python, compiled CPU, or compiled GPU solver. In GPU mode, we use Numba paired with an asynchronous GPU scheduler called Harmonize to increase GPU performance. We present performance results for a time-dependent problem on both the CPU and GPU and compare them to a production code.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Designing a minimal Landau theory to stabilize desired quasicrystals Uncovering liquid-substrate fluctuation effects on crystal growth and disordered hyperuniformity of two-dimensional materials Exascale Quantum Mechanical Simulations: Navigating the Shifting Sands of Hardware and Software Influence of dislocations in multilayer graphene stacks: A phase field crystal study AHKASH: a new Hybrid particle-in-cell code for simulations of astrophysical collisionless plasma
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1