[Paper Review] An Exploration of OpenCL for a Numerical Relativity Application
This paper evaluates OpenCL for high-performance scientific computing by porting a time-domain Teukolsky equation solver—used in numerical relativity—onto diverse CPUs and GPUs. It demonstrates that identical OpenCL code achieves order-of-magnitude performance improvements on modern GPUs over CPUs, with results largely independent of vendor or architecture, and shows a single high-end GPU can match an 80-core CPU cluster.
Currently there is considerable interest in making use of many-core processor architectures, such as Nvidia and AMD graphics processing units (GPUs) for scientific computing. In this work we explore the use of the Open Computing Language (OpenCL) for a typical Numerical Relativity application: a time-domain Teukolsky equation solver (a linear, hyperbolic, partial differential equation solver using finite-differencing). OpenCL is the only vendor-agnostic and multi-platform parallel computing framework that has been adopted by all major processor vendors. Therefore, it allows us to write portable source-code and run it on a wide variety of compute hardware and perform meaningful comparisons. The outcome of our experimentation suggests that it is relatively straightforward to obtain order-of-magnitude gains in overall application performance by making use of many-core GPUs over multi-core CPUs and this fact is largely independent of the specific hardware architecture and vendor. We also observe that a single high-end GPU can match the performance of a small-sized, message-passing based CPU cluster.
Motivation & Objective
- To evaluate OpenCL as a portable, vendor-agnostic framework for scientific computing on heterogeneous hardware.
- To assess performance gains in a real-world numerical relativity application—time-domain finite-difference solution of the Teukolsky equation—using OpenCL.
- To compare performance across multiple CPU and GPU platforms (Intel, IBM, Nvidia, AMD) using identical source code.
- To evaluate the trade-offs in performance, cost, and power efficiency between different hardware platforms.
- To demonstrate that OpenCL enables both high performance and code portability without sacrificing optimization potential.
Proposed method
- Implement a homogeneous, linear, hyperbolic PDE solver using the second-order Lax-Wendroff scheme for time-domain integration.
- Port all compute kernels of the solver into OpenCL kernels to enable execution on CPUs and GPUs.
- Use identical OpenCL source code across all target platforms (Intel Nehalem, IBM Power7, Nvidia Fermi, AMD Radeon) to ensure portability.
- Measure performance in GFLOPS across all platforms using double-precision floating-point arithmetic.
- Evaluate performance-per-dollar and performance-per-watt to compare cost and energy efficiency.
- Use OpenCL runtime to manage kernel compilation, data transfers, and execution scheduling across heterogeneous devices.
Experimental results
Research questions
- RQ1Can OpenCL deliver high performance across diverse CPU and GPU architectures without vendor-specific tuning?
- RQ2To what extent do performance gains from GPU acceleration depend on the underlying hardware or vendor?
- RQ3How does the performance of a single GPU compare to a small multi-node CPU cluster in scientific PDE solvers?
- RQ4What is the trade-off between performance, cost, and power efficiency when selecting hardware for scientific computing?
- RQ5To what extent does code portability via OpenCL reduce development and maintenance overhead in HPC applications?
Key findings
- A single high-end GPU (Nvidia Fermi or AMD Radeon) achieves performance comparable to an 80-core Intel Xeon CPU cluster with high-speed interconnects.
- OpenCL enables identical source code to run efficiently across diverse architectures—including x86 (Intel) and PowerPC (IBM)—with near-identical performance on both CPUs and GPUs.
- Performance improvements of up to an order of magnitude are achieved when using GPUs over CPUs, regardless of vendor or underlying architecture.
- The AMD Radeon GPU delivers comparable performance to the Nvidia Fermi GPU but at over five times lower cost and with slightly better power efficiency, making it the most cost-effective option.
- Performance-per-watt and performance-per-dollar are improved by an order of magnitude on GPUs compared to CPUs.
- The portability of OpenCL enables significant reductions in code development and optimization effort, as the same kernel code runs efficiently on all platforms tested.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.