blob: def75943fde4fc87af54d16c340ca34ef38a1087 (
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
|
# 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 PyPylikwid(PythonPackage):
"""Python interface to the LIKWID tools library with calls for system
topology, process/thread affinity, hardware performance monitoring
and the manipulation of system features like frequencies and
prefetchers."""
homepage = "https://github.com/RRZE-HPC/pylikwid"
pypi = "pylikwid/pylikwid-0.4.0.tar.gz"
git = "https://github.com/RRZE-HPC/pylikwid.git"
maintainers("TomTheBear")
license("GPL-2.0-only")
version("0.4.0", sha256="f7894a6d7ebcea7da133ef639599a314f850f55cd6c5ffdd630bb879bd2aa0b8")
variant("cuda", default=False, description="with Nvidia GPU profiling support")
# pip silently replaces distutils with setuptools
depends_on("py-setuptools", type="build")
depends_on("likwid", when="~cuda")
depends_on("likwid+cuda", when="+cuda")
def setup_build_environment(self, env):
env.set("LIKWID_PREFIX", self.spec["likwid"].prefix)
|