Changeset 2448


Ignore:
Timestamp:
Apr 7, 2019 10:31:57 AM (3 months ago)
Author:
forrest
Message:

add openblas one thread to driver3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/examples/driver3.cpp

    r2427 r2448  
    3434int ClpMain1(int argc, const char *argv[],AbcSimplex * model);
    3535#endif
     36/*
     37  Somehow with some BLAS we get multithreaded by default
     38  For 99.99% of problems this is not a good idea.
     39  The openblas_set_num_threads(1) seems to work even with other blas
     40 */
     41#if CLP_USE_OPENBLAS
     42extern "C" {
     43void openblas_set_num_threads(int num_threads);
     44}
     45#endif
    3646int main (int argc, const char *argv[])
    3747{
    3848
     49#if CLP_USE_OPENBLAS
     50  openblas_set_num_threads(CLP_USE_OPENBLAS);
     51#endif
    3952#ifndef ABC_INHERIT
    4053  ClpSimplex model;
Note: See TracChangeset for help on using the changeset viewer.