[openblas] 02/03: remove-openmp-warning.patch: new patch
Sébastien Villemot
sebastien at debian.org
Mon Feb 17 18:40:22 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository openblas.
commit 923d2d0338f0ad9123e07bc564081ca4c4cbccfc
Author: Sébastien Villemot <sebastien at debian.org>
Date: Mon Feb 17 18:55:29 2014 +0100
remove-openmp-warning.patch: new patch
Removes annoying warning when OpenBLAS is called from an OpenMP application.
---
debian/changelog | 2 ++
debian/patches/remove-openmp-warning.patch | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 30 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 476ede3..3371a98 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
openblas (0.2.8-4) UNRELEASED; urgency=low
* Revert to pthreads parallelism instead of OpenMP (Closes: #725673)
+ * remove-openmp-warning.patch: new patch, removes annoying warning when
+ OpenBLAS is called from an OpenMP application.
-- Sébastien Villemot <sebastien at debian.org> Mon, 17 Feb 2014 18:48:35 +0100
diff --git a/debian/patches/remove-openmp-warning.patch b/debian/patches/remove-openmp-warning.patch
new file mode 100644
index 0000000..84acf58
--- /dev/null
+++ b/debian/patches/remove-openmp-warning.patch
@@ -0,0 +1,27 @@
+Description: Remove warning about OpenMP
+ This warning is annoying when the library is built with pthreads.
+ See #684344
+Author: Sébastien Villemot <sebastien at debian.org>
+Forwarded: no
+Last-Update: 2014-02-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/driver/others/blas_server.c
++++ b/driver/others/blas_server.c
+@@ -719,16 +719,6 @@ int exec_blas(BLASLONG num, blas_queue_t
+ #ifdef SMP_DEBUG
+ fprintf(STDERR, "Exec_blas is called. Number of executing threads : %ld\n", num);
+ #endif
+-
+-#ifdef __ELF__
+- if (omp_in_parallel && (num > 1)) {
+- if (omp_in_parallel() > 0) {
+- fprintf(stderr,
+- "OpenBLAS Warning : Detect OpenMP Loop and this application may hang. "
+- "Please rebuild the library with USE_OPENMP=1 option.\n");
+- }
+- }
+-#endif
+
+ if ((num > 1) && queue -> next) exec_blas_async(1, queue -> next);
+
diff --git a/debian/patches/series b/debian/patches/series
index 31f3fdf..716e813 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
libblas3-soname.patch
test-custom-package.patch
qemu-athlon.patch
+remove-openmp-warning.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/openblas.git
More information about the debian-science-commits
mailing list