You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've been going through the documentation and some old issues to look for details on multithreading with SCS. From what I could see, there's no explicit support for it unlike some other solvers, but this old comment mentions the possibility of building from source with OpenMP to make use of multiple cores.
There's also this StackOverflow comment that claims that half of the cores are being used with the default acceleration_lookback setting. I've tried bumping up that number up to 100 on my own code, but the problem was still being solved on a single core. Lowering that number to 1 did slow it down though. Does that mean that multicore calculation is not available for all problems ?
I gave a quick shot to building from source with OpenMP, which failed most likely because of a compiler issue, but if it's so far the easiest way to speed up solving overall I will definetly try to make it work.
I also tried parallelizing the same problem over multiple sources of data with joblib, to no avail.
The text was updated successfully, but these errors were encountered:
I tried it out on a fairly large dataset, things end up being slightly slower with MKL than without. I guess for this kind of problem it would make more sense to run each solve on a different core with different data ?
Either way, thanks for the help !
Just as a note, if I install MKL with pip, it isn't recognized by setup.py when building from source with the --mkl flag. Installing with conda works just fine. This is on Ubuntu 20.04 LTS with Python 3.10.
Specifications
Hi,
I've been going through the documentation and some old issues to look for details on multithreading with SCS. From what I could see, there's no explicit support for it unlike some other solvers, but this old comment mentions the possibility of building from source with OpenMP to make use of multiple cores.
There's also this StackOverflow comment that claims that half of the cores are being used with the default
acceleration_lookback
setting. I've tried bumping up that number up to 100 on my own code, but the problem was still being solved on a single core. Lowering that number to 1 did slow it down though. Does that mean that multicore calculation is not available for all problems ?I gave a quick shot to building from source with OpenMP, which failed most likely because of a compiler issue, but if it's so far the easiest way to speed up solving overall I will definetly try to make it work.
I also tried parallelizing the same problem over multiple sources of data with
joblib
, to no avail.The text was updated successfully, but these errors were encountered: