cuda OSQP examples #681
-
I was looking for resources to find examples where the CUDA back-end beats the CPU, unfortunately couldn't find any. I was wondering if anyone could provide examples/code for such problems. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@Eqedos - the repo osqp-benchmarks has a lot of sample problems. In particular, the A sample standalone script representing the
Running on my local machine gives me:
|
Beta Was this translation helpful? Give feedback.
-
Thank you! very helpful. Are there perhaps classes of problems the cuda OSQP backend can't solve at all or does not converge on? I've tried solving a reasonably small problem, and cuda osqp does not converge via CVXPY. I was wondering if CVXPYs canonicalization had anything to do with it, or perhaps it's the type of problem.
|
Beta Was this translation helpful? Give feedback.
@Eqedos - the repo osqp-benchmarks has a lot of sample problems. In particular, the
Huber
class of problems benefit from the CUDA backend, for higher dimensions of problems. See a benchmark graphic below (blue is built-in backend, orange is cuda backend):A sample standalone script representing the
Huber
problem would be: