summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/profugusmc/package.py
blob: 18cc276502e44ae1e9a2015d58a7000653cd0b9b (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
# 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 Profugusmc(CMakePackage, CudaPackage):
    """ProfugusMC is a Monte Carlo radiation transport mini-app. It is designed
    to be a minimal, self-contained version of the Profugus application."""

    homepage = "https://code.ornl.gov/ProfugusMC/ProfugusMC"
    git = "https://code.ornl.gov/ProfugusMC/ProfugusMC.git"
    url = "https://code.ornl.gov/ProfugusMC/ProfugusMC/-/archive/master/ProfugusMC-master.tar.gz"

    license("BSD-2-Clause")

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

    variant("mpi", default=True, description="Enable MPI")
    variant("cuda", default=False, description="Enable CUDA")

    depends_on("blas")
    depends_on("lapack")
    depends_on("mpi", when="+mpi")
    depends_on("cuda", when="+cuda")