[mpi-defaults] 02/06: Also export a list of known architectures where each implementation is available. Closes: #814943

Mattia Rizzolo mattia at debian.org
Sat Feb 27 12:11:55 UTC 2016


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

mattia pushed a commit to branch master
in repository mpi-defaults.

commit 57d37c200258e7512733d7ee36aade8bf806ffea
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sat Feb 27 11:50:05 2016 +0000

    Also export a list of known architectures where each implementation is available.  Closes: #814943
---
 debian/rules | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/debian/rules b/debian/rules
index b7d0d37..48c247f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,57 @@ export DH_VERBOSE=1
 
 d := debian/debian_defaults
 
+# default in this architecture:
 MPI=$(shell readlink /etc/alternatives/mpi | sed s/usr//g | sed s/include//g | sed s/lib//g | sed s/\\///g)
 
+# availability of MPI implementations:
+
+OPENMPI_AVAILABLE_ARCHITECTURES := \
+	alpha \
+	amd64 \
+	arm64 \
+	armel \
+	armhf \
+	hppa \
+	hurd-i386 \
+	i386 \
+	kfreebsd-amd64 \
+	kfreebsd-i386 \
+	mips \
+	mipsel \
+	powerpc \
+	ppc64 \
+	ppc64el \
+	s390x \
+	sh4 \
+	sparc64 \
+	x32 \
+
+MPICH_AVAILABLE_ARCHITECTURES := \
+	alpha \
+	amd64 \
+	arm64 \
+	armel \
+	armhf \
+	hppa \
+	hurd-i386 \
+	i386 \
+	kfreebsd-amd64 \
+	kfreebsd-i386 \
+	m68k \
+	mips \
+	mipsel \
+	powerpc \
+	ppc64 \
+	ppc64el \
+	s390x \
+	sh4 \
+	sparc64 \
+	x32 \
+
+
+# defaults
+
 OPENMPI_ARCHITECTURES := \
 	alpha \
 	amd64 \
@@ -37,6 +86,10 @@ MPICH_ARCHITECTURES := \
 override_dh_auto_build:
 	echo "# Default MPI implementation on this arch:" > $d
 	echo "ARCH_DEFAULT_MPI_IMPL=$(MPI)" >> $d
+	echo "# Architectures where OpenMPI is available:" >> $d
+	echo "OPENMPI_AVAILABLE_ARCHITECTURES=$(OPENMPI_AVAILABLE_ARCHITECTURES)" >> $d
+	echo "# Architectures where MPICH is available:" >> $d
+	echo "MPICH_AVAILABLE_ARCHITECTURES=$(MPICH_AVAILABLE_ARCHITECTURES)" >> $d
 	echo "# Architectures defaulting to OpenMPI:" >> $d
 	echo OPENMPI_ARCHITECTURES=$(OPENMPI_ARCHITECTURES) >> $d
 	echo "# Architectures defaulting to MPICH:" >> $d

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mpi-defaults.git



More information about the debian-science-commits mailing list