aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaelJGilroy <michael.gilroy24@gmail.com>2017-05-31 17:36:52 -0600
committerMichaelJGilroy <michael.gilroy24@gmail.com>2017-05-31 17:36:52 -0600
commit961a44d15c78a947617211814c940b3eb8e32cc1 (patch)
treee2684ad3c64ca5d2a1fb7661b67e81cdfeffa17f /eclass/mpi-providers.eclass
parentSwitching to mpi-providers (diff)
downloadgentoo-mpi-961a44d15c78a947617211814c940b3eb8e32cc1.tar.gz
gentoo-mpi-961a44d15c78a947617211814c940b3eb8e32cc1.tar.bz2
gentoo-mpi-961a44d15c78a947617211814c940b3eb8e32cc1.zip
added mpi-providers.eclass
Diffstat (limited to 'eclass/mpi-providers.eclass')
-rw-r--r--eclass/mpi-providers.eclass27
1 files changed, 27 insertions, 0 deletions
diff --git a/eclass/mpi-providers.eclass b/eclass/mpi-providers.eclass
new file mode 100644
index 0000000..56cab32
--- /dev/null
+++ b/eclass/mpi-providers.eclass
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: gentoo-mpi.eclass
+# @MAINTAINER:
+# Michael Gilroy <michael.gilroy24@gmail.com>
+# @BLURB: Functions for providing varied mpi builds.
+
+case ${EAPI:-0} in
+ 6) ;;
+ *) die "gentoo-mpi.eclass does not support EAPI ${EAPI}"
+esac
+
+# @ECLASS-VARIABLE: IMPLEMENTATION_LIST
+# @INTERNAL
+# @DESCRIPTION:
+# Every MPI Implementation
+IMPLEMENTATION_LIST="mpich mpich2 openmpi lam-mpi openlib-mvapich2 hpl"
+
+# @FUNCTION: mpi-providers_get_slot
+# @DESCRIPTION:
+# Returns slot based on software version. Likely to be removed.
+mpi-providers_get_slot() {
+ echo "${PVR}"
+}
+
+export EPREFIX="${EPREFIX}/usr/lib/mpi/${PF}"