[med-svn] [phyml] 01/07: Wrapper script to call mpi version with same name if the machine has more than one processor

Andreas Tille tille at debian.org
Wed Jul 20 09:43:51 UTC 2016


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

tille pushed a commit to branch master
in repository phyml.

commit 253de9cf81f5a31c4eff4ef8fec2ea36af9e578f
Author: Andreas Tille <tille at debian.org>
Date:   Wed May 4 10:46:23 2016 +0200

    Wrapper script to call mpi version with same name if the machine has more than one processor
---
 debian/wrapper/phyml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/debian/wrapper/phyml b/debian/wrapper/phyml
new file mode 100755
index 0000000..8a23350
--- /dev/null
+++ b/debian/wrapper/phyml
@@ -0,0 +1,15 @@
+#!/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:]:]\+//'`
+
+#echo NPROCESSOR=$NPROCESSOR
+#echo NCPUS=$NCPUS
+
+if [ $NCPUS -gt 1 ] ; then
+    EXE=/usr/bin/phyml-mpi
+else
+    EXE=/usr/bin/phyml
+fi
+
+$EXE $@

-- 
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