diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-02 13:05:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-02 13:05:58 +0100 |
commit | 54daeb811d83f5d4e29e208e7285c669d123f606 (patch) | |
tree | aa582cc7c1d5a8ea3f72f2db40c18f4a5da6fbf2 /src/libutil | |
parent | 75d2e6e32450b355f32a06745abc2f9446febce7 (diff) | |
download | rspamd-54daeb811d83f5d4e29e208e7285c669d123f606.tar.gz rspamd-54daeb811d83f5d4e29e208e7285c669d123f606.zip |
[Rework] Change and improve openblas detection and usage
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 9e5147ab5..1aed0f8b4 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -64,6 +64,7 @@ #include "zlib.h" #include "contrib/uthash/utlist.h" +#include "blas-config.h" /* Check log messages intensity once per minute */ #define CHECK_TIME 60 @@ -1705,17 +1706,8 @@ void rspamd_gerror_free_maybe (gpointer p) -#ifdef HAVE_CBLAS -#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 +#ifdef HAVE_OPENBLAS_SET_NUM_THREADS 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 |