NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CuClarabel: GPU Acceleration for a Conic Optimization Solver

Yuwen Chen, David Tse, Parth Nobel, Paul J. Goulart, Stephen BoydarXiv 2024 · DOI

Abstract

We present the GPU implementation of the general-purpose interior-point solver Clarabel for convex optimization problems with conic constraints. We introduce a mixed parallel computing strategy that processes linear constraints first, then handles other conic constraints in parallel. The GPU solver currently supports linear equality and inequality constraints, second-order cones, exponential cones, power cones, and positive semidefinite cones of the same dimensionality. We demonstrate that integrating a mixed parallel computing strategy with GPU-based direct linear system solvers enhances the performance of GPU-based conic solvers, surpassing their CPU-based counterparts across a wide range of conic optimization problems. We also show that employing mixed-precision linear system solvers can potentially achieve additional acceleration without compromising solution accuracy.

Introduction

Convex optimization serves as the mathematical foundation for critical engineering and financial applications, ranging from power grid management to portfolio balancing. Historically, practitioners have faced a trade-off between two types of solvers: first-order methods and Interior-Point Methods (IPMs). First-order methods are highly parallelizable and well-suited for GPUs, but they often struggle to achieve high-precision solutions. Conversely, IPMs provide high-accuracy solutions but rely on computationally intensive matrix factorizations, such as LDLᵀ decomposition, which have traditionally been difficult to implement efficiently on GPU architectures.

CuClarabel bridges this gap by bringing the high-precision capabilities of IPMs to the GPU. By leveraging modern GPU-based direct linear solvers and novel workload management strategies, CuClarabel enables high-performance optimization across diverse mathematical constraints, including second-order, exponential, and semidefinite cones.

Methodology

To optimize IPM performance on the GPU, CuClarabel implements several architectural innovations designed to maximize throughput and minimize synchronization delays.

Mixed Parallel Computing Strategy

Optimization problems often involve heterogeneous constraint types. CuClarabel utilizes a mixed parallel strategy that prioritizes linear constraints before processing other "families" of cones (e.g., exponential or power cones) in parallel across separate GPU streams. This approach ensures that the GPU remains utilized even when the problem contains a diverse mix of mathematical structures.

Integration with cuDSS

A critical bottleneck in any IPM is the "find search directions" step, which requires solving a sparse linear system. CuClarabel integrates with NVIDIA’s cuDSS library, a high-performance direct solver for sparse systems on GPUs. This integration allows CuClarabel to perform the heavy matrix algebra required for IPMs directly on the hardware, avoiding the latency of CPU-GPU data transfers during the iterative process.

Dynamic Parallelism and Data Structures

For high-dimensional Second-Order Cones (SOCs), the solver employs dynamic parallelism. It launches "child kernels" to handle internal reduction operations, such as computing 2-norms, preventing the GPU from falling into a single-threaded execution pattern on large constraints. Furthermore, the solver adopts a Structure of Arrays (SoA) data layout rather than the traditional Array of Structures (AoS) used in CPU solvers. This ensures memory coalescing, which is vital for maintaining high memory bandwidth on NVIDIA hardware.

Mixed-Precision Iterative Refinement

To further accelerate computation, CuClarabel supports mixed-precision operations. The solver can perform expensive matrix factorizations in Float32—which offers significantly higher throughput on most GPUs—and then utilize an iterative refinement process in Float64 to "polish" the solution. This technique allows the solver to achieve the speed of single-precision math without sacrificing the numerical robustness required for complex conic problems.

Experimental Evaluation

CuClarabel was benchmarked against standard industry solvers (Gurobi and MOSEK) and the original multi-threaded Rust CPU implementation of Clarabel across several problem domains:

  • Quadratic Programming (QP): In portfolio optimization and Huber fitting benchmarks, CuClarabel achieved a 2x speedup over Gurobi, a 4x speedup over MOSEK, and a 10x speedup over the CPU version of Clarabel.
  • Second-Order Cone Programming (SOCP): Using the PGLib-OPF library (Optimal Power Flow), CuClarabel demonstrated superior robustness, successfully solving 118 out of 120 large-scale problems. In contrast, MOSEK failed on approximately 40% of the same dataset when presolve was disabled.
  • Scaling Performance: In multi-stage portfolio optimization, the GPU implementation showed significant scaling advantages, reaching up to a 40x speedup over the CPU version as the problem horizon and dimensionality increased.

Discussion and Limitations

The results indicate that the primary bottleneck for GPU-based IPMs is no longer the cone mathematics themselves, but the efficiency of the linear system solver. The emergence of robust GPU direct solvers like cuDSS has fundamentally changed the feasibility of high-precision GPU optimization.

However, some limitations remain. Currently, Positive Semidefinite (PSD) cone support is restricted to cones of the same dimensionality with a maximum dimension of 32, due to limitations in underlying batched factorization libraries. Additionally, the initial setup time required to move data to the GPU means that for very small problems, CPU-based solvers may still be more efficient.

Conclusion

CuClarabel demonstrates that GPU-accelerated Interior-Point Methods can outperform state-of-the-art CPU solvers in both speed and robustness for large-scale conic problems. Future work will focus on extending support for general SDPs with varying dimensions and exploring kernel fusion and CUDA graphs to further reduce the overhead of launching GPU tasks.

Summary updated

BibTeX
@misc{chen2024cuclarabel,
  author = {Yuwen Chen and David Tse and Parth Nobel and Paul J. Goulart and Stephen Boyd},
  title = {{CuClarabel: GPU Acceleration for a Conic Optimization Solver}},
  year = {2024},
  eprint = {2412.19027},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.19027},
}
Figure