Skip to content

Commit

Permalink
Try link args for macosx.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed May 24, 2024
1 parent e9728f9 commit 77c237c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opty/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ def ufuncify_matrix(args, expr, const=None, tmp_dir=None, parallel=False,
if sys.platform == "win32":
d['compile_args'] = "'\openmp'"
d['link_args'] = ""
elif sys.platform == "darwin":
d['compile_args'] = "'-fopenmp'"
d['link_args'] = "'-lmpi', '-lomp'"
else:
d['compile_args'] = "'-fopenmp'"
d['link_args'] = "'-fopenmp'"
Expand Down

0 comments on commit 77c237c

Please sign in to comment.