summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/exampm/package.py
blob: 0da28676d39fac66a18e2a34f86fdb018d72d609 (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 Exampm(CMakePackage):
    """Exascale Material Point Method (MPM) Mini-App"""

    homepage = "https://github.com/ECP-copa/ExaMPM"
    git = "https://github.com/ECP-copa/ExaMPM.git"

    maintainers("junghans", "streeve", "sslattery")

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

    license("BSD-3-Clause")

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

    depends_on("cxx", type="build")  # generated

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

    depends_on("mpi")
    depends_on("kokkos@3.0:")
    depends_on("silo")
    depends_on("cabana+mpi@master")

    def cmake_args(self):
        options = ["-DBUILD_SHARED_LIBS=%s" % ("On" if "+shared" in self.spec else "Off")]

        return options