[sasmodels] 02/04: Don't use openmp in calculations

Stuart Prescott stuart at debian.org
Wed Jan 3 14:09:04 UTC 2018


This is an automated email from the git hooks/post-receive script.

stuart pushed a commit to branch master
in repository sasmodels.

commit bd46fd71a64df35060d69fbecc8db30963294401
Author: Stuart Prescott <stuart at debian.org>
Date:   Thu Jan 4 00:46:25 2018 +1100

    Don't use openmp in calculations
---
 debian/patches/no_openmp.patch | 12 ++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 13 insertions(+)

diff --git a/debian/patches/no_openmp.patch b/debian/patches/no_openmp.patch
new file mode 100644
index 0000000..f8ea785
--- /dev/null
+++ b/debian/patches/no_openmp.patch
@@ -0,0 +1,12 @@
+--- a/sasmodels/kerneldll.py
++++ b/sasmodels/kerneldll.py
+@@ -119,9 +119,6 @@
+     CC.extend(os.environ.get("CPPFLAGS", "").split())
+     CC.extend(os.environ.get("CFLAGS", "").split())
+     CC.extend(os.environ.get("LDFLAGS", "").split())
+-    # add openmp support if not running on a mac
+-    if sys.platform != "darwin":
+-        CC.append("-fopenmp")
+     def compile_command(source, output):
+         """unix compiler command"""
+         return CC + [source, "-o", output, "-lm"]
diff --git a/debian/patches/series b/debian/patches/series
index 9960ac3..03ed24d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,4 +2,5 @@ disable-failing-test.patch
 sphinx-local-mathjax.patch
 precompiled_path.patch
 compile-flags.patch
+no_openmp.patch
 setup-install-so.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sasmodels.git



More information about the debian-science-commits mailing list