diff options
author | MichaelJGilroy <michael.gilroy24@gmail.com> | 2017-05-30 22:04:02 -0600 |
---|---|---|
committer | MichaelJGilroy <michael.gilroy24@gmail.com> | 2017-05-30 22:04:02 -0600 |
commit | d73ac10efd2c82777136af1787eb9e786c54c838 (patch) | |
tree | a40c1e9b383a48b8b48daa1ffe0616685eca2aac | |
parent | setup initial eclass (diff) | |
download | gentoo-mpi-d73ac10efd2c82777136af1787eb9e786c54c838.tar.gz gentoo-mpi-d73ac10efd2c82777136af1787eb9e786c54c838.tar.bz2 gentoo-mpi-d73ac10efd2c82777136af1787eb9e786c54c838.zip |
Added list of implementations and simple function to assign slots
-rw-r--r-- | eclass/gentoo-mpi.eclass | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/eclass/gentoo-mpi.eclass b/eclass/gentoo-mpi.eclass index cbc23d2..9b1186a 100644 --- a/eclass/gentoo-mpi.eclass +++ b/eclass/gentoo-mpi.eclass @@ -7,6 +7,23 @@ # @BLURB: Functions for providing varied mpi builds. case ${EAPI:-0} in - #TODO: ask about EAPI support - *) echo "EAPI support has not been setup!" + 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: gentoo-mpi_get_slot +# @DESCRIPTION: +# Returns slot based on software version. Likely to be removed. +gentoo-mpi_get_slot() { + if [[ ${PV} =~ ^[0-9]* ]]; then + echo ${PV:0:1} + else + die "Unable to slot: version not detected." + fi +} |