TL;DR
This report evaluates the "bang for your buck" in accelerating iterative tomography reconstructions, comparing the heavy-duty NVIDIA GPU against the developer-friendly Intel Xeon Phi coprocessor. While GPUs offer the highest raw speed (up to ~20x), the Xeon Phi provides a respectable ~10x speedup with a fraction of the programming effort and a significantly lower hardware cost.
What Problem Does This Paper Address?
Tomographic reconstruction—the process of creating 3D volumes from 2D X-ray or electron microscopy projections—is computationally grueling. While standard algorithms work well with perfect data, real-world scenarios often involve "noisy" images or limited scanning angles. In these cases, iterative reconstruction methods are superior because they use statistical models to "guess" the best volume, but they are notoriously slow, sometimes taking days on standard CPUs.
Researchers usually turn to supercomputer clusters, but these are expensive and have long wait times. This project sought to bring high-performance computing (HPC) to the desktop level by porting these algorithms to specialized hardware (GPUs and Coprocessors) and determining which platform offers the best balance of speed, cost, and ease of use for scientists.
Methods
The team focused on accelerating two statistical iterative algorithms: PML (Penalized Maximum Likelihood) and OS-PML (Ordered Subset PML). They compared two distinct hardware acceleration paths:
- Intel Xeon Phi (Coprocessor): Using Intel Cilk Plus and "offload mode." This approach treats the coprocessor like a many-core CPU. The implementation was "light-weighted," requiring only about 10 lines of additional code to parallelize existing C code.
- NVIDIA GPU: Using CUDA. This required a ground-up rewrite of the algorithm's major steps into "kernels" to manage thousands of tiny threads. This was a "heavy-weighted" migration, resulting in over 2,100 lines of new code.
The goal was to create an open-source toolkit that could be integrated into TomoPy, a widely used Python framework for tomographic data analysis.
Datasets
The performance was benchmarked using the 3D Shepp-Logan phantom, a standard numerical model used in medical imaging and tomography to simulate a human head. They tested two scales:
- Small set: $64^3$ volume resolution with 100 projections ($64 \times 91$).
- Large set: $128^3$ volume resolution with 200 projections ($128 \times 182$).
The researchers intended to use real-world data from the NSLS-II beamlines (FXI and HXN) at Brookhaven National Laboratory, but these facilities were not fully constructed by the end of the project.
Key Insights and Ideas
- The "Ease of Entry" Gap: The most striking insight is the disparity in developer effort. Porting to the Xeon Phi was "almost costless," requiring only a 1.1% increase in code to achieve a 10x speedup. In contrast, the GPU required a 200% increase in code (rewriting the entire logic) to achieve a 20x speedup.
- Parallelization Strategies: The two platforms require different logic. On the Xeon Phi, the researchers parallelized the computation of each 2D "slice" of the volume. On the GPU, because there are so many more cores (2,688 vs. 57), they had to parallelize the internal math within each slice to keep the hardware busy.
- Diminishing Returns on Cost: While the GPU is twice as fast as the Phi, it was roughly ten times more expensive at the time of the study ($2,000 vs. $200).
Key Results
The quantitative results highlight a clear trade-off between raw power and efficiency:
- Speedup (Large Dataset):
- Intel Xeon Phi: 9.42x faster than a standard CPU.
- NVIDIA GPU: 19.56x faster than a standard CPU.
- Economic Efficiency:
- Xeon Phi: ~$20 per unit of speedup.
- GPU: ~$100 per unit of speedup.
- Code Complexity: The GPU implementation required ~2,100 lines of code, whereas the Phi implementation remained almost identical to the original C code.
Limitations and Future Work
The primary limitation was the inability to perform the planned "Case Studies." Because the specific beamlines at the National Synchrotron Light Source II (NSLS-II) were not yet operational, the toolkit could not be validated against hard X-ray fluorescence or full-field limited-angle data in a production environment.
Future work suggested by the authors includes implementing more advanced vectorization (using 512-bit instruction sets) for the Xeon Phi, which could potentially close the performance gap with the GPU without the massive programming overhead of CUDA. Additionally, the toolkit is now available as an open-source resource on GitHub and integrated into the TomoPy ecosystem for the wider research community.
Summary updated