summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/haccabana/package.py
blob: bce59ef2ba663cb2b84e1c6ac17fe2927b248359 (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-2024 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.package import *


class Haccabana(CMakePackage):
    """HACCabana: A proxy app for HACC short range forces.
    The Hardware/Hybrid Accelerated Cosmology Code (HACC), a cosmology
    N-body-code framework, is designed to run efficiently on diverse computing
    architectures and to scale to millions of cores and beyond."""

    homepage = "https://github.com/ECP-CoPA/HACCabana"
    git = "https://github.com/ECP-CoPA/HACCabana.git"

    maintainers("steverangel", "adrianpope", "streeve", "junghans")

    tags = ["proxy-app", "ecp-proxy-app"]

    license("BSD-3-Clause")

    version("master", branch="master")

    variant("shared", default=True, description="Build shared libraries")

    depends_on("cmake@3.9:", type="build")
    depends_on("kokkos@3.0:")
    depends_on("cabana@master")

    def cmake_args(self):
        options = [self.define_from_variant("BUILD_SHARED_LIBS", "shared")]

        return options