Skip to content
Snippets Groups Projects
Unverified Commit aee95fe9 authored by Robert Mijakovic's avatar Robert Mijakovic Committed by GitHub
Browse files

GPI-2 new package (#17875)


* update version: intel packages daal, ipp, mkl-dnn, mkl, mpi, parallel-studio, pin, tbb and makes url parameter consistent and always use single quote.

* Fixes a typo with one of the sha256 checksum..

* Adds version entries for new versions of Intel packages.

* Adds hashes for new versions of Intel packages.

* Adds missing hash of Intel compiler.

* Adds the newest version of Intel MPI 2019.8.

* Fixes hash for intel-parallel-studio and intel-tbb.

* Fixes version number of Intel MPI.

* Adds GPI-2 package.

* Fixes flake8 noticed issues.

* Second try to fix flake8 comment

* Fixes some issues adamjstewart noticed.

* Fixes package according to flake8 complains.

* Fixes flake8 issue.

* Renames next version to master and removes master.

* Adds maintainer into gpi-2 and returns master branch for the git
repository.

Co-authored-by: default avatarRobert Mijakovic <robert.mijakovic@lrz.de>
parent cc0a1283
Branches
Tags
No related merge requests found
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Gpi2(AutotoolsPackage):
"""GPI-2 is an API for the development of scalable, asynchronous and fault
tolerant parallel applications. It implements the GASPI specification
(www.gaspi.de)"""
homepage = "http://www.gpi-site.com"
url = "https://github.com/cc-hpc-itwm/GPI-2/archive/v1.4.0.tar.gz"
git = "https://github.com/cc-hpc-itwm/GPI-2.git"
maintainers = ['robert-mijakovic']
version('develop', branch='next')
version('master', branch='master')
version('1.4.0', sha256='3b8ffb45346b2fe56aaa7ba15a515e62f9dff45a28e6a014248e20094bbe50a1')
variant('mpi', default=False, description='Enable MPI support')
variant('fortran', default=True, description='Enable Fortran modules')
variant(
'fabrics',
values=disjoint_sets(
('auto',), ('verbs',), ('ethernet',),
).with_non_feature_values('auto', 'none'),
description="List of fabrics that are enabled; "
"'auto' lets gpi-2 determine",
)
variant(
'schedulers',
values=disjoint_sets(
('auto',), ('loadleveler',), ('pbs',), ('slurm',)
).with_non_feature_values('auto', 'none'),
description="List of schedulers for which support is enabled; "
"'auto' lets gpi-2 determine",
)
depends_on('autoconf', type='build') # autogen.sh - autoreconf
depends_on('automake', type='build') # autogen.sh - automake
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('mpi', when='+mpi')
depends_on('rdma-core', when='fabrics=verbs')
depends_on('slurm', when='schedulers=slurm')
def with_or_without_verbs(self, activated):
opt = 'infiniband'
# If the option has not been activated return
# --without-infiniband
if not activated:
return '--without-{0}'.format(opt)
return '--with-{0}={1}'.format(opt, self.spec['rdma-core'].prefix)
def autoreconf(self, spec, prefix):
bash = which('bash')
bash('./autogen.sh')
def configure_args(self):
spec = self.spec
config_args = []
config_args.extend(self.with_or_without('mpi'))
config_args.extend(self.with_or_without('fortran'))
# Fabrics
if 'fabrics=auto' not in spec:
config_args.extend(self.with_or_without('fabrics'))
# Schedulers
if 'schedulers=auto' not in spec:
config_args.extend(self.with_or_without('schedulers'))
return config_args
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment