From 07e426ce00f1d074c0ca462b886a1c49bc36a7d4 Mon Sep 17 00:00:00 2001 From: Robert Pavel Date: Fri, 7 Aug 2020 00:45:19 -0600 Subject: [PATCH] New package: ProfugusMC (#17914) Added spackage for profugusMC --- .../builtin/packages/profugusmc/package.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 var/spack/repos/builtin/packages/profugusmc/package.py diff --git a/var/spack/repos/builtin/packages/profugusmc/package.py b/var/spack/repos/builtin/packages/profugusmc/package.py new file mode 100644 index 0000000000..0922b3f470 --- /dev/null +++ b/var/spack/repos/builtin/packages/profugusmc/package.py @@ -0,0 +1,24 @@ +# 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 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" + + 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')