Giter Club home page Giter Club logo

Comments (3)

kalmarek avatar kalmarek commented on June 18, 2024 1

@bodono just to confirm: SCS + OMP_NUM_THREADS + MKL works for us in the julia land ;)

from scs.

bodono avatar bodono commented on June 18, 2024

There are five places where multi-threading can speed up SCS:

  1. In the matrix multiplies, primarily for the indirect solver but also to some small extent the direct solver - if compiled with USE_OPENMP = 1 .
  2. In the projection onto the exponential cone - if compiled with USE_OPENMP = 1.
  3. In the projection onto the semidefinite cone - if your lapack library is multi-threaded.
  4. In the Anderson acceleration - if your lapack library is multi-threaded.
  5. If using MKL then multiple threads will be used for the linear system solver and for the SD cone project and Anderson acceleration.

To control the number of threads you can use OMP_NUM_THREADS environment variable (I think this should also work for the MKL threads).

from scs.

BptGrm avatar BptGrm commented on June 18, 2024

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.

from scs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.