Answers are grounded in this paper and cite their sources.
Monte Carlo (MC) dose calculations are recognized as being the most accurate modality for radiotherapy treatment planning but, because of the excessive computational time required, they cannot presently be used for near real-time dose calculations. Currently, the most common way to accelerate MC dose calculations is to use clusters of central processing units (CPUs), but some believe that the future of near real-time MC dose calculations lies not with clusters of CPUs but with the use of graphics processing unit (GPU) technology. This is the claim debated in this month's Point/Counterpoint. Clinical applications of MC dose calculations have been limited by the long computation time to achieve a sufficient precision level. Over the years, great efforts have been devoted to accelerating MC simulations. Recently, with the success of GPU-based high-performance computing,1,2 particularly for MC simulations, near real-time (e.g., seconds or subseconds) dose calculation is becoming feasible. Achieving this will not only facilitate its routine utilization, but also realize novel applications to advance radiotherapy practice, such as MC-based inverse treatment planning. To date, the computation time for a typical photon plan has been reduced to less than a minute with ∼1% uncertainty using only one GPU, and the speed can be further boosted with multiple GPUs by a factor proportional to the number of GPUs. Also reported are computation times as low as seconds to tens of seconds for different applications.3,4 Notably, the group at UT Southwestern5 has developed a GPU application to visualize an MC-reconstructed dose delivery process in almost real-time during beam delivery, with a refresh frequency of >10 Hz. These achievements have clearly demonstrated the potential of near real-time MC dose calculations. Besides advantages in speed, GPUs also hold other favorable features for clinical applications. First, GPUs are orders of magnitude lower in cost than a conventional high-performance-computing structure with a similar processing power. Second, GPUs are locally hosted and managed. This is particularly important for problems aiming at near real-time applications, since data-transfer and job-scheduling times cannot be neglected if the computation facility is remotely placed and shared by many users. Patient privacy may also be a concern when transferring medical data to a remote facility. Of course we cannot neglect disadvantages of using GPUs for MC. As a new platform, redevelopment of codes is necessary. However, burdens of initial code development have been overcome to a large extent, and several packages have been successfully built. Efforts have also been initiated to write MC packages in OpenCL to increase portability.6 While there are also technical issues hindering computational efficiency, e.g., thread divergence and memory writing conflicts, many solutions exist to remove or alleviate them.4,7 I would also like to mention a strong competitor of the GPU, the Intel many integrated core (MIC) processor. What makes this particularly attractive is its x86 compatibility, which can run existing CPU codes with minor modification. However, just like for GPUs, substantial effort is needed to achieve optimal performance.8 Simply running an existing code may not achieve high acceleration, because parallel-computing specific issues such as memory access and vectorization were not considered sufficiently in the conventional CPU code. As of today, there has been only limited study regarding MC dose calculations on MIC processors. While it holds the potential to improve efficiency, a lot of research is needed. In conclusion, GPU technology has the capability of substantially accelerating MC simulations. Its advantages and extensive research efforts demonstrate the hope for near real-time dose calculations. Since the invention of computers in the 1940s, MC codes have been developed for nuclear engineering, high-energy physics, and, recently, medical physics applications. However, most radiation treatment planning is done currently using dosimetry algorithms that are extremely fast, but only “approximately” correct.9 Given the lasting interest in accelerating MC methods, the recent hype related to the GPU is not surprising. Originally marketed by NVidia as household devices, GPU-based game consoles offered amazingly fast graphics at an affordable price. It did not take long, however, for the scientific community to realize that these desktop toys were actually parallel computers. As summarized in two review papers,1,2 GPU adopters from the medical physics community wasted no time in reporting overwhelmingly positive experiences, including a dozen studies that focused specifically on MC dosimetry. Impressive, but inconsistent, “speedup factors” ranging from single digits to several hundreds were reported within months, sometimes by the same group. It has become a cliché to highlight how fast an MC-based dose calculation can be done with a GPU. Such results indeed attracted a lot of attention from medical physicists who are notoriously busy and seeking expediency. There are two strong indications that GPU technology is only hype and not the hope for near real-time, fully MC dose calculations. First, we have not seen any convincing evidence that the GPU is indeed better than traditional solutions for running MC dose calculations. Both of the above review papers1,2 enjoyed referencing the rapidly increasing number of GPU-related journal articles—which only reinforces the concept of a “hype cycle.” Furthermore, the authors of the GPU-accelerated MC studies obscure the issue by omitting details on how they compared GPU performance with traditional CPUs. CPU-based clusters are currently so cheap that one can assemble a desk-side 32-core cluster for about $3000US—the cost of a high-end CPU/GPU system. Using software optimization schemes and hyperthreading, such a CPU cluster may achieve a speedup similar to the best reported for GPUs, without the painful process of rewriting the MC code for the GPU/compute unified device architecture (GPU/CUDA) environment. But few of the GPU enthusiasts optimized the CPU code in order to make fair performance comparisons. It has been observed that a lack of “fair comparison” measures is responsible for exaggerated GPU performance.10 Second, competing technologies are mostly ignored by GPU adopters. Intel's Xeon Phi coprocessor, for example, which comes with 60 embedded Pentium cores, is capable of achieving a similar level of parallelism as GPUs.11–13 Adopting the coprocessor is relatively easy and a large number of them are, in fact, used in Tianhe-2—the world's number-1 supercomputer. The “heterogeneous computing” era has just begun and it is uncertain which hardware (and software) technology will dominate the market.14 The excitement brought by the GPU has reignited our interest in achieving real-time MC dose calculations and one should take full advantage of the research opportunities.15 However, an inflated expectation can be counterproductive, especially when investing in a single technology that may be obsolete in ten years. I agree that variations in reported GPU-acceleration factors exist due to different degrees of software/hardware utilization and optimization. However, it is quite difficult, if not impossible, to conduct an absolutely fair comparison. For example, I would like to mention the software aspect that unfairly treats GPUs: Software optimization schemes, such as variance reduction techniques widely employed in CPU-based MC packages, have been barely explored for GPUs. The deterministic nature of such algorithms is expected to be particularly favorable for GPU's single-instruction-multiple-thread structure. Yet it is absolute computational efficiency, rather than performance relative to CPUs, that determines the feasibility of near real-time MC calculations. The fact that a single GPU can already compute dose in seconds strongly supports this feasibility. Practicality should also be considered. While a low-end cluster with 4–8 computers may offer high speed, it is more advantageous in a clinical environment to use GPU-enabled computers in terms of energy efficiency, ease of management, etc. The utilization of GPUs in scientific computing is absolutely more than hype. Among the world's top 500 supercomputers, 46 of them use GPU-based coprocessors compared to only 17 systems with MIC coprocessors. A few major vendors in radiotherapy, e.g., RaySearch and Elekta, already employ GPUs in their products. I agree that multiple options are available to substantially accelerate MC in this era of booming technology. Intel MIC is a great example. Nonetheless, it too may be hype which only emphasizes the ease of programmability based on existing CPU codes but hides the required efforts of performance tuning. There is probably no single technology that is undoubtedly better than others. However, based on the overall consideration of GPU's advantages and developments so far, I believe that GPU technology is the hope for near real-time MC dose calculations. I agree with Dr. Jia that the capability of real-time MC dose calculations is within reach owing largely to the innovative technology and marketing strategies by Nvidia. The greatest roadblock to GPU is the fact that the effort to translate legacy MC codes to the new CUDA programming environment is prohibitively expensive. GPU also faces tough technological challenges, including limited memory and data bandwidth.14 Given the steep investment and market risk, for everyone to jump onto the GPU wagon is costly and unwise. To CPU enthusiasts, multithreading techniques such as OpenMP and Pthreads are readily available for parallel computing. Intel CPUs come with hyperthreading for concurrent execution, and various compiler options can be used for optimization. As a competing architecture, Intel's MIC is much easier to adopt. To avoid “unfair comparison” between GPU and CPU,11 one should consider the above-mentioned software optimization techniques and pick a “multicore” CPU (instead of a “single-core”) at a similar price to the GPU implementation. Comparative studies should also consider software related labor expenses. When we recently compared the performances of ARCHER—an MC dosimetry code developed from scratch by my Ph.D. students11–13—in the CPU, GPU, and MIC platforms, we found that GPU's advantages as a dose engine are less dramatic than some of those reported in the literature. All things considered, traditional CPU clusters and MIC remain serious competitors to GPUs when energy efficiency is not the priority. In the next five years, all these technologies are expected to evolve rapidly. The potential waste of capital and human resources due to hype and misleading information should be avoided. To this end, peer-reviewed journal publication and grant application processes should emphasize balanced GPU studies that offer the best methodologies and practices to the medical physics community.
No takes yet. Share an insight, caveat, or question.
Jia et al. (2015) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: