From 77c237c90c586e49680e52f2bb716158c3b31fde Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Fri, 24 May 2024 11:56:13 +0200 Subject: [PATCH] Try link args for macosx. --- opty/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opty/utils.py b/opty/utils.py index daa9dad..608ef10 100644 --- a/opty/utils.py +++ b/opty/utils.py @@ -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'"