Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cigale
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cigale
cigale
Commits
8a081eb3
Commit
8a081eb3
authored
Aug 13, 2019
by
Yannick Roehlly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set some environment variables to disable threading.
parent
38f500f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
pcigale/__init__.py
pcigale/__init__.py
+9
-0
pcigale_plots/__init__.py
pcigale_plots/__init__.py
+9
-0
No files found.
pcigale/__init__.py
View file @
8a081eb3
...
...
@@ -3,6 +3,15 @@
# Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt
# Author: Yannick Roehlly
import
os
# Set environment variables to disable multithreading as users will probably
# want to set the number of cores to the max of their computer.
os
.
environ
[
"OMP_NUM_THREADS"
]
=
"1"
os
.
environ
[
"OPENBLAS_NUM_THREADS"
]
=
"1"
os
.
environ
[
"MKL_NUM_THREADS"
]
=
"1"
os
.
environ
[
"VECLIB_MAXIMUM_THREADS"
]
=
"1"
os
.
environ
[
"NUMEXPR_NUM_THREADS"
]
=
"1"
import
argparse
import
multiprocessing
as
mp
import
sys
...
...
pcigale_plots/__init__.py
View file @
8a081eb3
...
...
@@ -6,6 +6,15 @@
# Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt
# Author: Yannick Roehlly, Médéric Boquien & Denis Burgarella
import
os
# Set environment variables to disable multithreading as users will probably
# want to set the number of cores to the max of their computer.
os
.
environ
[
"OMP_NUM_THREADS"
]
=
"1"
os
.
environ
[
"OPENBLAS_NUM_THREADS"
]
=
"1"
os
.
environ
[
"MKL_NUM_THREADS"
]
=
"1"
os
.
environ
[
"VECLIB_MAXIMUM_THREADS"
]
=
"1"
os
.
environ
[
"NUMEXPR_NUM_THREADS"
]
=
"1"
import
argparse
import
sys
from
os
import
path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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