[med-svn] [iqtree] 05/05: Build a MPI paralellised binary

Kevin Murray daube-guest at moszumanska.debian.org
Sun Dec 4 01:29:04 UTC 2016


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

daube-guest pushed a commit to branch master
in repository iqtree.

commit 2724598e060cd2c35676e32c1da48f36c6969113
Author: Kevin Murray <kdmfoss at gmail.com>
Date:   Sun Dec 4 12:28:21 2016 +1100

    Build a MPI paralellised binary
---
 debian/changelog | 1 +
 debian/control   | 1 +
 debian/rules     | 8 +++++++-
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f4b79a8..b930405 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 iqtree (1.5.2+dfsg-1) UNRELEASED; urgency=medium
 
   * New upstream version 1.5.2+dfsg (Closes: #XXXXXXX)
+  * Enable build of MPI-parallelised executable
 
  -- Kevin Murray <kdmfoss at gmail.com>  Sun, 04 Dec 2016 11:25:38 +1100
 
diff --git a/debian/control b/debian/control
index feeb693..3d77810 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Build-Depends: debhelper (>= 9),
                cmake,
                libeigen3-dev,
                libsprng2-dev,
+               mpi-default-dev,
                zlib1g-dev,
                help2man,
                time
diff --git a/debian/rules b/debian/rules
index e266977..a92d2dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,13 +11,16 @@ mandir=$(CURDIR)/debian/$(pkg)/usr/share/man/man1/
 %:
 	dh $@ --parallel
 
-VARIANTS = omp serial
+VARIANTS = omp serial mpi
 
 override_dh_auto_configure: $(foreach variant,$(VARIANTS),dh_auto_configure_$(variant))
 override_dh_auto_build:     $(foreach variant,$(VARIANTS),dh_auto_build_$(variant))
 override_dh_auto_install:   $(foreach variant,$(VARIANTS),dh_auto_install_$(variant))
 override_dh_auto_clean:     $(foreach variant,$(VARIANTS),dh_auto_clean_$(variant))
 
+dh_auto_configure_mpi:
+	dh_auto_configure -Bbuild.mpi -- -DIQTREE_FLAGS="mpi"
+
 dh_auto_configure_omp:
 	dh_auto_configure -Bbuild.omp -- -DIQTREE_FLAGS="omp"
 
@@ -47,6 +50,9 @@ override_dh_installman:
 	help2man --no-info --no-discard-stderr --help-option="-h" \
 	    --name='efficient phylogenetic software by maximum likelihood (multiprocessor version)' \
 	    --version-string="$(version)" $(CURDIR)/debian/$(pkg)/usr/bin/iqtree-omp > $(mandir)/iqtree-omp.1
+	help2man --no-info --no-discard-stderr --help-option="-h" \
+	    --name='efficient phylogenetic software by maximum likelihood (multiprocessor version)' \
+	    --version-string="$(version)" $(CURDIR)/debian/$(pkg)/usr/bin/iqtree-mpi > $(mandir)/iqtree-mpi.1
 
 override_dh_auto_test:
 	# use only the first example for build time test to save time on autobuilders

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/iqtree.git



More information about the debian-med-commit mailing list