Skip to content

Commit

Permalink
Merge pull request #4 from fumiama/speedup
Browse files Browse the repository at this point in the history
feat: skrink macos brew & flags
  • Loading branch information
synodriver authored Aug 12, 2022
2 parents a9873b8 + 1c493f5 commit b9b0e9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,4 @@ Temporary Items

# Linux trash folder which might appear on any partition or disk
.Trash-*
dic.tar.gz
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,9 @@ def build_extensions(self):
extra_compile_args = ['-fopenmp']
extra_link_args = ['-fopenmp']
elif system == "Darwin":
os.system("brew install llvm libomp")
os.system("brew install clang-omp")
# os.environ["CPP"] = "/usr/local/opt/llvm/bin/clang"
extra_compile_args = ["-Xpreprocessor", "-fopenmp"]
extra_link_args = ["-Xpreprocessor", "-fopenmp"]
os.system('brew install libomp')
extra_compile_args = ['-Xpreprocessor', '-fopenmp']
extra_link_args = ['-L/usr/local/lib', '-lomp']
else:
extra_compile_args = ['-fopenmp']
extra_link_args = ['-fopenmp']
Expand Down

0 comments on commit b9b0e9d

Please sign in to comment.