Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
c4ae6c7c
Commit
c4ae6c7c
authored
Jul 12, 2023
by
BO ZHANG
🏀
Browse files
ban numpy multithreading
parent
946de084
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/pipeline.py
View file @
c4ae6c7c
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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment