Introduction
Numerical Constraint Satisfaction Problems (NCSPs) are essential for modeling real-world systems in economics, robotics, and physics where variables are continuous rather than discrete. Solving these problems involves finding sets of real numbers that satisfy a system of equations and inequalities. The standard approach utilizes a "branch and prune" algorithm based on interval analysis. This method recursively partitions the search space into "boxes" (vectors of intervals), pruning regions that cannot contain a solution and branching into smaller sub-regions to continue the search.
The Challenge of Load Imbalance
The fundamental difficulty in parallelizing NCSP solvers is the highly irregular nature of the search trees. A single branch might be pruned in milliseconds, while another might contain a massive subtree requiring hours of computation. Traditional parallel methods often rely on a central master to distribute work, which quickly becomes a communication bottleneck as the number of processors increases. Without effective workload management, many processors remain idle while others are overwhelmed, leading to poor scalability.
Decentralized Global Load Balancing
To address these challenges, the authors developed a parallel solver that integrates the sequential C++ solver Realpaver with the X10 programming language's high-level parallel coordination. The core of the system is the Global Load Balancing (GLB) library, which employs a decentralized two-phase strategy:
- Random Work Stealing: When a worker processor exhausts its local tasks, it randomly targets another worker to "steal" a portion of its search tree.
- Lifeline Graph: To ensure termination and handle cases where random stealing fails, workers are organized in a hyper-cube-shaped lifeline graph. This structure allows workers to request work from specific neighbors or signal completion without a central coordinator.
This architecture minimizes communication overhead and allows the system to scale to hundreds of cores efficiently.
Experimental Evaluation and Results
The solver was benchmarked against several classic NCSP problems, including economic models (eco8, eco10), robotics kinematics (3rpr), and geometric intersections (sp2-2, sp2-4). These problems vary significantly in dimensionality and search tree complexity.
As shown in the performance data, the solver achieves remarkable scalability. On the TSUBAME2.5 supercomputer, the system attained a 516-fold speedup using 600 cores for the eco10 problem. This corresponds to an efficiency of 0.84, a significant improvement over previous state-of-the-art solvers that typically plateaued at 64 or 256 cores.
Key Insights
- The Pruning Bottleneck: The
Pruneoperation is the most computationally intensive part of the algorithm, averaging approximately 1ms per call. The authors found that frequent load balancing (every 1ms) was necessary to maintain high core utilization, despite the increased communication frequency. - Hybrid Stealing: While structured lifeline distribution works for smaller problems, the addition of random work stealing was critical for maintaining performance on massive search trees like eco10.
- Implementation Simplicity: By leveraging the GLB library, the complex parallel logic was implemented in only ~1,000 lines of X10 code, demonstrating the accessibility of high-performance parallel programming for irregular problems.
Conclusion and Future Work
This research proves that complex, continuous-domain problems can scale near-linearly with appropriate decentralized workload management. Future work will explore extending the solver to optimization problems, which requires efficient global sharing of the "best found" solution, and testing the architecture at the scale of 10,000+ cores on modern exascale systems.
Summary updated