diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2011-06-30 23:11:15 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2011-06-30 23:11:15 +0000 |
commit | 9da0e622cb23a9294d15f032cf04122c1baec2ee (patch) | |
tree | 68e6174a5344282e90408a9a5a0491a9d8b4519a /sys-cluster | |
parent | [profiles/base] Use mask infiniband for stable corosync and glusterfs (diff) | |
download | historical-9da0e622cb23a9294d15f032cf04122c1baec2ee.tar.gz historical-9da0e622cb23a9294d15f032cf04122c1baec2ee.tar.bz2 historical-9da0e622cb23a9294d15f032cf04122c1baec2ee.zip |
[sys-cluster/mvapich2] Initial import to tree
Package-Manager: portage-2.2.0_alpha41/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/mvapich2/ChangeLog | 10 | ||||
-rw-r--r-- | sys-cluster/mvapich2/Manifest | 24 | ||||
-rw-r--r-- | sys-cluster/mvapich2/metadata.xml | 13 | ||||
-rw-r--r-- | sys-cluster/mvapich2/mvapich2-1.6.ebuild | 146 |
4 files changed, 193 insertions, 0 deletions
diff --git a/sys-cluster/mvapich2/ChangeLog b/sys-cluster/mvapich2/ChangeLog new file mode 100644 index 000000000000..6d8ae9e74f8a --- /dev/null +++ b/sys-cluster/mvapich2/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-cluster/mvapich2 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mvapich2/ChangeLog,v 1.1 2011/06/30 23:11:15 alexxy Exp $ + +*mvapich2-1.6 (30 Jun 2011) + + 30 Jun 2011; Alexey Shvetsov <alexxy@gentoo.org> +mvapich2-1.6.ebuild, + +metadata.xml: + Initial import to tree + diff --git a/sys-cluster/mvapich2/Manifest b/sys-cluster/mvapich2/Manifest new file mode 100644 index 000000000000..0c4f0887fabe --- /dev/null +++ b/sys-cluster/mvapich2/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST mvapich2-1.6.tgz 23239787 RMD160 8a254c90773535fd9f5099472042e6b4213a9598 SHA1 4b69c8f17a760a861fe91be0473143ddfc5e1ebb SHA256 e657ba2eaf43119fec70859677a08bb8138a8bf18c1f375891fed0b7c77aa28d +EBUILD mvapich2-1.6.ebuild 4040 RMD160 e8d72aca41d83709e542938f09e37dc6bd07ae37 SHA1 2276abd4bb43ebddda70b028dfa1fe901afbd36b SHA256 ac6f97d434990bbc5e794020a4c9294f0573f66262da9e1e6c1a499635e40eed +MISC ChangeLog 358 RMD160 a38f945ebc63f3bc89b30056ae11c79ecf042c57 SHA1 ba453ba23602f31ae67a34b6ee43a3778ace53c6 SHA256 22a408422f68a4eb6ad223ce405a7f072e11d1fa61af21bd4e186ff940b224f7 +MISC metadata.xml 545 RMD160 d86108c2a2999b225c4eb0d3ab1a4d8bc23f9c82 SHA1 f773a149708b3e0a3529bd270e32218597a949f3 SHA256 56c46d47971b3848b62e3d1a5a48302f6ee1e2d964d8dea5ab3dd844f813fe39 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iQIcBAEBCAAGBQJODQKJAAoJEOf+E+/4L5LmxUEP/izwmwybqpR/5eJ0w167Yc0y +ricsg5Z2Q4grIGvd7N1x1YEXTrS+MObwW1kaZy4VurhZM66Es/zkLoaeGSL8f4V5 +MUnAE16HwXkgV27iL+wxxVcQXOA8Hw6S3MiDzt8HF8qPVOm6pCOBRU+rTl3Ls15a +KOqwvyTfRdem1EZnkVqM4uxYlc64RVlJt9vqQB6YFF6IZUyRrAQ2p9EqesPfiKz6 +NQles/PHjrf+dcjA9KzQjkTOaLz4OGZbTBnNFfgPSnvG0rKzJqg6Kcl/UVYYxPvb +xTm3ofaqjcELSILaOarrdbLqOnrifXa71SJCOXM0hlNFTDaw+5+wjFpGunCrNKFT +2f/7vGHKQI1cv9LsXZPb7hEWMUj8TA7OZjsv57L9fTKAMlSW0iXoJRUVfSp646TD +ET30ewRQSu+d/h1MPdctxuzip/akyogwKKC8R5sFqNjOGktPghH9eR5qPTYrXRac +3HPXuzswGUWvr9OZZRcNDBppSQA2MgY8Hjo7gL77qGp8d9n9TYCevlGJRcE27xUk +qAtJ542QUB9m19+vgt6sxwBtXbuA7pHEqnt1iXqjh2iIrWh1t7xKKgbrJZQeOIUr +R65UgP1T8ITxlRO1jPGWYxJfiZRlmEdJju0g+luAMxD6YtSz0sh4snQ58NeQ4S8N +bfzORH4cQurvTs04sNmc +=IZW1 +-----END PGP SIGNATURE----- diff --git a/sys-cluster/mvapich2/metadata.xml b/sys-cluster/mvapich2/metadata.xml new file mode 100644 index 000000000000..90e009179ab6 --- /dev/null +++ b/sys-cluster/mvapich2/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>cluster</herd> + <longdescription> +MVAPICH2 MPI-over-infiniband package auto-configured for OpenIB. +</longdescription> + <use> + <flag name="large-cluster">Automatically generated description for large-cluster</flag> + <flag name="medium-cluster">Automatically generated description for medium-cluster</flag> + <flag name="romio">Automatically generated description for romio</flag> + </use> +</pkgmetadata> diff --git a/sys-cluster/mvapich2/mvapich2-1.6.ebuild b/sys-cluster/mvapich2/mvapich2-1.6.ebuild new file mode 100644 index 000000000000..1ca2b8321939 --- /dev/null +++ b/sys-cluster/mvapich2/mvapich2-1.6.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mvapich2/mvapich2-1.6.ebuild,v 1.1 2011/06/30 23:11:15 alexxy Exp $ + +EAPI="4" + +inherit fortran-2 + +DESCRIPTION="MVAPICH2 MPI-over-infiniband package auto-configured for OpenIB" +HOMEPAGE="http://mvapich.cse.ohio-state.edu/" +SRC_URI="${HOMEPAGE}/download/mvapich2/mvapich2-${PV/_/-}.tgz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~x86 ~amd64" +IUSE="debug fortran large-cluster medium-cluster romio threads" + +RDEPEND=" + || ( + ( + sys-infiniband/libibverbs + sys-infiniband/libibumad + sys-infiniband/libibmad + sys-infiniband/librdmacm ) + sys-infiniband/openib-userspace )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/mvapich2-${PV/_/-}" + +pkg_setup() { + fortran-2_pkg_setup + + if [ -z "${MVAPICH_HCA_TYPE}" ]; then + elog "${PN} needs to know which HCA it should optimize for. This is" + elog "passed to the ebuild with the variable, \${MVAPICH_HCA_TYPE}." + elog "Please choose one of: _MLX_PCI_EX_SDR_, _MLX_PCI_EX_DDR_," + elog "_MLX_PCI_X, _PATH_HT_, or _IBM_EHCA_." + elog "See make.mvapich2.detect in ${S} for more information." + die "MVAPICH_HCA_TYPE undefined" + fi + + case ${ARCH} in + amd64) + if grep Intel /proc/cpuinfo &>/dev/null; then + BUILD_ARCH=-D_EM64T_ + else + BUILD_ARCH=-D_X86_64_ + fi + ;; + x86) + BUILD_ARCH=-D_IA32_ + ;; + ia64) + BUILD_ARCH=-D_IA64_ + ;; + ppc64) + BUILD_ARCH=-D_PPC64_ + ;; + *) + die "unsupported architecture: ${ARCH}" + ;; + esac +} + +src_prepare() { + einfo "Disabling examples" + # Examples are always compiled with the default 'all' target. This + # causes problems when we don't build support for everything, including + # threads, mpe2, etc. So we're not going to build them. + sed -i 's:.*cd examples && ${MAKE} all.*::' Makefile.in +} + +src_configure() { + local c="--with-device=osu_ch3:mrail + --with-rdma=gen2 + --with-pm=mpd + $(use_enable romio) + --with-mpe=no" + + # TODO Shared libs should build with this, but they don't + # --enable-shared=gcc" + + local enable_srq + local vcluster=-D_SMALL_CLUSTER + + use large-cluster && vcluster=-D_LARGE_CLUSTER + use medium-cluster && vcluster=-D_MEDIUM_CLUSTER + [ "${MVAPICH_HCA_TYPE}" == "_MLX_PCI_X_" ] && enable_srq="-DSRQ" + + append-ldflags "-lrdmacm" + append-flags "-DADAPTIVE_RDMA_FAST_PATH -DRDMA_CM" + + append-ldflags "-libverbs -libumad -libmad" + + append-flags "${BUILD_ARCH} -DUSE_INLINE -D_SMP_ -D_GNU_SOURCE" + append-flags "${enable_srq} -DUSE_HEADER_CACHING -DLAZY_MEM_UNREGISTER" + append-flags "-DONE_SIDED -D${MVAPICH_HCA_TYPE} ${vcluster}" + append-flags "-DMPID_USE_SEQUENCE_NUMBERS -DUSE_MPD_RING" + + use debug && c="${c} --enable-g=all --enable-debuginfo" + + if use threads; then + c="${c} --enable-threads=multiple --with-thread-package=pthreads" + append-flags "-pthread" + else + c="${c} --with-thread-package=none" + fi + + # enable f90 support for appropriate compilers + if use fortran; then + case "$(tc-getFC)" in + gfortran|ifort|f95) + c="${c} --enable-f77 --enable-f90";; + g77|f77|f2c) + c="${c} --enable-f77 --disable-f90";; + esac + else + c="${c} --disable-f77 --disable-f90" + fi + + sed -i \ + -e 's/ ${exec_prefix}/ ${DESTDIR}${exec_prefix}/' \ + -e 's/ ${libdir}/ ${DESTDIR}${libdir}/' \ + ${S/-beta2/}/Makefile.in + sed -i '/bindir/s/ ${bindir}/ ${DESTDIR}${bindir}/' ${S/-beta2/}/src/pm/mpd/Makefile.in + cd ${S/-beta2/} + + econf ${c} +} + +src_install() { + emake DESTDIR="${D}"|| die + dodoc CHANGES_MPICH2 COPYRIGHT COPYRIGHT_MVAPICH2 LICENSE.TXT \ + README* RELEASE_NOTES* +} + +pkg_postinst() { + einfo "To allow normal users to use infiniband, it is necessary to" + einfo "increase the system limits on locked memory." + einfo "You must increase the kernel.shmmax sysctl value, and increase" + einfo "the memlock limits in /etc/security/limits.conf. i.e.:" + echo + einfo "echo 'kernel.shmmax = 512000000' >> /etc/sysctl.conf" + einfo "echo 512000000 > /proc/sys/kernel/shmmax" + einfo "echo -e '* soft memlock 500000\n* hard memlock 500000' > /etc/security/limits.conf" +} |