# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit fortran-2 # WARNING: this script is interactive - it requires user-input once to verify # the type of HCA to configure for. This needs to be fixed to take out the # interactivity. DESCRIPTION="MVAPICH2 MPI-over-infiniband package auto-configured for OpenIB" HOMEPAGE="http://mvapich.cse.ohio-state.edu/" SRC_URI="${HOMEPAGE}/download/mvapich2/mvapich2-${PV/_/-}.tar.gz" SLOT="0" LICENSE="BSD" KEYWORDS="~amd64" IUSE="threads debug medium-cluster large-cluster rdma" RDEPEND=" || ( ( sys-infiniband/libibverbs sys-infiniband/libibumad sys-infiniband/libibmad rdma? ( sys-infiniband/librdmacm ) ) sys-infiniband/openib-userspace )" DEPEND="${RDEPEND}" S="${WORKDIR}/mvapich2-${PV/_/-}" pkg_setup() { fortran-2_pkg_setup ARCH= VCLUSTER=_SMALL_CLUSTER HAVE_MPD_RING="-DUSE_MPD_RING" if use amd64; then if [ -n "`grep 'model name' > /etc/sysctl.conf" einfo "echo 512000000 > /proc/sys/kernel/shmmax" einfo "echo -e '* soft memlock 500000\n* hard memlock 500000' > /etc/security/limits.conf" }