projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
259c33b
)
[crepe] prevent openblas from opening threads
author
Paul Brossier
<piem@piem.org>
Tue, 8 Jan 2019 16:43:12 +0000
(17:43 +0100)
committer
Paul Brossier
<piem@piem.org>
Wed, 29 Dec 2021 16:51:57 +0000
(11:51 -0500)
src/pitch/pitch_crepe.c
patch
|
blob
|
history
diff --git
a/src/pitch/pitch_crepe.c
b/src/pitch/pitch_crepe.c
index
adeafe6
..
f1c7d95
100644
(file)
--- a/
src/pitch/pitch_crepe.c
+++ b/
src/pitch/pitch_crepe.c
@@
-99,6
+99,12
@@
aubio_pitch_crepe_t *new_aubio_pitch_crepe(void)
uint_t output_shape[2];
uint_t i;
+#if defined(HAVE_BLAS) && defined(HAVE_OPENBLAS_CBLAS_H)
+ // workaround to prevent openblas from opening multiple threads, since
+ // the overhead appears to be higher than using a single thread.
+ openblas_set_num_threads(1);
+#endif
+
AUBIO_ASSERT (capacity_mode < 5 && (sint_t)capacity_mode >= 0);
o->n_layers = 6;