From aee95fe9a95413b5e4a3843f6b9c3f940482d978 Mon Sep 17 00:00:00 2001 From: Robert Mijakovic Date: Wed, 5 Aug 2020 23:38:23 +0200 Subject: 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: Robert Mijakovic --- var/spack/repos/builtin/packages/gpi-2/package.py | 79 +++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 var/spack/repos/builtin/packages/gpi-2/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/gpi-2/package.py b/var/spack/repos/builtin/packages/gpi-2/package.py new file mode 100644 index 0000000000..299fba0a1a --- /dev/null +++ b/var/spack/repos/builtin/packages/gpi-2/package.py @@ -0,0 +1,79 @@ +# 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 -- cgit v1.2.3-70-g09d2