Joanna Piper Morgan, Ilham Variansyah, Braxton Cuneo, Todd S. Palmer, Kyle E. Niemeyer
{"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":"1 1","pages":""},"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}
引用次数: 0
Abstract
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.