From 2f80f6a3e8ab2d44432c72d07be0e7849d1b7c78 Mon Sep 17 00:00:00 2001
From: Alex Wiens <alex.wiens@uni-paderborn.de>
Date: Mon, 17 Feb 2025 18:52:28 +0100
Subject: [PATCH] Deploy: Add computational thread limitation

---
 deploy/run_prule_daemon.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/deploy/run_prule_daemon.sh b/deploy/run_prule_daemon.sh
index a93abfb..9b3a0f9 100644
--- a/deploy/run_prule_daemon.sh
+++ b/deploy/run_prule_daemon.sh
@@ -1,6 +1,10 @@
 #!/bin/bash
 SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
-# activate python virtual environmen
+# activate python virtual environment
 source "${SCRIPT_DIR}/venv/bin/activate"
+# limit number of computational threads
+export MKL_NUM_THREADS=1
+export NUMEXPR_NUM_THREADS=1
+export OMP_NUM_THREADS=1
 # exec prule.daemon with config file
 exec python3 -u -m prule.daemon --config "${SCRIPT_DIR}/var/prule_daemon.json"
-- 
GitLab