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
36
37
38
39
|
# Copyright 2013-2023 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 PortsOfCall(CMakePackage):
"""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.1.0.tar.gz"
git = "https://github.com/lanl/ports-of-call.git"
maintainers = ["rbberger"]
version("main", branch="main")
version("1.2.0", sha256="b802ffa07c5f34ea9839f23841082133d8af191efe5a526cb7e53ec338ac146b")
version("1.1.0", sha256="c47f7e24c82176b69229a2bcb23a6adcf274dc90ec77a452a36ccae0b12e6e39")
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
|