-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCS GPU convergence in a simple problem #206
Comments
Yes there is something broken about the GPU solver for some machines (eg #180). What OS are you using and what GPU do you have? I would recommend sticking to the direct cpu solver for now. |
Thanks for your reply! The program ran on a virtual machine with ubuntu 20.04, CUDA 11.2, GPU 2080Ti. I use scs-python interface at scs-python, which is compiled with I will look at the issue in your reply in detail and get back to update later. Additional things I would like to ask about GPU acceleration. Currently, I am working on some real-time applications, and the solving time in my problem is at tens of milliseconds when using CPU and the amount of iterations is approximately 1k. How much do u think roughly GPU can reduce in solving time compared with CPU? |
Thanks for the info. I'm not sure what is causing this issue and it's something we're looking at. As for timing, in many cases the GPU solver is actually slower, so you're probably better off just sticking to the direct CPU solver. By the way, have you tried warm-starting the solver? That might provide some speedup. Also you can try using CVXPYs parametrized programming (https://www.cvxpy.org/tutorial/advanced/index.html#disciplined-parametrized-programming). Another thing is you should reuse the |
Thx for the suggestions! I actually have tried every method you have mentioned to speed up the process :). Nevertheless, since GPU may not possibly be faster, I will just stick with CPU solver. Appreciate your help! |
Hi everyone,
I attempted to solve this example problem by using SCS GPU, CVXPY Example:Semidefinite program
However, I do not see any convergence in the problem. The output is attached below and the solver config is
prob.solve(verbose=True, gpu=True, use_indirect=True,max_iters=10000)
May I have some hints on this issue? Many thanks in advance!
The text was updated successfully, but these errors were encountered: