Skip to content

Commit

Permalink
Update version in header.py and add 'OMP_NUM_THREADS' flag in src/set…
Browse files Browse the repository at this point in the history
…up.py
  • Loading branch information
Kuanhao-Chao committed Sep 27, 2024
1 parent a598226 commit e6120c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def build_extension(self, ext: CMakeExtension) -> None:
if not build_temp.exists():
build_temp.mkdir(parents=True)

# Set OMP_NUM_THREADS=1 for the build process
env = os.environ.copy()
env["OMP_NUM_THREADS"] = "1"

subprocess.run(
["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True
)
Expand Down
2 changes: 1 addition & 1 deletion src/splam/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
__license__ = "MIT"
__maintainer__ = "developer"
__status__ = "Kuan-Hao Chao"
__version__ = "1.0.10"
__version__ = "1.0.11"

0 comments on commit e6120c7

Please sign in to comment.