# Development of a Library for Conducting Monte Carlo Tallies on Heterogeneous Systems

## Abstract

A library is introduced that enables users to conduct Monte Carlo tallies on heterogeneous computing systems. The library can be built with or linked to a Monte Carlo transport code to provide tally capabilities for the project. The library provides a set of tools and an interface for constructing tallies that can be computed on CPUs or GPUs regardless of where the sample data was generated. The library can be incorporated into existing Monte Carlo transport codes at both the research and production level with minimal intrusion into the transport code. The tally library is capable of computing a variety of tallies including track-length histogram (mesh) tallies, collisionbased kernel density estimators, functional expansion tallies, eigenvalue sensitivity coefficients via iterated fission probability, and sensitivities of reaction rates or adjoint-weighted quantities via differential operator sampling. The parallelization methods are discussed and speedups are shown for 2-D and 3-D problems with comparisons to both the tally library CPU implementations as well as the tally capabilities in the host transport code. Performance results and examples are shown for MCNP, MCATK, and OpenMC.

- Authors:

- Los Alamos National Lab. (LANL), Los Alamos, NM (United States)

- Publication Date:

- Research Org.:
- Los Alamos National Lab. (LANL), Los Alamos, NM (United States)

- Sponsoring Org.:
- USDOE National Nuclear Security Administration (NNSA)

- OSTI Identifier:
- 1467298

- Report Number(s):
- LA-UR-18-27987

- DOE Contract Number:
- AC52-06NA25396

- Resource Type:
- Technical Report

- Country of Publication:
- United States

- Language:
- English

- Subject:
- 97 MATHEMATICS AND COMPUTING; Monte Carlo, Tallies, GPU, Heterogeneous Computing

### Citation Formats

```
Burke, Timothy Patrick.
```*Development of a Library for Conducting Monte Carlo Tallies on Heterogeneous Systems*. United States: N. p., 2018.
Web. doi:10.2172/1467298.

```
Burke, Timothy Patrick.
```*Development of a Library for Conducting Monte Carlo Tallies on Heterogeneous Systems*. United States. doi:10.2172/1467298.

```
Burke, Timothy Patrick. Tue .
"Development of a Library for Conducting Monte Carlo Tallies on Heterogeneous Systems". United States. doi:10.2172/1467298. https://www.osti.gov/servlets/purl/1467298.
```

```
@article{osti_1467298,
```

title = {Development of a Library for Conducting Monte Carlo Tallies on Heterogeneous Systems},

author = {Burke, Timothy Patrick},

abstractNote = {A library is introduced that enables users to conduct Monte Carlo tallies on heterogeneous computing systems. The library can be built with or linked to a Monte Carlo transport code to provide tally capabilities for the project. The library provides a set of tools and an interface for constructing tallies that can be computed on CPUs or GPUs regardless of where the sample data was generated. The library can be incorporated into existing Monte Carlo transport codes at both the research and production level with minimal intrusion into the transport code. The tally library is capable of computing a variety of tallies including track-length histogram (mesh) tallies, collisionbased kernel density estimators, functional expansion tallies, eigenvalue sensitivity coefficients via iterated fission probability, and sensitivities of reaction rates or adjoint-weighted quantities via differential operator sampling. The parallelization methods are discussed and speedups are shown for 2-D and 3-D problems with comparisons to both the tally library CPU implementations as well as the tally capabilities in the host transport code. Performance results and examples are shown for MCNP, MCATK, and OpenMC.},

doi = {10.2172/1467298},

journal = {},

number = ,

volume = ,

place = {United States},

year = {2018},

month = {8}

}