Changeset dd4e5d5


Ignore:
Timestamp:
Dec 29, 2021, 5:51:57 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
1f7cb6a
Parents:
259c33b
git-author:
Paul Brossier <piem@piem.org> (01/08/19 17:43:12)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:57)
Message:

[crepe] prevent openblas from opening threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch_crepe.c

    r259c33b rdd4e5d5  
    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.