# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # 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. SLOT="0" LICENSE="BSD" KEYWORDS="~amd64" 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" S="${WORKDIR}/mvapich2-${PV/_/-}" 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}" 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" }