Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
7ec00c4f
Commit
7ec00c4f
authored
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
ban numpy multithreading
parent
c4ae6c7c
dev
main
zhaobowei-main-patch-61353
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/pipeline.py
+2
-0
csst_common/pipeline.py
with
2 additions
and
0 deletions
+2
-0
csst_common/pipeline.py
+
2
-
0
View file @
7ec00c4f
...
@@ -59,6 +59,8 @@ class Pipeline:
...
@@ -59,6 +59,8 @@ class Pipeline:
if
filter_warnings
:
if
filter_warnings
:
self
.
filter_warnings
()
self
.
filter_warnings
()
self
.
ban_multithreading
()
def
ban_multithreading
(
self
):
def
ban_multithreading
(
self
):
os
.
environ
[
"OMP_NUM_THREADS"
]
=
"1"
os
.
environ
[
"OMP_NUM_THREADS"
]
=
"1"
os
.
environ
[
"MKL_NUM_THREADS"
]
=
"1"
os
.
environ
[
"MKL_NUM_THREADS"
]
=
"1"
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets