[med-svn] [phyml] 01/02: Fix wrapper to correctly use mpirun
Andreas Tille
tille at debian.org
Mon Jan 30 19:30:02 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository phyml.
commit 8c92283e4ed38888d303770ee6a8e47d34cd0eb0
Author: Andreas Tille <tille at debian.org>
Date: Mon Jan 30 16:34:45 2017 +0100
Fix wrapper to correctly use mpirun
---
debian/changelog | 6 ++++++
debian/wrapper/phyml | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index b72fbbd..dabe3b2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+phyml (3:3.2.0+dfsg-5) UNRELEASED; urgency=medium
+
+ * Fix wrapper to correctly use mpirun
+
+ -- Andreas Tille <tille at debian.org> Mon, 30 Jan 2017 16:34:07 +0100
+
phyml (3:3.2.0+dfsg-4) unstable; urgency=medium
* Add pocl-opencl-icd to autopkgtest dependencies to emulate CPU-based ICD
diff --git a/debian/wrapper/phyml b/debian/wrapper/phyml
index 47b95d9..d002a74 100755
--- a/debian/wrapper/phyml
+++ b/debian/wrapper/phyml
@@ -1,5 +1,6 @@
#!/bin/sh
+
NPROCESSOR=`grep -c 'processor[[:space:]:]\+[0-9]\+' /proc/cpuinfo`
NCPUS=`grep '^cpu cores' /proc/cpuinfo | head -n 1 | sed 's/cpu cores[[:space:]:]\+//'`
@@ -7,7 +8,7 @@ NCPUS=`grep '^cpu cores' /proc/cpuinfo | head -n 1 | sed 's/cpu cores[[:space:]:
#echo NCPUS=$NCPUS
if [ $NCPUS -gt 1 ] ; then
- EXE=/usr/lib/phyml/bin/phyml-mpi
+ EXE="mpirun -n $NCPUS /usr/lib/phyml/bin/phyml-mpi"
else
EXE=/usr/lib/phyml/bin/phyml
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/phyml.git
More information about the debian-med-commit
mailing list