Abstract
Benchmarking is key for developing and comparing optimization algorithms. In this paper, a CUDA-based real parameter optimization benchmark (cuROB) is introduced. Test functions of diverse properties are included within cuROB and implemented efficiently with CUDA. Speedup of one order of magnitude can be achieved in comparison with CPU-based benchmark of CEC'14.
Introduction
In the field of mathematical optimization, researchers dedicate significant effort to benchmarking new algorithms against standard test functions. This process is often computationally expensive and time-consuming. As optimization algorithms increasingly leverage GPU architectures to handle massive parallelism, evaluating them on traditional single-threaded CPU benchmarks creates a substantial performance bottleneck.
To address this, we introduce cuROB, a high-performance benchmark suite designed natively for NVIDIA GPUs using CUDA. cuROB provides a rigorous set of test functions that exploit GPU parallelism, allowing for efficient evaluation of optimization performance and scalability.
Methodology
cuROB targets real-parameter, single-objective optimization. The suite incorporates a diverse set of functions categorized into four levels of complexity to test various algorithmic strengths:
- Unimodal Functions: Smooth landscapes with a single optimum (e.g., Rotated Sphere).
- Basic Multi-modal Functions: Landscapes containing numerous local optima (e.g., Rastrigin, Ackley).
- Hybrid Functions: These assign different basic functions to subcomponents of the variables, testing an algorithm's ability to handle heterogeneous properties.
- Composition Functions: Highly complex landscapes formed by merging multiple sub-functions with varying biases and scales.
To ensure the benchmarks are challenging, the authors utilized rotation matrices (generated via Gram-Schmidt orthonormalization) to create non-separable functions and shifting to move optima away from the origin. The suite is heavily based on the CEC’14 benchmark, with 30 identical functions implemented to facilitate direct CPU-GPU performance comparisons. A C-interface wrapper is also provided for easy integration into existing CPU-based codebases.
Implementation Insights
Maximum efficiency on the GPU is achieved by aligning problem dimensions with the hardware architecture. Specifically, dimensions that are multiples of the CUDA "warp size" (32) are preferred. For example, evaluating a 96-dimension problem is more efficient than a 100-dimension one because it aligns perfectly with the hardware.
Furthermore, cuROB supports both single and double precision. While double precision offers higher accuracy, single precision provides significant speed advantages, which is often a desirable trade-off for heuristic optimization tasks. The system also supports concurrent function evaluations via a MAX_CONCURRENCY macro, enabling batch processing of vectors.
Results
Performance testing was conducted using an NVIDIA 560 Ti GPU and an Intel i5-2310 CPU across dimensions $D=10, 32, 64,$ and $96$.
The results demonstrate that cuROB consistently outperforms its CPU counterpart. Key findings include:
- Significant Speedup: On average, cuROB achieved a speedup of one order of magnitude. At $D=96$, speedups reached up to 14.5x for single precision and 13.5x for double precision.
- Scalability: The performance advantage of the GPU becomes increasingly pronounced as the dimensionality of the problem grows.
- Efficiency: Even at low dimensions ($D=10$), the GPU implementation remains faster than the CPU version.
Discussion and Future Work
While cuROB offers substantial performance gains, it is subject to hardware constraints. Dimensionality and concurrency are limited by available GPU memory, requiring careful pre-allocation. Additionally, hybrid functions require a minimum dimension of $D=10$ to be meaningful.
Currently, cuROB focuses on single-objective real-parameter optimization. Future development will aim to expand the suite to include more complex domains, such as constrained and multi-objective optimization.
The source code for cuROB is available at code.google.com/p/curob/.
Summary updated