# 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="~x86 ~amd64" DESCRIPTION="MVAPICH2 MPI-over-infiniband package auto-configured for OpenIB." HOMEPAGE="http://nowlab.cse.ohio-state.edu/projects/mpi-iba/" SRC_URI="http://nowlab.cse.ohio-state.edu/projects/mpi-iba/download-mvapich2/mvapich2-$PV.tar.gz" S="${WORKDIR}/mvapich2-$PV" IUSE="threads debug medium-cluster large-cluster" DEPEND=" || ( sys-infiniband/libibverbs sys-infiniband/openib-userspace ) || ( sys-infiniband/librdmacm sys-infiniband/openib-userspace )" RDEPEND="${DEPEND}" 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" }