aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-17 08:48:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-17 08:48:42 +0100
commitd6d98ff4be5f3d7e134fda04f708c4c06061375f (patch)
tree71d7d9d1be9e27dd12a07cb9860007c107e33e1e
parent3ac673af36fa8cb19ec535cafc29f21013ebe461 (diff)
downloadrspamd-d6d98ff4be5f3d7e134fda04f708c4c06061375f.tar.gz
rspamd-d6d98ff4be5f3d7e134fda04f708c4c06061375f.zip
[Minor] Disable threaded mode in openblas by default
-rw-r--r--src/rspamd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index 59bbb0144..c6b1b20e0 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -1162,6 +1162,10 @@ main (gint argc, gchar **argv, gchar **env)
rspamd_main->cfg->libs_ctx = rspamd_init_libs ();
memset (&signals, 0, sizeof (struct sigaction));
other_workers = g_array_new (FALSE, TRUE, sizeof (pid_t));
+#ifdef WITH_TORCH
+ /* We don't need multithreaded BLAS mode, disable it by default */
+ setenv ("OPENBLAS_NUM_THREADS", "1", 0);
+#endif
read_cmd_line (&argc, &argv, rspamd_main->cfg);