summaryrefslogtreecommitdiff
path: root/var/spack/packages/openmpi/package.py
blob: f24a66c12e99aa84ac7222a1b0c3de278746e9bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from spack import *

class Openmpi(Package):
    """Open MPI is a project combining technologies and resources from
       several other projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI)
       in order to build the best MPI library available. A completely
       new MPI-2 compliant implementation, Open MPI offers advantages
       for system and software vendors, application developers and
       computer science researchers.
    """

    homepage = "http://www.open-mpi.org"
    url      = "http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2"

    versions = { '1.6.5' : '03aed2a4aa4d0b27196962a2a65fc475', }

    patch('ad_lustre_rwcontig_open_source.patch')
    patch('llnl-platforms.patch')

    def install(self, spec, prefix):
        configure("--prefix=%s" % prefix,
                  "--with-platform=contrib/platform/lanl/tlcc2/optimized-nopanasas")

        # TODO: implement variants next, so we can have LLNL and LANL options.
        # use above for LANL builds, but for LLNL builds, we need this
        #     "--with-platform=contrib/platform/llnl/optimized")

        make()
        make("install")