r46705 - in /packages/healpix/healpix-cxx/trunk/debian: changelog rules
lsinger-guest at users.alioth.debian.org
lsinger-guest at users.alioth.debian.org
Tue Jun 10 12:12:24 UTC 2014
Author: lsinger-guest
Date: Tue Jun 10 12:12:24 2014
New Revision: 46705
URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=46705
Log:
healpix-cxx: respect parallel=n option in unit tests
Modified:
packages/healpix/healpix-cxx/trunk/debian/changelog
packages/healpix/healpix-cxx/trunk/debian/rules
Modified: packages/healpix/healpix-cxx/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/healpix/healpix-cxx/trunk/debian/changelog?rev=46705&op=diff
==============================================================================
--- packages/healpix/healpix-cxx/trunk/debian/changelog (original)
+++ packages/healpix/healpix-cxx/trunk/debian/changelog Tue Jun 10 12:12:24 2014
@@ -6,6 +6,8 @@
http://qa.debian.org/bls/bytag/W-compiler-flags-hidden.html
* Use canonical VCS server svn://anonscm.debian.org/. See
http://lintian.debian.org/tags/vcs-field-not-canonical.html
+ * If DEB_BUILD_OPTIONS=parallel=n is set, then use only n OpenMP threads
+ to run the unit tests (Closes: #751081).
-- Leo Singer <leo.singer at ligo.org> Mon, 09 Jun 2014 10:28:03 -0700
Modified: packages/healpix/healpix-cxx/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/healpix/healpix-cxx/trunk/debian/rules?rev=46705&op=diff
==============================================================================
--- packages/healpix/healpix-cxx/trunk/debian/rules (original)
+++ packages/healpix/healpix-cxx/trunk/debian/rules Tue Jun 10 12:12:24 2014
@@ -15,6 +15,13 @@
EXTRA_CONFIGURE_ARGS=
endif
+# If DEB_BUILD_OPTIONS=parallel=n is set, then use that many OpenMP threads
+# in the unit test suite too.
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+export OMP_NUM_THREADS=$(NUMJOBS)
+endif
+
%:
dh $@ --with autoreconf
More information about the debian-science-commits
mailing list