2014-02-08 10:11:07 +08:00
|
|
|
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"
|
|
|
|
|
2014-07-31 14:30:07 +08:00
|
|
|
version('1.6.5', '03aed2a4aa4d0b27196962a2a65fc475')
|
2014-02-08 10:11:07 +08:00
|
|
|
|
2014-06-02 23:35:01 +08:00
|
|
|
provides('mpi@:2')
|
|
|
|
|
2014-02-08 10:11:07 +08:00
|
|
|
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")
|