aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-22 14:38:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-22 14:39:06 +0100
commitef363284012ed1d99b1ab62496c45db64de6f06d (patch)
tree6585bab8feadd2c71962a6191af86ad23e9874df /src/libutil/util.c
parent95c501a738b1e95241eb3e1f00d20e8e070f17eb (diff)
downloadrspamd-ef363284012ed1d99b1ab62496c45db64de6f06d.tar.gz
rspamd-ef363284012ed1d99b1ab62496c45db64de6f06d.zip
[Minor] Fix blas support on osx
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r--src/libutil/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index 60328df32..19f07e82d 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -1709,8 +1709,13 @@ void rspamd_gerror_free_maybe (gpointer p)
#ifdef HAVE_CBLAS_H
#include "cblas.h"
#else
+#ifdef __APPLE__
+/* OSX is pure evil: number of threads must be set via env: VECLIB_MAXIMUM_THREADS */
+void openblas_set_num_threads(int num_threads) {}
+#else
extern void openblas_set_num_threads(int num_threads);
#endif
+#endif
/*
* Openblas creates threads that are not supported by
* jemalloc allocator (aside of being bloody stupid). So this hack