Skip to content

Commit

Permalink
Add back windows parallel switch
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesYang007 committed Oct 15, 2024
1 parent 76ffe6f commit 3f968c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def run_cmd(cmd):
return output.rstrip()


ParallelCompile("NPY_NUM_BUILD_JOBS").install()
# Limit number of threads to 1 if Windows.
ParallelCompile("NPY_NUM_BUILD_JOBS", max=os.name == "nt").install()


if os.name == "posix":
Expand All @@ -48,7 +49,6 @@ def run_cmd(cmd):
"/wd4267", # 'var' : conversion from 'size_t' to 'type', possible loss of data
"/wd4849", # OpenMP 'clause' clause ignored in 'directive' directive
"/O2",
"/CGTHREADS:4", # limit to 4 threads to avoid C1060
]
include_dirs = [
os.path.join("adelie", "src"),
Expand Down

0 comments on commit 3f968c7

Please sign in to comment.