Browse Source

[Minor] Fix blas support on osx

tags/2.6
Vsevolod Stakhov 3 years ago
parent
commit
ef36328401
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/libutil/util.c

+ 5
- 0
src/libutil/util.c View File

@@ -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

Loading…
Cancel
Save