TomocuPy: efficient GPU-based tomographic reconstruction with asynchronous data processing
Preprint
Abstract
Fast 3D data analysis and steering of a tomographic experiment by changing environmental conditions or acquisition parameters require fast, close to real-time, 3D reconstruction of large data volumes. Here we present a performance-optimized TomocuPy package as a GPU alternative to the commonly-used CPU-based TomoPy package for tomographic reconstruction. TomocuPy utilizes modern hardware capabilities to organize a 3D asynchronous reconstruction involving parallel read-write operations with storage drives, CPU-GPU data transfers, and GPU computations. In the asynchronous reconstruction, all the operations are timely overlapped to almost fully hide all data management time. Since most cameras work with less than 16-bit digital output, we furthermore optimize the memory usage and processing speed by using 16-bit floating-point arithmetic. As a result, 3D reconstruction with TomocuPy became 20-30 times faster than its multithreaded CPU equivalent. Full reconstruction (including read-write operations and methods initialization) of a 2048x2048x2048 tomographic volume takes less than 7~s on a single Nvidia Tesla A100 and PCIe 4.0 NVMe SSD, and scales almost linearly increasing the data size. To simplify operation at synchrotron beamlines, TomocuPy provides an easy-to-use command-line interface. Efficacy of the package was demonstrated during a tomographic experiment on gas-hydrate formation in porous samples, where a steering option was implemented as a lens-changing mechanism for zooming to regions of interest.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Tomoscopy: Time‐Resolved Tomography for Dynamic Processes in MaterialsAdvanced Materials, 2021
- Dynamic in situ imaging of methane hydrate formation in coal mediaFuel, 2021
- Dynamic in-situ imaging of methane hydrate formation and self-preservation in porous mediaMarine and Petroleum Geology, 2020
- Tomosaic: efficient acquisition and reconstruction of teravoxel tomography data using limited-size synchrotron X-ray beamsJournal of Synchrotron Radiation, 2018
- GigaFRoST: the gigabit fast readout system for tomographyJournal of Synchrotron Radiation, 2017
- 20 Hz X-ray tomography during an in situ tensile testInternational Journal of Fracture, 2016
- The ASTRA Toolbox: A platform for advanced algorithm development in electron tomographyUltramicroscopy, 2015
- In-operando high-speed tomography of lithium-ion batteries during thermal runawayNature Communications, 2015
- TomoPy: a framework for the analysis of synchrotron tomographic dataJournal of Synchrotron Radiation, 2014
- Simultaneous phase and amplitude extraction from a single defocused image of a homogeneous objectJournal of Microscopy, 2002