ZMCintegral: a Package for Multi-Dimensional Monte Carlo Integration on Multi-GPUs

Hong-Zhong Wu, Jun-Jie Zhang, Long-Gang Pang, Qun Wang
2/21/2019
physics.comp-ph

Official code: Letianwu/ZMCintegral (20 stars, Python, Apache-2.0, last commit 2022-12-08).

Abstract

We have developed a Python package ZMCintegral for multi-dimensional Monte Carlo integration on multiple Graphics Processing Units(GPUs). The package employs a stratified sampling and heuristic tree search algorithm.

Show full abstract

We have built three versions of this package: one with Tensorflow and other two with Numba, and both support general user defined functions with a user-friendly interface. We have demonstrated that Tensorflow and Numba help inexperienced scientific researchers to parallelize their programs on multiple GPUs with little work. The precision and speed of our package is compared with that of VEGAS for two typical integrands, a 6-dimensional oscillating function and a 9-dimensional Gaussian function. The results show that the speed of ZMCintegral is comparable to that of the VEGAS with a given precision. For heavy calculations, the algorithm can be scaled on distributed clusters of GPUs.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

An easy way to use multi-GPUs to calculate multi-dimensional integration

207PythonOct 7, 20183 years agoApache-2.0
monte-carlo-integrationmulti-gpu-devicenumbaray

Similar Papers

Cite this paper

@article{wu2019zmcintegral,
  title  = {ZMCintegral: a Package for Multi-Dimensional Monte Carlo Integration on Multi-GPUs},
  author = {Hong-Zhong Wu and Jun-Jie Zhang and Long-Gang Pang and Qun Wang},
  year   = {2019},
  eprint = {1902.07916},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.07916}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1902.07916.svg)](https://codeofpaper.com/paper/1902.07916)

Discussion