Commit c4ae6c7c authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

ban numpy multithreading

parent 946de084
import json
import os.path
import os
import subprocess
import warnings
......@@ -59,6 +59,10 @@ class Pipeline:
if filter_warnings:
self.filter_warnings()
def ban_multithreading(self):
os.environ["OMP_NUM_THREADS"] = "1"
os.environ["MKL_NUM_THREADS"] = "1"
def set_test_env(self):
os.environ["CSST_DFS_API_MODE"] = "cluster"
os.environ["CSST_DFS_GATEWAY"] = "172.24.27.2:30880"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment