Commit a474cecd authored by Rob Latham's avatar Rob Latham

some spack (http://spack.io) packages for the mercury suite

parents
# spack-packages for the Mercury Suite
Here are a collection of [spack](https://spack.io/) packages to manage
building the Mercury Suite.
For more about spack and what you can do with it, spack has lots of
[documentation](https://spack.readthedocs.io/en/latest/) and a good
[tutorial](https://spack.readthedocs.io/en/latest/tutorial_sc16.html).
## Installation
Once you've set up spack itself, you need to teach it about this collection
('repository' in spack lingo) of pacakges. Go to the top-level directory of
this project and execute the following command:
spack repo add .
Did it work?
spack repo list
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
class Abtsnoozer(AutotoolsPackage):
"""a utility library for Argobots that can be used to configure execution
streams to sleep when idle. It implements a user-defined pool and scheduler
that are linked together via a libev event loop for signalling purposes."""
homepage = "https://xgitlab.cels.anl.gov/sds/abt-snoozer"
# version('1.2.3', '0123456789abcdef0123456789abcdef')
version('master', git='https://xgitlab.cels.anl.gov/sds/abt-snoozer.git')
depends_on('argobots')
depends_on('m4')
depends_on('autoconf')
depends_on('automake')
depends_on('libtool')
depends_on('libev')
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
class Argobots(AutotoolsPackage):
"""A Lightweight Low-level Threading/Tasking Framework"""
homepage = "http://www.argobots.org/"
version('master', git='https://github.com/pmodels/argobots.git');
depends_on('m4')
depends_on('autoconf')
depends_on('automake')
depends_on('libtool')
def configure_args(self):
args = []
return args
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
from subprocess import call
class Bmi(AutotoolsPackage):
"""a communications framework and network abstraction layer"""
homepage = "git://git.mcs.anl.gov/bmi"
version('master', git='http://git.mcs.anl.gov/bmi.git')
depends_on('autoconf')
# need to override 'autoreconf' so we can run BMI's 'prepare' script
def autoreconf(self, spec, prefix):
with working_dir(self.configure_directory):
call("./prepare");
def configure_args(self):
args = ["--enable-shared", "--enable-bmi-only"]
return args;
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
class Cci(AutotoolsPackage):
"""A simple, portable, high-performance, scalable, and robust communication
interface for HPC and Data Centers."""
homepage = "http://cci-forum.com/"
url = "http://cci-forum.com/wp-content/uploads/2016/06/cci-2.0.tar.gz"
version('2.0', '070b2ba4eca92a846c093f2cd000d3b2')
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
#
from spack import *
class Libev(AutotoolsPackage):
"""A full-featured and high-performance event loop that is loosely modelled
after libevent, but without its limitations and bugs."""
homepage = "http://www.example.com"
url = "http://dist.schmorp.de/libev/libev-4.24.tar.gz"
version('4.24', '94459a5a22db041dec6f98424d6efe54')
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
class Margo(AutotoolsPackage):
"""a library that provides Argobots bindings to the Mercury RPC
implementation."""
homepage = "https://xgitlab.cels.anl.gov/sds/margo"
version('master', git='https://xgitlab.cels.anl.gov/sds/margo.git')
depends_on('mercury', type=("build", "link", "run"))
depends_on('argobots')
depends_on('abtsnoozer')
depends_on('libev')
depends_on('autoconf@2.65:')
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
class Mercury(CMakePackage):
"""Mercury is a C library for implementing RPC, optimized for HPC"""
homepage = "https://mercury-hpc.github.io/"
version('master', git='https://github.com/mercury-hpc/mercury.git',
submodules=True)
variant('cci', default=True, description="Use CCI for network transport")
variant('bmi', default=False, description="Use BMI for network transport")
depends_on('cci', when="+cci", type=("build", "link", "run"))
depends_on('bmi', when="+bmi", type=("build", "link", "run"))
depends_on('boost')
def cmake_args(self):
args = ["-DNA_CCI_USE_POLL:BOOL=ON",
"-DMERCURY_USE_BOOST_PP:BOOL=ON",
"-DBUILD_SHARED_LIBS=ON" ]
if (self.spec.variants['cci'].value):
args.extend(["-DNA_USE_CCI:BOOL=ON"])
if (self.spec.variants['bmi'].value):
args.extend(["-DNA_USE_BMI:BOOL=ON"])
return args
repo:
namespace: sds
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment