/[gentoo-x86]/sys-cluster/openmpi/openmpi-1.5.4-r3.ebuild
Gentoo

Contents of /sys-cluster/openmpi/openmpi-1.5.4-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Jun 25 18:28:11 2012 UTC (2 years ago) by jsbronder
Branch: MAIN
Changes since 1.2: +1 -3 lines
Drop blockers (sys-cluster/mpich and sys-cluster/lam-mpi) that are no longer in the tree.

(Portage version: 2.1.10.57/cvs/Linux x86_64)

1 jsbronder 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jsbronder 1.3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/openmpi-1.5.4-r3.ebuild,v 1.2 2012/04/18 20:35:24 alexxy Exp $
4 jsbronder 1.1
5     EAPI=4
6     inherit eutils fortran-2 multilib flag-o-matic toolchain-funcs
7    
8     MY_P=${P/-mpi}
9     S=${WORKDIR}/${MY_P}
10    
11     DESCRIPTION="A high-performance message passing library (MPI)"
12     HOMEPAGE="http://www.open-mpi.org"
13     SRC_URI="http://www.open-mpi.org/software/ompi/v${P%.*}/downloads/${MY_P}.tar.bz2"
14     LICENSE="BSD"
15     SLOT="0"
16     KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux"
17     IUSE="+cxx elibc_FreeBSD fortran heterogeneous infiniband ipv6 knem mpi-threads
18     +numa open-mx pbs psm romio sctp slurm threads vt"
19    
20     REQUIRED_USE="slurm? ( !pbs )
21     pbs? ( !slurm )
22     psm? ( infiniband )"
23    
24     RDEPEND="
25     elibc_FreeBSD? ( dev-libs/libexecinfo )
26     fortran? ( virtual/fortran )
27 alexxy 1.2 infiniband? ( sys-infiniband/ofed )
28 jsbronder 1.1 knem? ( sys-cluster/knem )
29     numa? ( sys-process/numactl )
30     open-mx? ( sys-cluster/open-mx )
31     pbs? ( sys-cluster/torque )
32     psm? ( sys-infiniband/infinipath-psm )
33     sctp? ( net-misc/lksctp-tools )
34     vt? (
35     !dev-libs/libotf
36     !app-text/lcdf-typetools
37     )
38     >=sys-apps/hwloc-1.3
39     !sys-cluster/mpich2
40     !sys-cluster/mpiexec"
41     DEPEND="${RDEPEND}"
42    
43     pkg_setup() {
44     use fortran && fortran-2_pkg_setup
45     if use mpi-threads; then
46     echo
47     ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
48     ewarn "default and officially unsupported by upstream."
49     ewarn "You may stop now and set USE=-mpi-threads"
50     echo
51     fi
52    
53     echo
54     elog "OpenMPI has an overwhelming count of configuration options."
55     elog "Don't forget the EXTRA_ECONF environment variable can let you"
56     elog "specify configure options if you find them necessary."
57     echo
58     }
59    
60     src_prepare() {
61     # Necessary for scalibility, see
62     # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
63     if use threads; then
64     echo 'oob_tcp_listen_mode = listen_thread' \
65     >> opal/etc/openmpi-mca-params.conf
66     fi
67    
68     epatch "${FILESDIR}"/openmpi-r24328.patch
69     }
70    
71     src_configure() {
72     local myconf=(
73     --sysconfdir="${EPREFIX}/etc/${PN}"
74     --enable-pretty-print-stacktrace
75     --enable-orterun-prefix-by-default
76     --with-hwloc="${EPREFIX}/usr"
77     )
78    
79     if use mpi-threads; then
80     myconf+=(--enable-mpi-thread-multiple
81     --enable-opal-multi-threads
82     )
83     fi
84    
85     if use fortran; then
86     if [[ $(tc-getFC) =~ g77 ]]; then
87     myconf+=(--disable-mpi-f90)
88     elif [[ $(tc-getFC) =~ if ]]; then
89     # Enabled here as gfortran compile times are huge with this enabled.
90     myconf+=(--with-mpi-f90-size=medium)
91     fi
92     else
93     myconf+=(--disable-mpi-f90 --disable-mpi-f77)
94     fi
95    
96     ! use vt && myconf+=(--enable-contrib-no-build=vt)
97    
98     use numa && myconf+=( --with-libnuma="${EPREFIX}/usr" )
99     use infiniband && myconf+=( --with-openib="${EPREFIX}/usr" )
100     use open-mx && myconf+=( --with-mx="${EPREFIX}/usr" )
101     use psm && myconf+=( --with-psm="${EPREFIX}/usr" )
102     use knem && myconf+=( --with-knem="${EPREFIX}/usr" )
103    
104     econf "${myconf[@]}" \
105     $(use_enable cxx mpi-cxx) \
106     $(use_enable romio io-romio) \
107     $(use_enable heterogeneous) \
108     $(use_enable ipv6) \
109     $(use_with infiniband openib "${EPREFIX}"/usr) \
110     $(use_with knem knem "${EPREFIX}"/usr) \
111     $(use_with numa libnuma "${EPREFIX}"/usr) \
112     $(use_with open-mx mx "${EPREFIX}"/usr) \
113     $(use_with pbs tm) \
114     $(use_with psm psm "${EPREFIX}"/usr) \
115     $(use_with sctp sctp) \
116     $(use_with slurm)
117     }
118    
119     src_install () {
120     emake DESTDIR="${D}" install || die "make install failed"
121     # From USE=vt see #359917
122     rm "${ED}"/usr/share/libtool &> /dev/null
123     dodoc README AUTHORS NEWS VERSION || die
124     }
125    
126     src_test() {
127     # Doesn't work with the default src_test as the dry run (-n) fails.
128     emake -j1 check || die "emake check failed"
129     }

  ViewVC Help
Powered by ViewVC 1.1.20