From a1ec2a27074fb66c5acf6349dfb4985449bc588d Mon Sep 17 00:00:00 2001 From: david-cortes Date: Sun, 19 Mar 2023 17:42:18 +0100 Subject: [PATCH] fix OMP detection --- setup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 69e3865..693656c 100644 --- a/setup.py +++ b/setup.py @@ -194,7 +194,7 @@ def add_clang_fp_reassociate(self): def add_openmp_linkage(self): arg_omp1 = "-fopenmp" arg_omp2 = "-fopenmp=libomp" - args_omp2 = ["-fopenmp=libomp", "-lomp"] + args_omp3 = ["-fopenmp=libomp", "-lomp"] arg_omp4 = "-qopenmp" arg_omp5 = "-xopenmp" is_apple = sys.platform[:3].lower() == "dar" @@ -231,7 +231,7 @@ def add_openmp_linkage(self): for e in self.extensions: e.extra_compile_args += ["-fopenmp=libomp"] e.extra_link_args += ["-fopenmp"] - elif self.test_supports_compile_arg(arg_omp3, with_omp=True): + elif self.test_supports_compile_arg(args_omp3, with_omp=True): for e in self.extensions: e.extra_compile_args += ["-fopenmp=libomp"] e.extra_link_args += ["-fopenmp", "-lomp"] @@ -345,10 +345,9 @@ def test_supports_clang_reassociate(self): setup( name = "cmfrec", packages = ["cmfrec"], - version = '3.5.1-1', + version = '3.5.1-2', description = 'Collective matrix factorization', author = 'David Cortes', - author_email = 'david.cortes.rivera@gmail.com', url = 'https://github.com/david-cortes/cmfrec', keywords = ['collaborative filtering', 'collective matrix factorization', 'relational learning'],