Advanced Experimental Mechanics
Online ISSN : 2424-175X
Print ISSN : 2189-4752
ISSN-L : 2189-4752
Technical Note
In-Line Digital Holographic Reconstruction by Using GPU Programming with Python
Dai NAKAIYohsuke TANAKA
著者情報
ジャーナル フリー

2022 年 7 巻 p. 169-173

詳細
抄録

The computation of holographic reconstruction in digital holography has been accelerated by graphics processing units (GPUs). CUDA is an extension of the C/C++ language for GPU programming and is widely used for its performance and accessibility. However, CUDA is difficult to implement for beginners due to its memory management, hardware execution unit declarations, and kernel definitions. In this study, we used CuPy, a GPU computation library for Python, to reimplement the holographic reconstruction algorithm in Python and to compare it with the CUDA implementation. The Python implementation was only 70 lines, less than a third of the CUDA implementation. In addition, holographic reconstruction on a GPU in Python was approximately 20 times faster than a CPU implemented in C++, but approximately 2.5 times slower than the execution on the GPU implemented in CUDA. Our results demonstrate the usefulness of Python with CuPy for implementing and executing image measurement processes on GPUs.

著者関連情報
© 2022 The Japanese Society of Experimental Mechanics
前の記事
feedback
Top