summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Berger <richard.berger@outlook.com>2022-03-25 11:13:06 -0400
committerGitHub <noreply@github.com>2022-03-25 09:13:06 -0600
commit56717e8b85a8b959113066610fac3ddeea5a85cb (patch)
tree217434fa86d693aa1b8a2cbb6418196d85dfd0dd
parent048a0de35bd791f233d0a6f676d841d85e75aae7 (diff)
downloadspack-56717e8b85a8b959113066610fac3ddeea5a85cb.tar.gz
spack-56717e8b85a8b959113066610fac3ddeea5a85cb.tar.bz2
spack-56717e8b85a8b959113066610fac3ddeea5a85cb.tar.xz
spack-56717e8b85a8b959113066610fac3ddeea5a85cb.zip
New package: ports-of-call (#29696)
-rw-r--r--var/spack/repos/builtin/packages/ports-of-call/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ports-of-call/package.py b/var/spack/repos/builtin/packages/ports-of-call/package.py
new file mode 100644
index 0000000000..2d0e9da796
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ports-of-call/package.py
@@ -0,0 +1,35 @@
+# Copyright 2013-2022 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 PortsOfCall(CMakePackage, CudaPackage):
+ """Ports of Call: Performance Portability Utilities"""
+
+ homepage = "https://github.com/lanl/ports-of-call"
+ url = "https://github.com/lanl/ports-of-call/archive/refs/tags/v1.0.0.tar.gz"
+ git = "https://github.com/lanl/ports-of-call.git"
+
+ maintainers = ['rbberger']
+
+ version("main", branch="main")
+ version('1.0.0', sha256='4f451a41baeb2f95d30760cf39279785dcd6e550b3ce5eac05ef0a258af67e03')
+
+ variant("doc", default=False, description="Sphinx Documentation Support")
+ variant("portability_strategy", description="Portability strategy backend",
+ values=("Kokkos", "Cuda", "None"), multi=False, default="None")
+
+ depends_on("cmake@3.12:")
+
+ depends_on("py-sphinx", when="+doc")
+ depends_on("py-sphinx-rtd-theme@0.4.3", when="+doc")
+ depends_on("py-sphinx-multiversion", when="+doc")
+
+ def cmake_args(self):
+ args = [
+ self.define_from_variant("PORTABILITY_STRATEGY", "portability_strategy")
+ ]
+ return args