summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/babelflow/package.py
blob: 276c35fe40bfc4195ee4717f41ed1dd3d23d3c56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2013-2021 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 Babelflow(CMakePackage):
    """BabelFlow is an Embedded Domain Specific Language to describe
       algorithms using a task graph abstraction which allows them to be
       executed on top of one of several available runtime systems."""

    homepage = "https://github.com/sci-visus/BabelFlow"
    url      = "https://github.com/sci-visus/BabelFlow/archive/v1.1.0.tar.gz"
    git      = 'https://github.com/sci-visus/BabelFlow.git'

    maintainers = ['spetruzza']

    version('1.1.0', sha256='6436b0e6b2f57fbe0cb9127dc9e7f513167de89de2a8c145055434013714989f')
    version('1.0.1', sha256='b7817870b7a1d7ae7ae2eff1a1acec2824675fb856f666d5dc95c41ce453ae91')
    version('1.0.0', sha256='4c4d7ddf60e25e8d3550c07875dba3e46e7c9e61b309cc47a409461b7ffa405e')

    depends_on('mpi')

    variant("shared", default=True, description="Build Babelflow as shared libs")

    # The C++ headers of gcc-11 don't provide <limits> as side effect of others
    @when('%gcc@11:')
    def setup_build_environment(self, env):
        env.append_flags('CXXFLAGS', '-include limits')

    def cmake_args(self):
        args = [self.define_from_variant('BUILD_SHARED_LIBS', 'shared')]
        return args