From 37053443b4680951329c3e8e1a0b9020c95fb821 Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Tue, 4 Feb 2020 15:02:23 -0800 Subject: [PATCH] Restore set omp (#7051) --- python/ray/autoscaler/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/autoscaler/updater.py b/python/ray/autoscaler/updater.py index eb320abb6..b5bae21ae 100644 --- a/python/ray/autoscaler/updater.py +++ b/python/ray/autoscaler/updater.py @@ -29,7 +29,7 @@ KUBECTL_RSYNC = os.path.join( def with_interactive(cmd): force_interactive = ("true && source ~/.bashrc && " - "export PYTHONWARNINGS=ignore && ") + "export OMP_NUM_THREADS=1 PYTHONWARNINGS=ignore && ") return ["bash", "--login", "-c", "-i", quote(force_interactive + cmd)]