Ignore:
Timestamp:
Apr 7, 2019 11:34:28 PM (7 months ago)
Author:
stefan
Message:

sync with trunk

Location:
stable/1.17/Clp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable/1.17/Clp

  • stable/1.17/Clp/examples/driver3.cpp

    r2431 r2449  
    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.