Changeset ba740ea


Ignore:
Timestamp:
Jan 8, 2019, 5:43:12 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Children:
057ecee
Parents:
18278232
Message:

[crepe] prevent openblas from opening threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch_crepe.c

    r18278232 rba740ea  
    100100  uint_t i;
    101101
     102#if defined(HAVE_BLAS) && defined(HAVE_OPENBLAS_CBLAS_H)
     103  // workaround to prevent openblas from opening multiple threads, since
     104  // the overhead appears to be higher than using a single thread.
     105  openblas_set_num_threads(1);
     106#endif
     107
    102108  AUBIO_ASSERT (capacity_mode < 5 && (sint_t)capacity_mode >= 0);
    103109
Note: See TracChangeset for help on using the changeset viewer.