New package: libquo (#1880)
* New package: libquo libquo is a high-level, easy to use programming interface tailored specifically for MPI/MPI+X codes that may benefit from evolving process binding policies during their execution. QUO allows for arbitrary process binding policies to be enacted and reverted during the execution of an MPI/MPI+X application as different computational phases are entered and exited, respectively. https://github.com/losalamos/libquo * Remove use of 'which' and fix style non-conformance.
This commit is contained in:
parent
e854e053e4
commit
051c5dbc27
68
var/spack/repos/builtin/packages/libquo/package.py
Normal file
68
var/spack/repos/builtin/packages/libquo/package.py
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
##############################################################################
|
||||||
|
# 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 *
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
class Libquo(Package):
|
||||||
|
"""A high-level, easy to use programming interface tailored specifically
|
||||||
|
for MPI/MPI+X codes that may benefit from evolving process binding
|
||||||
|
policies during their execution. QUO allows for arbitrary process binding
|
||||||
|
policies to be enacted and reverted during the execution of an MPI/MPI+X
|
||||||
|
application as different computational phases are entered and exited,
|
||||||
|
respectively."""
|
||||||
|
|
||||||
|
homepage = "https://github.com/losalamos/libquo"
|
||||||
|
url = "https://github.com/losalamos/libquo/archive/v1.2.9.tar.gz"
|
||||||
|
|
||||||
|
version('1.2.9', 'ca82ab33f13e2b89983f81e7c02e98c2')
|
||||||
|
|
||||||
|
depends_on('mpi')
|
||||||
|
depends_on('autoconf', type='build')
|
||||||
|
depends_on('automake', type='build')
|
||||||
|
depends_on('libtool', type='build')
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
autoreconf_options = [
|
||||||
|
'--install',
|
||||||
|
'--verbose',
|
||||||
|
'--force',
|
||||||
|
'-I', 'config',
|
||||||
|
'-I', os.path.join(spec['automake'].prefix,
|
||||||
|
'share', 'aclocal'),
|
||||||
|
'-I', os.path.join(spec['libtool'].prefix,
|
||||||
|
'share', 'aclocal')
|
||||||
|
]
|
||||||
|
autoreconf(*autoreconf_options)
|
||||||
|
|
||||||
|
configure_options = [
|
||||||
|
'--prefix={0}'.format(prefix),
|
||||||
|
'CC=%s' % join_path(spec['mpi'].prefix.bin, "mpicc"),
|
||||||
|
'FC=%s' % join_path(spec['mpi'].prefix.bin, "mpif90")
|
||||||
|
]
|
||||||
|
configure(*configure_options)
|
||||||
|
|
||||||
|
make()
|
||||||
|
make('install')
|
Loading…
Reference in New Issue
Block a user